@aws-sdk/client-compute-optimizer 3.489.0 → 3.495.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 (42) hide show
  1. package/dist-cjs/ComputeOptimizer.js +1 -57
  2. package/dist-cjs/ComputeOptimizerClient.js +1 -43
  3. package/dist-cjs/commands/DeleteRecommendationPreferencesCommand.js +1 -28
  4. package/dist-cjs/commands/DescribeRecommendationExportJobsCommand.js +1 -28
  5. package/dist-cjs/commands/ExportAutoScalingGroupRecommendationsCommand.js +1 -28
  6. package/dist-cjs/commands/ExportEBSVolumeRecommendationsCommand.js +1 -28
  7. package/dist-cjs/commands/ExportEC2InstanceRecommendationsCommand.js +1 -28
  8. package/dist-cjs/commands/ExportECSServiceRecommendationsCommand.js +1 -28
  9. package/dist-cjs/commands/ExportLambdaFunctionRecommendationsCommand.js +1 -28
  10. package/dist-cjs/commands/ExportLicenseRecommendationsCommand.js +1 -28
  11. package/dist-cjs/commands/GetAutoScalingGroupRecommendationsCommand.js +1 -28
  12. package/dist-cjs/commands/GetEBSVolumeRecommendationsCommand.js +1 -28
  13. package/dist-cjs/commands/GetEC2InstanceRecommendationsCommand.js +1 -28
  14. package/dist-cjs/commands/GetEC2RecommendationProjectedMetricsCommand.js +1 -28
  15. package/dist-cjs/commands/GetECSServiceRecommendationProjectedMetricsCommand.js +1 -28
  16. package/dist-cjs/commands/GetECSServiceRecommendationsCommand.js +1 -28
  17. package/dist-cjs/commands/GetEffectiveRecommendationPreferencesCommand.js +1 -28
  18. package/dist-cjs/commands/GetEnrollmentStatusCommand.js +1 -28
  19. package/dist-cjs/commands/GetEnrollmentStatusesForOrganizationCommand.js +1 -28
  20. package/dist-cjs/commands/GetLambdaFunctionRecommendationsCommand.js +1 -28
  21. package/dist-cjs/commands/GetLicenseRecommendationsCommand.js +1 -28
  22. package/dist-cjs/commands/GetRecommendationPreferencesCommand.js +1 -28
  23. package/dist-cjs/commands/GetRecommendationSummariesCommand.js +1 -28
  24. package/dist-cjs/commands/PutRecommendationPreferencesCommand.js +1 -28
  25. package/dist-cjs/commands/UpdateEnrollmentStatusCommand.js +1 -28
  26. package/dist-cjs/commands/index.js +1 -26
  27. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  28. package/dist-cjs/extensionConfiguration.js +1 -2
  29. package/dist-cjs/index.js +3689 -11
  30. package/dist-cjs/models/ComputeOptimizerServiceException.js +1 -12
  31. package/dist-cjs/models/index.js +1 -4
  32. package/dist-cjs/models/models_0.js +1 -727
  33. package/dist-cjs/pagination/DescribeRecommendationExportJobsPaginator.js +1 -7
  34. package/dist-cjs/pagination/GetEnrollmentStatusesForOrganizationPaginator.js +1 -7
  35. package/dist-cjs/pagination/GetLambdaFunctionRecommendationsPaginator.js +1 -7
  36. package/dist-cjs/pagination/GetRecommendationPreferencesPaginator.js +1 -7
  37. package/dist-cjs/pagination/GetRecommendationSummariesPaginator.js +1 -7
  38. package/dist-cjs/pagination/Interfaces.js +1 -2
  39. package/dist-cjs/pagination/index.js +1 -9
  40. package/dist-cjs/protocols/Aws_json1_0.js +1 -2244
  41. package/dist-cjs/runtimeExtensions.js +1 -22
  42. package/package.json +40 -40
package/dist-cjs/index.js CHANGED
@@ -1,12 +1,3690 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ComputeOptimizerServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./ComputeOptimizerClient"), exports);
6
- tslib_1.__exportStar(require("./ComputeOptimizer"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- require("@aws-sdk/util-endpoints");
11
- var ComputeOptimizerServiceException_1 = require("./models/ComputeOptimizerServiceException");
12
- Object.defineProperty(exports, "ComputeOptimizerServiceException", { enumerable: true, get: function () { return ComputeOptimizerServiceException_1.ComputeOptimizerServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ AccessDeniedException: () => AccessDeniedException,
25
+ AutoScalingConfiguration: () => AutoScalingConfiguration,
26
+ ComputeOptimizer: () => ComputeOptimizer,
27
+ ComputeOptimizerClient: () => ComputeOptimizerClient,
28
+ ComputeOptimizerServiceException: () => ComputeOptimizerServiceException,
29
+ CpuVendorArchitecture: () => CpuVendorArchitecture,
30
+ Currency: () => Currency,
31
+ CurrentPerformanceRisk: () => CurrentPerformanceRisk,
32
+ CustomizableMetricHeadroom: () => CustomizableMetricHeadroom,
33
+ CustomizableMetricName: () => CustomizableMetricName,
34
+ CustomizableMetricThreshold: () => CustomizableMetricThreshold,
35
+ DeleteRecommendationPreferencesCommand: () => DeleteRecommendationPreferencesCommand,
36
+ DescribeRecommendationExportJobsCommand: () => DescribeRecommendationExportJobsCommand,
37
+ EBSFilterName: () => EBSFilterName,
38
+ EBSFinding: () => EBSFinding,
39
+ EBSMetricName: () => EBSMetricName,
40
+ EBSSavingsEstimationModeSource: () => EBSSavingsEstimationModeSource,
41
+ ECSSavingsEstimationModeSource: () => ECSSavingsEstimationModeSource,
42
+ ECSServiceLaunchType: () => ECSServiceLaunchType,
43
+ ECSServiceMetricName: () => ECSServiceMetricName,
44
+ ECSServiceMetricStatistic: () => ECSServiceMetricStatistic,
45
+ ECSServiceRecommendationFilterName: () => ECSServiceRecommendationFilterName,
46
+ ECSServiceRecommendationFinding: () => ECSServiceRecommendationFinding,
47
+ ECSServiceRecommendationFindingReasonCode: () => ECSServiceRecommendationFindingReasonCode,
48
+ EnhancedInfrastructureMetrics: () => EnhancedInfrastructureMetrics,
49
+ EnrollmentFilterName: () => EnrollmentFilterName,
50
+ ExportAutoScalingGroupRecommendationsCommand: () => ExportAutoScalingGroupRecommendationsCommand,
51
+ ExportEBSVolumeRecommendationsCommand: () => ExportEBSVolumeRecommendationsCommand,
52
+ ExportEC2InstanceRecommendationsCommand: () => ExportEC2InstanceRecommendationsCommand,
53
+ ExportECSServiceRecommendationsCommand: () => ExportECSServiceRecommendationsCommand,
54
+ ExportLambdaFunctionRecommendationsCommand: () => ExportLambdaFunctionRecommendationsCommand,
55
+ ExportLicenseRecommendationsCommand: () => ExportLicenseRecommendationsCommand,
56
+ ExportableAutoScalingGroupField: () => ExportableAutoScalingGroupField,
57
+ ExportableECSServiceField: () => ExportableECSServiceField,
58
+ ExportableInstanceField: () => ExportableInstanceField,
59
+ ExportableLambdaFunctionField: () => ExportableLambdaFunctionField,
60
+ ExportableLicenseField: () => ExportableLicenseField,
61
+ ExportableVolumeField: () => ExportableVolumeField,
62
+ ExternalMetricStatusCode: () => ExternalMetricStatusCode,
63
+ ExternalMetricsSource: () => ExternalMetricsSource,
64
+ FileFormat: () => FileFormat,
65
+ FilterName: () => FilterName,
66
+ Finding: () => Finding,
67
+ FindingReasonCode: () => FindingReasonCode,
68
+ GetAutoScalingGroupRecommendationsCommand: () => GetAutoScalingGroupRecommendationsCommand,
69
+ GetEBSVolumeRecommendationsCommand: () => GetEBSVolumeRecommendationsCommand,
70
+ GetEC2InstanceRecommendationsCommand: () => GetEC2InstanceRecommendationsCommand,
71
+ GetEC2RecommendationProjectedMetricsCommand: () => GetEC2RecommendationProjectedMetricsCommand,
72
+ GetECSServiceRecommendationProjectedMetricsCommand: () => GetECSServiceRecommendationProjectedMetricsCommand,
73
+ GetECSServiceRecommendationsCommand: () => GetECSServiceRecommendationsCommand,
74
+ GetEffectiveRecommendationPreferencesCommand: () => GetEffectiveRecommendationPreferencesCommand,
75
+ GetEnrollmentStatusCommand: () => GetEnrollmentStatusCommand,
76
+ GetEnrollmentStatusesForOrganizationCommand: () => GetEnrollmentStatusesForOrganizationCommand,
77
+ GetLambdaFunctionRecommendationsCommand: () => GetLambdaFunctionRecommendationsCommand,
78
+ GetLicenseRecommendationsCommand: () => GetLicenseRecommendationsCommand,
79
+ GetRecommendationPreferencesCommand: () => GetRecommendationPreferencesCommand,
80
+ GetRecommendationSummariesCommand: () => GetRecommendationSummariesCommand,
81
+ InferredWorkloadType: () => InferredWorkloadType,
82
+ InferredWorkloadTypesPreference: () => InferredWorkloadTypesPreference,
83
+ InstanceIdle: () => InstanceIdle,
84
+ InstanceRecommendationFindingReasonCode: () => InstanceRecommendationFindingReasonCode,
85
+ InstanceSavingsEstimationModeSource: () => InstanceSavingsEstimationModeSource,
86
+ InstanceState: () => InstanceState,
87
+ InternalServerException: () => InternalServerException,
88
+ InvalidParameterValueException: () => InvalidParameterValueException,
89
+ JobFilterName: () => JobFilterName,
90
+ JobStatus: () => JobStatus,
91
+ LambdaFunctionMemoryMetricName: () => LambdaFunctionMemoryMetricName,
92
+ LambdaFunctionMemoryMetricStatistic: () => LambdaFunctionMemoryMetricStatistic,
93
+ LambdaFunctionMetricName: () => LambdaFunctionMetricName,
94
+ LambdaFunctionMetricStatistic: () => LambdaFunctionMetricStatistic,
95
+ LambdaFunctionRecommendationFilterName: () => LambdaFunctionRecommendationFilterName,
96
+ LambdaFunctionRecommendationFinding: () => LambdaFunctionRecommendationFinding,
97
+ LambdaFunctionRecommendationFindingReasonCode: () => LambdaFunctionRecommendationFindingReasonCode,
98
+ LambdaSavingsEstimationModeSource: () => LambdaSavingsEstimationModeSource,
99
+ LicenseEdition: () => LicenseEdition,
100
+ LicenseFinding: () => LicenseFinding,
101
+ LicenseFindingReasonCode: () => LicenseFindingReasonCode,
102
+ LicenseModel: () => LicenseModel,
103
+ LicenseName: () => LicenseName,
104
+ LicenseRecommendationFilterName: () => LicenseRecommendationFilterName,
105
+ LimitExceededException: () => LimitExceededException,
106
+ LookBackPeriodPreference: () => LookBackPeriodPreference,
107
+ MetricName: () => MetricName,
108
+ MetricSourceProvider: () => MetricSourceProvider,
109
+ MetricStatistic: () => MetricStatistic,
110
+ MigrationEffort: () => MigrationEffort,
111
+ MissingAuthenticationToken: () => MissingAuthenticationToken,
112
+ OptInRequiredException: () => OptInRequiredException,
113
+ PlatformDifference: () => PlatformDifference,
114
+ PreferredResourceName: () => PreferredResourceName,
115
+ PutRecommendationPreferencesCommand: () => PutRecommendationPreferencesCommand,
116
+ RecommendationPreferenceName: () => RecommendationPreferenceName,
117
+ RecommendationSourceType: () => RecommendationSourceType,
118
+ ResourceNotFoundException: () => ResourceNotFoundException,
119
+ ResourceType: () => ResourceType,
120
+ SavingsEstimationMode: () => SavingsEstimationMode,
121
+ ScopeName: () => ScopeName,
122
+ ServiceUnavailableException: () => ServiceUnavailableException,
123
+ Status: () => Status,
124
+ ThrottlingException: () => ThrottlingException,
125
+ UpdateEnrollmentStatusCommand: () => UpdateEnrollmentStatusCommand,
126
+ __Client: () => import_smithy_client.Client,
127
+ paginateDescribeRecommendationExportJobs: () => paginateDescribeRecommendationExportJobs,
128
+ paginateGetEnrollmentStatusesForOrganization: () => paginateGetEnrollmentStatusesForOrganization,
129
+ paginateGetLambdaFunctionRecommendations: () => paginateGetLambdaFunctionRecommendations,
130
+ paginateGetRecommendationPreferences: () => paginateGetRecommendationPreferences,
131
+ paginateGetRecommendationSummaries: () => paginateGetRecommendationSummaries
132
+ });
133
+ module.exports = __toCommonJS(src_exports);
134
+
135
+ // src/ComputeOptimizerClient.ts
136
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
137
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
138
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
139
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
140
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
141
+ var import_config_resolver = require("@smithy/config-resolver");
142
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
143
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
144
+ var import_middleware_retry = require("@smithy/middleware-retry");
145
+
146
+
147
+ // src/endpoint/EndpointParameters.ts
148
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
149
+ return {
150
+ ...options,
151
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
152
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
153
+ defaultSigningName: "compute-optimizer"
154
+ };
155
+ }, "resolveClientEndpointParameters");
156
+ var commonParams = {
157
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
158
+ Endpoint: { type: "builtInParams", name: "endpoint" },
159
+ Region: { type: "builtInParams", name: "region" },
160
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
161
+ };
162
+
163
+ // src/ComputeOptimizerClient.ts
164
+ var import_runtimeConfig = require("././runtimeConfig");
165
+
166
+ // src/runtimeExtensions.ts
167
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
168
+ var import_protocol_http = require("@smithy/protocol-http");
169
+ var import_smithy_client = require("@smithy/smithy-client");
170
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
171
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
172
+ const extensionConfiguration = {
173
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
174
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
175
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
176
+ };
177
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
178
+ return {
179
+ ...runtimeConfig,
180
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
181
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
182
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
183
+ };
184
+ }, "resolveRuntimeExtensions");
185
+
186
+ // src/ComputeOptimizerClient.ts
187
+ var _ComputeOptimizerClient = class _ComputeOptimizerClient extends import_smithy_client.Client {
188
+ constructor(...[configuration]) {
189
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
190
+ const _config_1 = resolveClientEndpointParameters(_config_0);
191
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
192
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
193
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
194
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
195
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
196
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
197
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
198
+ super(_config_8);
199
+ this.config = _config_8;
200
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
201
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
202
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
203
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
204
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
205
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
206
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
207
+ }
208
+ /**
209
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
210
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
211
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
212
+ */
213
+ destroy() {
214
+ super.destroy();
215
+ }
216
+ };
217
+ __name(_ComputeOptimizerClient, "ComputeOptimizerClient");
218
+ var ComputeOptimizerClient = _ComputeOptimizerClient;
219
+
220
+ // src/ComputeOptimizer.ts
221
+
222
+
223
+ // src/commands/DeleteRecommendationPreferencesCommand.ts
224
+
225
+ var import_middleware_serde = require("@smithy/middleware-serde");
226
+
227
+ var import_types = require("@smithy/types");
228
+
229
+ // src/protocols/Aws_json1_0.ts
230
+
231
+
232
+
233
+ // src/models/ComputeOptimizerServiceException.ts
234
+
235
+ var _ComputeOptimizerServiceException = class _ComputeOptimizerServiceException extends import_smithy_client.ServiceException {
236
+ /**
237
+ * @internal
238
+ */
239
+ constructor(options) {
240
+ super(options);
241
+ Object.setPrototypeOf(this, _ComputeOptimizerServiceException.prototype);
242
+ }
243
+ };
244
+ __name(_ComputeOptimizerServiceException, "ComputeOptimizerServiceException");
245
+ var ComputeOptimizerServiceException = _ComputeOptimizerServiceException;
246
+
247
+ // src/models/models_0.ts
248
+ var _AccessDeniedException = class _AccessDeniedException extends ComputeOptimizerServiceException {
249
+ /**
250
+ * @internal
251
+ */
252
+ constructor(opts) {
253
+ super({
254
+ name: "AccessDeniedException",
255
+ $fault: "client",
256
+ ...opts
257
+ });
258
+ this.name = "AccessDeniedException";
259
+ this.$fault = "client";
260
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
261
+ }
262
+ };
263
+ __name(_AccessDeniedException, "AccessDeniedException");
264
+ var AccessDeniedException = _AccessDeniedException;
265
+ var Status = {
266
+ ACTIVE: "Active",
267
+ FAILED: "Failed",
268
+ INACTIVE: "Inactive",
269
+ PENDING: "Pending"
270
+ };
271
+ var AutoScalingConfiguration = {
272
+ TARGET_TRACKING_SCALING_CPU: "TargetTrackingScalingCpu",
273
+ TARGET_TRACKING_SCALING_MEMORY: "TargetTrackingScalingMemory"
274
+ };
275
+ var Currency = {
276
+ CNY: "CNY",
277
+ USD: "USD"
278
+ };
279
+ var CurrentPerformanceRisk = {
280
+ HIGH: "High",
281
+ LOW: "Low",
282
+ MEDIUM: "Medium",
283
+ VERY_LOW: "VeryLow"
284
+ };
285
+ var CpuVendorArchitecture = {
286
+ AWS_ARM64: "AWS_ARM64",
287
+ CURRENT: "CURRENT"
288
+ };
289
+ var EnhancedInfrastructureMetrics = {
290
+ ACTIVE: "Active",
291
+ INACTIVE: "Inactive"
292
+ };
293
+ var ExternalMetricsSource = {
294
+ DATADOG: "Datadog",
295
+ DYNATRACE: "Dynatrace",
296
+ INSTANA: "Instana",
297
+ NEWRELIC: "NewRelic"
298
+ };
299
+ var InferredWorkloadTypesPreference = {
300
+ ACTIVE: "Active",
301
+ INACTIVE: "Inactive"
302
+ };
303
+ var LookBackPeriodPreference = {
304
+ DAYS_14: "DAYS_14",
305
+ DAYS_32: "DAYS_32",
306
+ DAYS_93: "DAYS_93"
307
+ };
308
+ var PreferredResourceName = {
309
+ EC2_INSTANCE_TYPES: "Ec2InstanceTypes"
310
+ };
311
+ var InstanceSavingsEstimationModeSource = {
312
+ COST_EXPLORER_RIGHTSIZING: "CostExplorerRightsizing",
313
+ COST_OPTIMIZATION_HUB: "CostOptimizationHub",
314
+ PUBLIC_PRICING: "PublicPricing"
315
+ };
316
+ var CustomizableMetricName = {
317
+ CPU_UTILIZATION: "CpuUtilization"
318
+ };
319
+ var CustomizableMetricHeadroom = {
320
+ PERCENT_0: "PERCENT_0",
321
+ PERCENT_20: "PERCENT_20",
322
+ PERCENT_30: "PERCENT_30"
323
+ };
324
+ var CustomizableMetricThreshold = {
325
+ P90: "P90",
326
+ P95: "P95",
327
+ P99_5: "P99_5"
328
+ };
329
+ var Finding = {
330
+ NOT_OPTIMIZED: "NotOptimized",
331
+ OPTIMIZED: "Optimized",
332
+ OVER_PROVISIONED: "Overprovisioned",
333
+ UNDER_PROVISIONED: "Underprovisioned"
334
+ };
335
+ var InferredWorkloadType = {
336
+ AMAZON_EMR: "AmazonEmr",
337
+ APACHE_CASSANDRA: "ApacheCassandra",
338
+ APACHE_HADOOP: "ApacheHadoop",
339
+ KAFKA: "Kafka",
340
+ MEMCACHED: "Memcached",
341
+ NGINX: "Nginx",
342
+ POSTGRE_SQL: "PostgreSql",
343
+ REDIS: "Redis",
344
+ SQLSERVER: "SQLServer"
345
+ };
346
+ var MigrationEffort = {
347
+ HIGH: "High",
348
+ LOW: "Low",
349
+ MEDIUM: "Medium",
350
+ VERY_LOW: "VeryLow"
351
+ };
352
+ var MetricName = {
353
+ CPU: "Cpu",
354
+ DISK_READ_BYTES_PER_SECOND: "DISK_READ_BYTES_PER_SECOND",
355
+ DISK_READ_OPS_PER_SECOND: "DISK_READ_OPS_PER_SECOND",
356
+ DISK_WRITE_BYTES_PER_SECOND: "DISK_WRITE_BYTES_PER_SECOND",
357
+ DISK_WRITE_OPS_PER_SECOND: "DISK_WRITE_OPS_PER_SECOND",
358
+ EBS_READ_BYTES_PER_SECOND: "EBS_READ_BYTES_PER_SECOND",
359
+ EBS_READ_OPS_PER_SECOND: "EBS_READ_OPS_PER_SECOND",
360
+ EBS_WRITE_BYTES_PER_SECOND: "EBS_WRITE_BYTES_PER_SECOND",
361
+ EBS_WRITE_OPS_PER_SECOND: "EBS_WRITE_OPS_PER_SECOND",
362
+ GPU_MEMORY_PERCENTAGE: "GPU_MEMORY_PERCENTAGE",
363
+ GPU_PERCENTAGE: "GPU_PERCENTAGE",
364
+ MEMORY: "Memory",
365
+ NETWORK_IN_BYTES_PER_SECOND: "NETWORK_IN_BYTES_PER_SECOND",
366
+ NETWORK_OUT_BYTES_PER_SECOND: "NETWORK_OUT_BYTES_PER_SECOND",
367
+ NETWORK_PACKETS_IN_PER_SECOND: "NETWORK_PACKETS_IN_PER_SECOND",
368
+ NETWORK_PACKETS_OUT_PER_SECOND: "NETWORK_PACKETS_OUT_PER_SECOND"
369
+ };
370
+ var MetricStatistic = {
371
+ AVERAGE: "Average",
372
+ MAXIMUM: "Maximum"
373
+ };
374
+ var RecommendationPreferenceName = {
375
+ ENHANCED_INFRASTRUCTURE_METRICS: "EnhancedInfrastructureMetrics",
376
+ EXTERNAL_METRICS_PREFERENCE: "ExternalMetricsPreference",
377
+ INFERRED_WORKLOAD_TYPES: "InferredWorkloadTypes",
378
+ LOOKBACK_PERIOD_PREFERENCE: "LookBackPeriodPreference",
379
+ PREFERRED_RESOURCES: "PreferredResources",
380
+ UTILIZATION_PREFERENCES: "UtilizationPreferences"
381
+ };
382
+ var ResourceType = {
383
+ AUTO_SCALING_GROUP: "AutoScalingGroup",
384
+ EBS_VOLUME: "EbsVolume",
385
+ EC2_INSTANCE: "Ec2Instance",
386
+ ECS_SERVICE: "EcsService",
387
+ LAMBDA_FUNCTION: "LambdaFunction",
388
+ LICENSE: "License",
389
+ NOT_APPLICABLE: "NotApplicable"
390
+ };
391
+ var ScopeName = {
392
+ ACCOUNT_ID: "AccountId",
393
+ ORGANIZATION: "Organization",
394
+ RESOURCE_ARN: "ResourceArn"
395
+ };
396
+ var _InternalServerException = class _InternalServerException extends ComputeOptimizerServiceException {
397
+ /**
398
+ * @internal
399
+ */
400
+ constructor(opts) {
401
+ super({
402
+ name: "InternalServerException",
403
+ $fault: "server",
404
+ ...opts
405
+ });
406
+ this.name = "InternalServerException";
407
+ this.$fault = "server";
408
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
409
+ }
410
+ };
411
+ __name(_InternalServerException, "InternalServerException");
412
+ var InternalServerException = _InternalServerException;
413
+ var _InvalidParameterValueException = class _InvalidParameterValueException extends ComputeOptimizerServiceException {
414
+ /**
415
+ * @internal
416
+ */
417
+ constructor(opts) {
418
+ super({
419
+ name: "InvalidParameterValueException",
420
+ $fault: "client",
421
+ ...opts
422
+ });
423
+ this.name = "InvalidParameterValueException";
424
+ this.$fault = "client";
425
+ Object.setPrototypeOf(this, _InvalidParameterValueException.prototype);
426
+ }
427
+ };
428
+ __name(_InvalidParameterValueException, "InvalidParameterValueException");
429
+ var InvalidParameterValueException = _InvalidParameterValueException;
430
+ var _MissingAuthenticationToken = class _MissingAuthenticationToken extends ComputeOptimizerServiceException {
431
+ /**
432
+ * @internal
433
+ */
434
+ constructor(opts) {
435
+ super({
436
+ name: "MissingAuthenticationToken",
437
+ $fault: "client",
438
+ ...opts
439
+ });
440
+ this.name = "MissingAuthenticationToken";
441
+ this.$fault = "client";
442
+ Object.setPrototypeOf(this, _MissingAuthenticationToken.prototype);
443
+ }
444
+ };
445
+ __name(_MissingAuthenticationToken, "MissingAuthenticationToken");
446
+ var MissingAuthenticationToken = _MissingAuthenticationToken;
447
+ var _OptInRequiredException = class _OptInRequiredException extends ComputeOptimizerServiceException {
448
+ /**
449
+ * @internal
450
+ */
451
+ constructor(opts) {
452
+ super({
453
+ name: "OptInRequiredException",
454
+ $fault: "client",
455
+ ...opts
456
+ });
457
+ this.name = "OptInRequiredException";
458
+ this.$fault = "client";
459
+ Object.setPrototypeOf(this, _OptInRequiredException.prototype);
460
+ }
461
+ };
462
+ __name(_OptInRequiredException, "OptInRequiredException");
463
+ var OptInRequiredException = _OptInRequiredException;
464
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends ComputeOptimizerServiceException {
465
+ /**
466
+ * @internal
467
+ */
468
+ constructor(opts) {
469
+ super({
470
+ name: "ResourceNotFoundException",
471
+ $fault: "client",
472
+ ...opts
473
+ });
474
+ this.name = "ResourceNotFoundException";
475
+ this.$fault = "client";
476
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
477
+ }
478
+ };
479
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
480
+ var ResourceNotFoundException = _ResourceNotFoundException;
481
+ var _ServiceUnavailableException = class _ServiceUnavailableException extends ComputeOptimizerServiceException {
482
+ /**
483
+ * @internal
484
+ */
485
+ constructor(opts) {
486
+ super({
487
+ name: "ServiceUnavailableException",
488
+ $fault: "server",
489
+ ...opts
490
+ });
491
+ this.name = "ServiceUnavailableException";
492
+ this.$fault = "server";
493
+ Object.setPrototypeOf(this, _ServiceUnavailableException.prototype);
494
+ }
495
+ };
496
+ __name(_ServiceUnavailableException, "ServiceUnavailableException");
497
+ var ServiceUnavailableException = _ServiceUnavailableException;
498
+ var _ThrottlingException = class _ThrottlingException extends ComputeOptimizerServiceException {
499
+ /**
500
+ * @internal
501
+ */
502
+ constructor(opts) {
503
+ super({
504
+ name: "ThrottlingException",
505
+ $fault: "client",
506
+ ...opts
507
+ });
508
+ this.name = "ThrottlingException";
509
+ this.$fault = "client";
510
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
511
+ }
512
+ };
513
+ __name(_ThrottlingException, "ThrottlingException");
514
+ var ThrottlingException = _ThrottlingException;
515
+ var JobFilterName = {
516
+ JOB_STATUS: "JobStatus",
517
+ RESOURCE_TYPE: "ResourceType"
518
+ };
519
+ var JobStatus = {
520
+ COMPLETE: "Complete",
521
+ FAILED: "Failed",
522
+ IN_PROGRESS: "InProgress",
523
+ QUEUED: "Queued"
524
+ };
525
+ var ExportableAutoScalingGroupField = {
526
+ ACCOUNT_ID: "AccountId",
527
+ AUTO_SCALING_GROUP_ARN: "AutoScalingGroupArn",
528
+ AUTO_SCALING_GROUP_NAME: "AutoScalingGroupName",
529
+ CURRENT_CONFIGURATION_DESIRED_CAPACITY: "CurrentConfigurationDesiredCapacity",
530
+ CURRENT_CONFIGURATION_INSTANCE_TYPE: "CurrentConfigurationInstanceType",
531
+ CURRENT_CONFIGURATION_MAX_SIZE: "CurrentConfigurationMaxSize",
532
+ CURRENT_CONFIGURATION_MIN_SIZE: "CurrentConfigurationMinSize",
533
+ CURRENT_INSTANCE_GPU_INFO: "CurrentInstanceGpuInfo",
534
+ CURRENT_MEMORY: "CurrentMemory",
535
+ CURRENT_NETWORK: "CurrentNetwork",
536
+ CURRENT_ON_DEMAND_PRICE: "CurrentOnDemandPrice",
537
+ CURRENT_PERFORMANCE_RISK: "CurrentPerformanceRisk",
538
+ CURRENT_STANDARD_ONE_YEAR_NO_UPFRONT_RESERVED_PRICE: "CurrentStandardOneYearNoUpfrontReservedPrice",
539
+ CURRENT_STANDARD_THREE_YEAR_NO_UPFRONT_RESERVED_PRICE: "CurrentStandardThreeYearNoUpfrontReservedPrice",
540
+ CURRENT_STORAGE: "CurrentStorage",
541
+ CURRENT_VCPUS: "CurrentVCpus",
542
+ EFFECTIVE_RECOMMENDATION_PREFERENCES_CPU_VENDOR_ARCHITECTURES: "EffectiveRecommendationPreferencesCpuVendorArchitectures",
543
+ EFFECTIVE_RECOMMENDATION_PREFERENCES_ENHANCED_INFRASTRUCTURE_METRICS: "EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics",
544
+ EFFECTIVE_RECOMMENDATION_PREFERENCES_INFERRED_WORKLOAD_TYPES: "EffectiveRecommendationPreferencesInferredWorkloadTypes",
545
+ EFFECTIVE_RECOMMENDATION_PREFERENCES_LOOKBACK_PERIOD: "EffectiveRecommendationPreferencesLookBackPeriod",
546
+ EFFECTIVE_RECOMMENDATION_PREFERENCES_PREFERRED_RESOURCES: "EffectiveRecommendationPreferencesPreferredResources",
547
+ EFFECTIVE_RECOMMENDATION_PREFERENCES_SAVINGS_ESTIMATION_MODE: "EffectiveRecommendationPreferencesSavingsEstimationMode",
548
+ FINDING: "Finding",
549
+ INFERRED_WORKLOAD_TYPES: "InferredWorkloadTypes",
550
+ LAST_REFRESH_TIMESTAMP: "LastRefreshTimestamp",
551
+ LOOKBACK_PERIOD_IN_DAYS: "LookbackPeriodInDays",
552
+ RECOMMENDATION_OPTIONS_CONFIGURATION_DESIRED_CAPACITY: "RecommendationOptionsConfigurationDesiredCapacity",
553
+ RECOMMENDATION_OPTIONS_CONFIGURATION_INSTANCE_TYPE: "RecommendationOptionsConfigurationInstanceType",
554
+ RECOMMENDATION_OPTIONS_CONFIGURATION_MAX_SIZE: "RecommendationOptionsConfigurationMaxSize",
555
+ RECOMMENDATION_OPTIONS_CONFIGURATION_MIN_SIZE: "RecommendationOptionsConfigurationMinSize",
556
+ RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_CURRENCY: "RecommendationOptionsEstimatedMonthlySavingsCurrency",
557
+ RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_CURRENCY_AFTER_DISCOUNTS: "RecommendationOptionsEstimatedMonthlySavingsCurrencyAfterDiscounts",
558
+ RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_VALUE: "RecommendationOptionsEstimatedMonthlySavingsValue",
559
+ RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_VALUE_AFTER_DISCOUNTS: "RecommendationOptionsEstimatedMonthlySavingsValueAfterDiscounts",
560
+ RECOMMENDATION_OPTIONS_INSTANCE_GPU_INFO: "RecommendationOptionsInstanceGpuInfo",
561
+ RECOMMENDATION_OPTIONS_MEMORY: "RecommendationOptionsMemory",
562
+ RECOMMENDATION_OPTIONS_MIGRATION_EFFORT: "RecommendationOptionsMigrationEffort",
563
+ RECOMMENDATION_OPTIONS_NETWORK: "RecommendationOptionsNetwork",
564
+ RECOMMENDATION_OPTIONS_ON_DEMAND_PRICE: "RecommendationOptionsOnDemandPrice",
565
+ RECOMMENDATION_OPTIONS_PERFORMANCE_RISK: "RecommendationOptionsPerformanceRisk",
566
+ RECOMMENDATION_OPTIONS_PROJECTED_UTILIZATION_METRICS_CPU_MAXIMUM: "RecommendationOptionsProjectedUtilizationMetricsCpuMaximum",
567
+ RECOMMENDATION_OPTIONS_PROJECTED_UTILIZATION_METRICS_GPU_MAXIMUM: "RecommendationOptionsProjectedUtilizationMetricsGpuPercentageMaximum",
568
+ RECOMMENDATION_OPTIONS_PROJECTED_UTILIZATION_METRICS_GPU_MEMORY_MAXIMUM: "RecommendationOptionsProjectedUtilizationMetricsGpuMemoryPercentageMaximum",
569
+ RECOMMENDATION_OPTIONS_PROJECTED_UTILIZATION_METRICS_MEMORY_MAXIMUM: "RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum",
570
+ RECOMMENDATION_OPTIONS_SAVINGS_OPPORTUNITY_AFTER_DISCOUNTS_PERCENTAGE: "RecommendationOptionsSavingsOpportunityAfterDiscountsPercentage",
571
+ RECOMMENDATION_OPTIONS_SAVINGS_OPPORTUNITY_PERCENTAGE: "RecommendationOptionsSavingsOpportunityPercentage",
572
+ RECOMMENDATION_OPTIONS_STANDARD_ONE_YEAR_NO_UPFRONT_RESERVED_PRICE: "RecommendationOptionsStandardOneYearNoUpfrontReservedPrice",
573
+ RECOMMENDATION_OPTIONS_STANDARD_THREE_YEAR_NO_UPFRONT_RESERVED_PRICE: "RecommendationOptionsStandardThreeYearNoUpfrontReservedPrice",
574
+ RECOMMENDATION_OPTIONS_STORAGE: "RecommendationOptionsStorage",
575
+ RECOMMENDATION_OPTIONS_VCPUS: "RecommendationOptionsVcpus",
576
+ UTILIZATION_METRICS_CPU_MAXIMUM: "UtilizationMetricsCpuMaximum",
577
+ UTILIZATION_METRICS_DISK_READ_BYTES_PER_SECOND_MAXIMUM: "UtilizationMetricsDiskReadBytesPerSecondMaximum",
578
+ UTILIZATION_METRICS_DISK_READ_OPS_PER_SECOND_MAXIMUM: "UtilizationMetricsDiskReadOpsPerSecondMaximum",
579
+ UTILIZATION_METRICS_DISK_WRITE_BYTES_PER_SECOND_MAXIMUM: "UtilizationMetricsDiskWriteBytesPerSecondMaximum",
580
+ UTILIZATION_METRICS_DISK_WRITE_OPS_PER_SECOND_MAXIMUM: "UtilizationMetricsDiskWriteOpsPerSecondMaximum",
581
+ UTILIZATION_METRICS_EBS_READ_BYTES_PER_SECOND_MAXIMUM: "UtilizationMetricsEbsReadBytesPerSecondMaximum",
582
+ UTILIZATION_METRICS_EBS_READ_OPS_PER_SECOND_MAXIMUM: "UtilizationMetricsEbsReadOpsPerSecondMaximum",
583
+ UTILIZATION_METRICS_EBS_WRITE_BYTES_PER_SECOND_MAXIMUM: "UtilizationMetricsEbsWriteBytesPerSecondMaximum",
584
+ UTILIZATION_METRICS_EBS_WRITE_OPS_PER_SECOND_MAXIMUM: "UtilizationMetricsEbsWriteOpsPerSecondMaximum",
585
+ UTILIZATION_METRICS_GPU_MEMORY_PERCENTAGE_MAXIMUM: "UtilizationMetricsGpuMemoryPercentageMaximum",
586
+ UTILIZATION_METRICS_GPU_PERCENTAGE_MAXIMUM: "UtilizationMetricsGpuPercentageMaximum",
587
+ UTILIZATION_METRICS_MEMORY_MAXIMUM: "UtilizationMetricsMemoryMaximum",
588
+ UTILIZATION_METRICS_NETWORK_IN_BYTES_PER_SECOND_MAXIMUM: "UtilizationMetricsNetworkInBytesPerSecondMaximum",
589
+ UTILIZATION_METRICS_NETWORK_OUT_BYTES_PER_SECOND_MAXIMUM: "UtilizationMetricsNetworkOutBytesPerSecondMaximum",
590
+ UTILIZATION_METRICS_NETWORK_PACKETS_IN_PER_SECOND_MAXIMUM: "UtilizationMetricsNetworkPacketsInPerSecondMaximum",
591
+ UTILIZATION_METRICS_NETWORK_PACKETS_OUT_PER_SECOND_MAXIMUM: "UtilizationMetricsNetworkPacketsOutPerSecondMaximum"
592
+ };
593
+ var FileFormat = {
594
+ CSV: "Csv"
595
+ };
596
+ var FilterName = {
597
+ FINDING: "Finding",
598
+ FINDING_REASON_CODES: "FindingReasonCodes",
599
+ INFERRED_WORKLOAD_TYPES: "InferredWorkloadTypes",
600
+ RECOMMENDATION_SOURCE_TYPE: "RecommendationSourceType"
601
+ };
602
+ var _LimitExceededException = class _LimitExceededException extends ComputeOptimizerServiceException {
603
+ /**
604
+ * @internal
605
+ */
606
+ constructor(opts) {
607
+ super({
608
+ name: "LimitExceededException",
609
+ $fault: "client",
610
+ ...opts
611
+ });
612
+ this.name = "LimitExceededException";
613
+ this.$fault = "client";
614
+ Object.setPrototypeOf(this, _LimitExceededException.prototype);
615
+ }
616
+ };
617
+ __name(_LimitExceededException, "LimitExceededException");
618
+ var LimitExceededException = _LimitExceededException;
619
+ var ExportableVolumeField = {
620
+ ACCOUNT_ID: "AccountId",
621
+ CURRENT_CONFIGURATION_ROOT_VOLUME: "CurrentConfigurationRootVolume",
622
+ CURRENT_CONFIGURATION_VOLUME_BASELINE_IOPS: "CurrentConfigurationVolumeBaselineIOPS",
623
+ CURRENT_CONFIGURATION_VOLUME_BASELINE_THROUGHPUT: "CurrentConfigurationVolumeBaselineThroughput",
624
+ CURRENT_CONFIGURATION_VOLUME_BURST_IOPS: "CurrentConfigurationVolumeBurstIOPS",
625
+ CURRENT_CONFIGURATION_VOLUME_BURST_THROUGHPUT: "CurrentConfigurationVolumeBurstThroughput",
626
+ CURRENT_CONFIGURATION_VOLUME_SIZE: "CurrentConfigurationVolumeSize",
627
+ CURRENT_CONFIGURATION_VOLUME_TYPE: "CurrentConfigurationVolumeType",
628
+ CURRENT_MONTHLY_PRICE: "CurrentMonthlyPrice",
629
+ CURRENT_PERFORMANCE_RISK: "CurrentPerformanceRisk",
630
+ EFFECTIVE_RECOMMENDATION_PREFERENCES_SAVINGS_ESTIMATION_MODE: "EffectiveRecommendationPreferencesSavingsEstimationMode",
631
+ FINDING: "Finding",
632
+ LAST_REFRESH_TIMESTAMP: "LastRefreshTimestamp",
633
+ LOOKBACK_PERIOD_IN_DAYS: "LookbackPeriodInDays",
634
+ RECOMMENDATION_OPTIONS_CONFIGURATION_VOLUME_BASELINE_IOPS: "RecommendationOptionsConfigurationVolumeBaselineIOPS",
635
+ RECOMMENDATION_OPTIONS_CONFIGURATION_VOLUME_BASELINE_THROUGHPUT: "RecommendationOptionsConfigurationVolumeBaselineThroughput",
636
+ RECOMMENDATION_OPTIONS_CONFIGURATION_VOLUME_BURST_IOPS: "RecommendationOptionsConfigurationVolumeBurstIOPS",
637
+ RECOMMENDATION_OPTIONS_CONFIGURATION_VOLUME_BURST_THROUGHPUT: "RecommendationOptionsConfigurationVolumeBurstThroughput",
638
+ RECOMMENDATION_OPTIONS_CONFIGURATION_VOLUME_SIZE: "RecommendationOptionsConfigurationVolumeSize",
639
+ RECOMMENDATION_OPTIONS_CONFIGURATION_VOLUME_TYPE: "RecommendationOptionsConfigurationVolumeType",
640
+ RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_CURRENCY: "RecommendationOptionsEstimatedMonthlySavingsCurrency",
641
+ RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_CURRENCY_AFTER_DISCOUNTS: "RecommendationOptionsEstimatedMonthlySavingsCurrencyAfterDiscounts",
642
+ RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_VALUE: "RecommendationOptionsEstimatedMonthlySavingsValue",
643
+ RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_VALUE_AFTER_DISCOUNTS: "RecommendationOptionsEstimatedMonthlySavingsValueAfterDiscounts",
644
+ RECOMMENDATION_OPTIONS_MONTHLY_PRICE: "RecommendationOptionsMonthlyPrice",
645
+ RECOMMENDATION_OPTIONS_PERFORMANCE_RISK: "RecommendationOptionsPerformanceRisk",
646
+ RECOMMENDATION_OPTIONS_SAVINGS_OPPORTUNITY_AFTER_DISCOUNTS_PERCENTAGE: "RecommendationOptionsSavingsOpportunityAfterDiscountsPercentage",
647
+ RECOMMENDATION_OPTIONS_SAVINGS_OPPORTUNITY_PERCENTAGE: "RecommendationOptionsSavingsOpportunityPercentage",
648
+ ROOT_VOLUME: "RootVolume",
649
+ TAGS: "Tags",
650
+ UTILIZATION_METRICS_VOLUME_READ_BYTES_PER_SECOND_MAXIMUM: "UtilizationMetricsVolumeReadBytesPerSecondMaximum",
651
+ UTILIZATION_METRICS_VOLUME_READ_OPS_PER_SECOND_MAXIMUM: "UtilizationMetricsVolumeReadOpsPerSecondMaximum",
652
+ UTILIZATION_METRICS_VOLUME_WRITE_BYTES_PER_SECOND_MAXIMUM: "UtilizationMetricsVolumeWriteBytesPerSecondMaximum",
653
+ UTILIZATION_METRICS_VOLUME_WRITE_OPS_PER_SECOND_MAXIMUM: "UtilizationMetricsVolumeWriteOpsPerSecondMaximum",
654
+ VOLUME_ARN: "VolumeArn"
655
+ };
656
+ var EBSFilterName = {
657
+ FINDING: "Finding"
658
+ };
659
+ var ExportableInstanceField = {
660
+ ACCOUNT_ID: "AccountId",
661
+ CURRENT_INSTANCE_GPU_INFO: "CurrentInstanceGpuInfo",
662
+ CURRENT_INSTANCE_TYPE: "CurrentInstanceType",
663
+ CURRENT_MEMORY: "CurrentMemory",
664
+ CURRENT_NETWORK: "CurrentNetwork",
665
+ CURRENT_ON_DEMAND_PRICE: "CurrentOnDemandPrice",
666
+ CURRENT_PERFORMANCE_RISK: "CurrentPerformanceRisk",
667
+ CURRENT_STANDARD_ONE_YEAR_NO_UPFRONT_RESERVED_PRICE: "CurrentStandardOneYearNoUpfrontReservedPrice",
668
+ CURRENT_STANDARD_THREE_YEAR_NO_UPFRONT_RESERVED_PRICE: "CurrentStandardThreeYearNoUpfrontReservedPrice",
669
+ CURRENT_STORAGE: "CurrentStorage",
670
+ CURRENT_VCPUS: "CurrentVCpus",
671
+ EFFECTIVE_RECOMMENDATION_PREFERENCES_CPU_VENDOR_ARCHITECTURES: "EffectiveRecommendationPreferencesCpuVendorArchitectures",
672
+ EFFECTIVE_RECOMMENDATION_PREFERENCES_ENHANCED_INFRASTRUCTURE_METRICS: "EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics",
673
+ EFFECTIVE_RECOMMENDATION_PREFERENCES_EXTERNAL_METRICS_SOURCE: "EffectiveRecommendationPreferencesExternalMetricsSource",
674
+ EFFECTIVE_RECOMMENDATION_PREFERENCES_INFERRED_WORKLOAD_TYPES: "EffectiveRecommendationPreferencesInferredWorkloadTypes",
675
+ EFFECTIVE_RECOMMENDATION_PREFERENCES_LOOKBACK_PERIOD: "EffectiveRecommendationPreferencesLookBackPeriod",
676
+ EFFECTIVE_RECOMMENDATION_PREFERENCES_PREFERRED_RESOURCES: "EffectiveRecommendationPreferencesPreferredResources",
677
+ EFFECTIVE_RECOMMENDATION_PREFERENCES_SAVINGS_ESTIMATION_MODE: "EffectiveRecommendationPreferencesSavingsEstimationMode",
678
+ EFFECTIVE_RECOMMENDATION_PREFERENCES_UTILIZATION_PREFERENCES: "EffectiveRecommendationPreferencesUtilizationPreferences",
679
+ EXTERNAL_METRIC_STATUS_CODE: "ExternalMetricStatusCode",
680
+ EXTERNAL_METRIC_STATUS_REASON: "ExternalMetricStatusReason",
681
+ FINDING: "Finding",
682
+ Finding_Reason_Codes: "FindingReasonCodes",
683
+ IDLE: "Idle",
684
+ INFERRED_WORKLOAD_TYPES: "InferredWorkloadTypes",
685
+ INSTANCE_ARN: "InstanceArn",
686
+ INSTANCE_NAME: "InstanceName",
687
+ INSTANCE_STATE: "InstanceState",
688
+ LAST_REFRESH_TIMESTAMP: "LastRefreshTimestamp",
689
+ LOOKBACK_PERIOD_IN_DAYS: "LookbackPeriodInDays",
690
+ RECOMMENDATIONS_SOURCES_RECOMMENDATION_SOURCE_ARN: "RecommendationsSourcesRecommendationSourceArn",
691
+ RECOMMENDATIONS_SOURCES_RECOMMENDATION_SOURCE_TYPE: "RecommendationsSourcesRecommendationSourceType",
692
+ RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_CURRENCY: "RecommendationOptionsEstimatedMonthlySavingsCurrency",
693
+ RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_CURRENCY_AFTER_DISCOUNTS: "RecommendationOptionsEstimatedMonthlySavingsCurrencyAfterDiscounts",
694
+ RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_VALUE: "RecommendationOptionsEstimatedMonthlySavingsValue",
695
+ RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_VALUE_AFTER_DISCOUNTS: "RecommendationOptionsEstimatedMonthlySavingsValueAfterDiscounts",
696
+ RECOMMENDATION_OPTIONS_INSTANCE_GPU_INFO: "RecommendationOptionsInstanceGpuInfo",
697
+ RECOMMENDATION_OPTIONS_INSTANCE_TYPE: "RecommendationOptionsInstanceType",
698
+ RECOMMENDATION_OPTIONS_MEMORY: "RecommendationOptionsMemory",
699
+ RECOMMENDATION_OPTIONS_MIGRATION_EFFORT: "RecommendationOptionsMigrationEffort",
700
+ RECOMMENDATION_OPTIONS_NETWORK: "RecommendationOptionsNetwork",
701
+ RECOMMENDATION_OPTIONS_ON_DEMAND_PRICE: "RecommendationOptionsOnDemandPrice",
702
+ RECOMMENDATION_OPTIONS_PERFORMANCE_RISK: "RecommendationOptionsPerformanceRisk",
703
+ RECOMMENDATION_OPTIONS_PLATFORM_DIFFERENCES: "RecommendationOptionsPlatformDifferences",
704
+ RECOMMENDATION_OPTIONS_PROJECTED_UTILIZATION_METRICS_CPU_MAXIMUM: "RecommendationOptionsProjectedUtilizationMetricsCpuMaximum",
705
+ RECOMMENDATION_OPTIONS_PROJECTED_UTILIZATION_METRICS_GPU_MEMORY_PERCENTAGE_MAXIMUM: "RecommendationOptionsProjectedUtilizationMetricsGpuMemoryPercentageMaximum",
706
+ RECOMMENDATION_OPTIONS_PROJECTED_UTILIZATION_METRICS_GPU_PERCENTAGE_MAXIMUM: "RecommendationOptionsProjectedUtilizationMetricsGpuPercentageMaximum",
707
+ RECOMMENDATION_OPTIONS_PROJECTED_UTILIZATION_METRICS_MEMORY_MAXIMUM: "RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum",
708
+ RECOMMENDATION_OPTIONS_SAVINGS_OPPORTUNITY_AFTER_DISCOUNTS_PERCENTAGE: "RecommendationOptionsSavingsOpportunityAfterDiscountsPercentage",
709
+ RECOMMENDATION_OPTIONS_SAVINGS_OPPORTUNITY_PERCENTAGE: "RecommendationOptionsSavingsOpportunityPercentage",
710
+ RECOMMENDATION_OPTIONS_STANDARD_ONE_YEAR_NO_UPFRONT_RESERVED_PRICE: "RecommendationOptionsStandardOneYearNoUpfrontReservedPrice",
711
+ RECOMMENDATION_OPTIONS_STANDARD_THREE_YEAR_NO_UPFRONT_RESERVED_PRICE: "RecommendationOptionsStandardThreeYearNoUpfrontReservedPrice",
712
+ RECOMMENDATION_OPTIONS_STORAGE: "RecommendationOptionsStorage",
713
+ RECOMMENDATION_OPTIONS_VCPUS: "RecommendationOptionsVcpus",
714
+ TAGS: "Tags",
715
+ UTILIZATION_METRICS_CPU_MAXIMUM: "UtilizationMetricsCpuMaximum",
716
+ UTILIZATION_METRICS_DISK_READ_BYTES_PER_SECOND_MAXIMUM: "UtilizationMetricsDiskReadBytesPerSecondMaximum",
717
+ UTILIZATION_METRICS_DISK_READ_OPS_PER_SECOND_MAXIMUM: "UtilizationMetricsDiskReadOpsPerSecondMaximum",
718
+ UTILIZATION_METRICS_DISK_WRITE_BYTES_PER_SECOND_MAXIMUM: "UtilizationMetricsDiskWriteBytesPerSecondMaximum",
719
+ UTILIZATION_METRICS_DISK_WRITE_OPS_PER_SECOND_MAXIMUM: "UtilizationMetricsDiskWriteOpsPerSecondMaximum",
720
+ UTILIZATION_METRICS_EBS_READ_BYTES_PER_SECOND_MAXIMUM: "UtilizationMetricsEbsReadBytesPerSecondMaximum",
721
+ UTILIZATION_METRICS_EBS_READ_OPS_PER_SECOND_MAXIMUM: "UtilizationMetricsEbsReadOpsPerSecondMaximum",
722
+ UTILIZATION_METRICS_EBS_WRITE_BYTES_PER_SECOND_MAXIMUM: "UtilizationMetricsEbsWriteBytesPerSecondMaximum",
723
+ UTILIZATION_METRICS_EBS_WRITE_OPS_PER_SECOND_MAXIMUM: "UtilizationMetricsEbsWriteOpsPerSecondMaximum",
724
+ UTILIZATION_METRICS_GPU_MEMORY_PERCENTAGE_MAXIMUM: "UtilizationMetricsGpuMemoryPercentageMaximum",
725
+ UTILIZATION_METRICS_GPU_PERCENTAGE_MAXIMUM: "UtilizationMetricsGpuPercentageMaximum",
726
+ UTILIZATION_METRICS_MEMORY_MAXIMUM: "UtilizationMetricsMemoryMaximum",
727
+ UTILIZATION_METRICS_NETWORK_IN_BYTES_PER_SECOND_MAXIMUM: "UtilizationMetricsNetworkInBytesPerSecondMaximum",
728
+ UTILIZATION_METRICS_NETWORK_OUT_BYTES_PER_SECOND_MAXIMUM: "UtilizationMetricsNetworkOutBytesPerSecondMaximum",
729
+ UTILIZATION_METRICS_NETWORK_PACKETS_IN_PER_SECOND_MAXIMUM: "UtilizationMetricsNetworkPacketsInPerSecondMaximum",
730
+ UTILIZATION_METRICS_NETWORK_PACKETS_OUT_PER_SECOND_MAXIMUM: "UtilizationMetricsNetworkPacketsOutPerSecondMaximum"
731
+ };
732
+ var ExportableECSServiceField = {
733
+ ACCOUNT_ID: "AccountId",
734
+ CURRENT_PERFORMANCE_RISK: "CurrentPerformanceRisk",
735
+ CURRENT_SERVICE_CONFIGURATION_AUTO_SCALING_CONFIGURATION: "CurrentServiceConfigurationAutoScalingConfiguration",
736
+ CURRENT_SERVICE_CONFIGURATION_CPU: "CurrentServiceConfigurationCpu",
737
+ CURRENT_SERVICE_CONFIGURATION_MEMORY: "CurrentServiceConfigurationMemory",
738
+ CURRENT_SERVICE_CONFIGURATION_TASK_DEFINITION_ARN: "CurrentServiceConfigurationTaskDefinitionArn",
739
+ CURRENT_SERVICE_CONTAINER_CONFIGURATIONS: "CurrentServiceContainerConfigurations",
740
+ EFFECTIVE_RECOMMENDATION_PREFERENCES_SAVINGS_ESTIMATION_MODE: "EffectiveRecommendationPreferencesSavingsEstimationMode",
741
+ FINDING: "Finding",
742
+ FINDING_REASON_CODES: "FindingReasonCodes",
743
+ LAST_REFRESH_TIMESTAMP: "LastRefreshTimestamp",
744
+ LAUNCH_TYPE: "LaunchType",
745
+ LOOKBACK_PERIOD_IN_DAYS: "LookbackPeriodInDays",
746
+ RECOMMENDATION_OPTIONS_CONTAINER_RECOMMENDATIONS: "RecommendationOptionsContainerRecommendations",
747
+ RECOMMENDATION_OPTIONS_CPU: "RecommendationOptionsCpu",
748
+ RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_CURRENCY: "RecommendationOptionsEstimatedMonthlySavingsCurrency",
749
+ RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_CURRENCY_AFTER_DISCOUNTS: "RecommendationOptionsEstimatedMonthlySavingsCurrencyAfterDiscounts",
750
+ RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_VALUE: "RecommendationOptionsEstimatedMonthlySavingsValue",
751
+ RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_VALUE_AFTER_DISCOUNTS: "RecommendationOptionsEstimatedMonthlySavingsValueAfterDiscounts",
752
+ RECOMMENDATION_OPTIONS_MEMORY: "RecommendationOptionsMemory",
753
+ RECOMMENDATION_OPTIONS_PROJECTED_UTILIZATION_METRICS_CPU_MAXIMUM: "RecommendationOptionsProjectedUtilizationMetricsCpuMaximum",
754
+ RECOMMENDATION_OPTIONS_PROJECTED_UTILIZATION_METRICS_MEMORY_MAXIMUM: "RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum",
755
+ RECOMMENDATION_OPTIONS_SAVINGS_OPPORTUNITY_AFTER_DISCOUNTS_PERCENTAGE: "RecommendationOptionsSavingsOpportunityAfterDiscountsPercentage",
756
+ RECOMMENDATION_OPTIONS_SAVINGS_OPPORTUNITY_PERCENTAGE: "RecommendationOptionsSavingsOpportunityPercentage",
757
+ SERVICE_ARN: "ServiceArn",
758
+ TAGS: "Tags",
759
+ UTILIZATION_METRICS_CPU_MAXIMUM: "UtilizationMetricsCpuMaximum",
760
+ UTILIZATION_METRICS_MEMORY_MAXIMUM: "UtilizationMetricsMemoryMaximum"
761
+ };
762
+ var ECSServiceRecommendationFilterName = {
763
+ FINDING: "Finding",
764
+ FINDING_REASON_CODE: "FindingReasonCode"
765
+ };
766
+ var ExportableLambdaFunctionField = {
767
+ ACCOUNT_ID: "AccountId",
768
+ CURRENT_CONFIGURATION_MEMORY_SIZE: "CurrentConfigurationMemorySize",
769
+ CURRENT_CONFIGURATION_TIMEOUT: "CurrentConfigurationTimeout",
770
+ CURRENT_COST_AVERAGE: "CurrentCostAverage",
771
+ CURRENT_COST_TOTAL: "CurrentCostTotal",
772
+ CURRENT_PERFORMANCE_RISK: "CurrentPerformanceRisk",
773
+ EFFECTIVE_RECOMMENDATION_PREFERENCES_SAVINGS_ESTIMATION_MODE: "EffectiveRecommendationPreferencesSavingsEstimationMode",
774
+ FINDING: "Finding",
775
+ FINDING_REASON_CODES: "FindingReasonCodes",
776
+ FUNCTION_ARN: "FunctionArn",
777
+ FUNCTION_VERSION: "FunctionVersion",
778
+ LAST_REFRESH_TIMESTAMP: "LastRefreshTimestamp",
779
+ LOOKBACK_PERIOD_IN_DAYS: "LookbackPeriodInDays",
780
+ NUMBER_OF_INVOCATIONS: "NumberOfInvocations",
781
+ RECOMMENDATION_OPTIONS_CONFIGURATION_MEMORY_SIZE: "RecommendationOptionsConfigurationMemorySize",
782
+ RECOMMENDATION_OPTIONS_COST_HIGH: "RecommendationOptionsCostHigh",
783
+ RECOMMENDATION_OPTIONS_COST_LOW: "RecommendationOptionsCostLow",
784
+ RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_CURRENCY: "RecommendationOptionsEstimatedMonthlySavingsCurrency",
785
+ RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_CURRENCY_AFTER_DISCOUNTS: "RecommendationOptionsEstimatedMonthlySavingsCurrencyAfterDiscounts",
786
+ RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_VALUE: "RecommendationOptionsEstimatedMonthlySavingsValue",
787
+ RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_VALUE_AFTER_DISCOUNTS: "RecommendationOptionsEstimatedMonthlySavingsValueAfterDiscounts",
788
+ RECOMMENDATION_OPTIONS_PROJECTED_UTILIZATION_METRICS_DURATION_EXPECTED: "RecommendationOptionsProjectedUtilizationMetricsDurationExpected",
789
+ RECOMMENDATION_OPTIONS_PROJECTED_UTILIZATION_METRICS_DURATION_LOWER_BOUND: "RecommendationOptionsProjectedUtilizationMetricsDurationLowerBound",
790
+ RECOMMENDATION_OPTIONS_PROJECTED_UTILIZATION_METRICS_DURATION_UPPER_BOUND: "RecommendationOptionsProjectedUtilizationMetricsDurationUpperBound",
791
+ RECOMMENDATION_OPTIONS_SAVINGS_OPPORTUNITY_AFTER_DISCOUNTS_PERCENTAGE: "RecommendationOptionsSavingsOpportunityAfterDiscountsPercentage",
792
+ RECOMMENDATION_OPTIONS_SAVINGS_OPPORTUNITY_PERCENTAGE: "RecommendationOptionsSavingsOpportunityPercentage",
793
+ TAGS: "Tags",
794
+ UTILIZATION_METRICS_DURATION_AVERAGE: "UtilizationMetricsDurationAverage",
795
+ UTILIZATION_METRICS_DURATION_MAXIMUM: "UtilizationMetricsDurationMaximum",
796
+ UTILIZATION_METRICS_MEMORY_AVERAGE: "UtilizationMetricsMemoryAverage",
797
+ UTILIZATION_METRICS_MEMORY_MAXIMUM: "UtilizationMetricsMemoryMaximum"
798
+ };
799
+ var LambdaFunctionRecommendationFilterName = {
800
+ FINDING: "Finding",
801
+ FINDING_REASON_CODE: "FindingReasonCode"
802
+ };
803
+ var ExportableLicenseField = {
804
+ ACCOUNT_ID: "AccountId",
805
+ CURRENT_LICENSE_CONFIGURATION_INSTANCE_TYPE: "CurrentLicenseConfigurationInstanceType",
806
+ CURRENT_LICENSE_CONFIGURATION_LICENSE_EDITION: "CurrentLicenseConfigurationLicenseEdition",
807
+ CURRENT_LICENSE_CONFIGURATION_LICENSE_MODEL: "CurrentLicenseConfigurationLicenseModel",
808
+ CURRENT_LICENSE_CONFIGURATION_LICENSE_NAME: "CurrentLicenseConfigurationLicenseName",
809
+ CURRENT_LICENSE_CONFIGURATION_LICENSE_VERSION: "CurrentLicenseConfigurationLicenseVersion",
810
+ CURRENT_LICENSE_CONFIGURATION_METRICS_SOURCE: "CurrentLicenseConfigurationMetricsSource",
811
+ CURRENT_LICENSE_CONFIGURATION_NUMBER_OF_CORES: "CurrentLicenseConfigurationNumberOfCores",
812
+ CURRENT_LICENSE_CONFIGURATION_OPERATING_SYSTEM: "CurrentLicenseConfigurationOperatingSystem",
813
+ LAST_REFRESH_TIMESTAMP: "LastRefreshTimestamp",
814
+ LICENSE_FINDING: "Finding",
815
+ LICENSE_FINDING_REASON_CODES: "FindingReasonCodes",
816
+ LOOKBACK_PERIOD_IN_DAYS: "LookbackPeriodInDays",
817
+ RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_CURRENCY: "RecommendationOptionsEstimatedMonthlySavingsCurrency",
818
+ RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_VALUE: "RecommendationOptionsEstimatedMonthlySavingsValue",
819
+ RECOMMENDATION_OPTIONS_LICENSE_EDITION: "RecommendationOptionsLicenseEdition",
820
+ RECOMMENDATION_OPTIONS_LICENSE_MODEL: "RecommendationOptionsLicenseModel",
821
+ RECOMMENDATION_OPTIONS_OPERATING_SYSTEM: "RecommendationOptionsOperatingSystem",
822
+ RECOMMENDATION_OPTIONS_SAVINGS_OPPORTUNITY_PERCENTAGE: "RecommendationOptionsSavingsOpportunityPercentage",
823
+ RESOURCE_ARN: "ResourceArn",
824
+ TAGS: "Tags"
825
+ };
826
+ var LicenseRecommendationFilterName = {
827
+ LICENSE_FINDING: "Finding",
828
+ LICENSE_FINDING_REASON_CODE: "FindingReasonCode",
829
+ LICENSE_NAME: "LicenseName"
830
+ };
831
+ var EBSSavingsEstimationModeSource = {
832
+ COST_EXPLORER_RIGHTSIZING: "CostExplorerRightsizing",
833
+ COST_OPTIMIZATION_HUB: "CostOptimizationHub",
834
+ PUBLIC_PRICING: "PublicPricing"
835
+ };
836
+ var EBSFinding = {
837
+ NOT_OPTIMIZED: "NotOptimized",
838
+ OPTIMIZED: "Optimized"
839
+ };
840
+ var EBSMetricName = {
841
+ VOLUME_READ_BYTES_PER_SECOND: "VolumeReadBytesPerSecond",
842
+ VOLUME_READ_OPS_PER_SECOND: "VolumeReadOpsPerSecond",
843
+ VOLUME_WRITE_BYTES_PER_SECOND: "VolumeWriteBytesPerSecond",
844
+ VOLUME_WRITE_OPS_PER_SECOND: "VolumeWriteOpsPerSecond"
845
+ };
846
+ var ExternalMetricStatusCode = {
847
+ DATADOG_INTEGRATION_ERROR: "DATADOG_INTEGRATION_ERROR",
848
+ DYNATRACE_INTEGRATION_ERROR: "DYNATRACE_INTEGRATION_ERROR",
849
+ INSTANA_INTEGRATION_ERROR: "INSTANA_INTEGRATION_ERROR",
850
+ INSUFFICIENT_DATADOG_METRICS: "INSUFFICIENT_DATADOG_METRICS",
851
+ INSUFFICIENT_DYNATRACE_METRICS: "INSUFFICIENT_DYNATRACE_METRICS",
852
+ INSUFFICIENT_INSTANA_METRICS: "INSUFFICIENT_INSTANA_METRICS",
853
+ INSUFFICIENT_NEWRELIC_METRICS: "INSUFFICIENT_NEWRELIC_METRICS",
854
+ INTEGRATION_SUCCESS: "INTEGRATION_SUCCESS",
855
+ NEWRELIC_INTEGRATION_ERROR: "NEWRELIC_INTEGRATION_ERROR",
856
+ NO_EXTERNAL_METRIC_SET: "NO_EXTERNAL_METRIC_SET"
857
+ };
858
+ var InstanceRecommendationFindingReasonCode = {
859
+ CPU_OVER_PROVISIONED: "CPUOverprovisioned",
860
+ CPU_UNDER_PROVISIONED: "CPUUnderprovisioned",
861
+ DISK_IOPS_OVER_PROVISIONED: "DiskIOPSOverprovisioned",
862
+ DISK_IOPS_UNDER_PROVISIONED: "DiskIOPSUnderprovisioned",
863
+ DISK_THROUGHPUT_OVER_PROVISIONED: "DiskThroughputOverprovisioned",
864
+ DISK_THROUGHPUT_UNDER_PROVISIONED: "DiskThroughputUnderprovisioned",
865
+ EBS_IOPS_OVER_PROVISIONED: "EBSIOPSOverprovisioned",
866
+ EBS_IOPS_UNDER_PROVISIONED: "EBSIOPSUnderprovisioned",
867
+ EBS_THROUGHPUT_OVER_PROVISIONED: "EBSThroughputOverprovisioned",
868
+ EBS_THROUGHPUT_UNDER_PROVISIONED: "EBSThroughputUnderprovisioned",
869
+ GPU_MEMORY_OVER_PROVISIONED: "GPUMemoryOverprovisioned",
870
+ GPU_MEMORY_UNDER_PROVISIONED: "GPUMemoryUnderprovisioned",
871
+ GPU_OVER_PROVISIONED: "GPUOverprovisioned",
872
+ GPU_UNDER_PROVISIONED: "GPUUnderprovisioned",
873
+ MEMORY_OVER_PROVISIONED: "MemoryOverprovisioned",
874
+ MEMORY_UNDER_PROVISIONED: "MemoryUnderprovisioned",
875
+ NETWORK_BANDWIDTH_OVER_PROVISIONED: "NetworkBandwidthOverprovisioned",
876
+ NETWORK_BANDWIDTH_UNDER_PROVISIONED: "NetworkBandwidthUnderprovisioned",
877
+ NETWORK_PPS_OVER_PROVISIONED: "NetworkPPSOverprovisioned",
878
+ NETWORK_PPS_UNDER_PROVISIONED: "NetworkPPSUnderprovisioned"
879
+ };
880
+ var InstanceIdle = {
881
+ FALSE: "False",
882
+ TRUE: "True"
883
+ };
884
+ var InstanceState = {
885
+ PENDING: "pending",
886
+ RUNNING: "running",
887
+ SHUTTING_DOWN: "shutting-down",
888
+ STOPPED: "stopped",
889
+ STOPPING: "stopping",
890
+ TERMINATED: "terminated"
891
+ };
892
+ var PlatformDifference = {
893
+ ARCHITECTURE: "Architecture",
894
+ HYPERVISOR: "Hypervisor",
895
+ INSTANCE_STORE_AVAILABILITY: "InstanceStoreAvailability",
896
+ NETWORK_INTERFACE: "NetworkInterface",
897
+ STORAGE_INTERFACE: "StorageInterface",
898
+ VIRTUALIZATION_TYPE: "VirtualizationType"
899
+ };
900
+ var RecommendationSourceType = {
901
+ AUTO_SCALING_GROUP: "AutoScalingGroup",
902
+ EBS_VOLUME: "EbsVolume",
903
+ EC2_INSTANCE: "Ec2Instance",
904
+ ECS_SERVICE: "EcsService",
905
+ LAMBDA_FUNCTION: "LambdaFunction",
906
+ LICENSE: "License"
907
+ };
908
+ var ECSServiceMetricName = {
909
+ CPU: "Cpu",
910
+ MEMORY: "Memory"
911
+ };
912
+ var ECSSavingsEstimationModeSource = {
913
+ COST_EXPLORER_RIGHTSIZING: "CostExplorerRightsizing",
914
+ COST_OPTIMIZATION_HUB: "CostOptimizationHub",
915
+ PUBLIC_PRICING: "PublicPricing"
916
+ };
917
+ var ECSServiceRecommendationFinding = {
918
+ OPTIMIZED: "Optimized",
919
+ OVER_PROVISIONED: "Overprovisioned",
920
+ UNDER_PROVISIONED: "Underprovisioned"
921
+ };
922
+ var ECSServiceRecommendationFindingReasonCode = {
923
+ CPU_OVER_PROVISIONED: "CPUOverprovisioned",
924
+ CPU_UNDER_PROVISIONED: "CPUUnderprovisioned",
925
+ MEMORY_OVER_PROVISIONED: "MemoryOverprovisioned",
926
+ MEMORY_UNDER_PROVISIONED: "MemoryUnderprovisioned"
927
+ };
928
+ var ECSServiceLaunchType = {
929
+ EC2: "EC2",
930
+ FARGATE: "Fargate"
931
+ };
932
+ var ECSServiceMetricStatistic = {
933
+ AVERAGE: "Average",
934
+ MAXIMUM: "Maximum"
935
+ };
936
+ var EnrollmentFilterName = {
937
+ STATUS: "Status"
938
+ };
939
+ var LambdaSavingsEstimationModeSource = {
940
+ COST_EXPLORER_RIGHTSIZING: "CostExplorerRightsizing",
941
+ COST_OPTIMIZATION_HUB: "CostOptimizationHub",
942
+ PUBLIC_PRICING: "PublicPricing"
943
+ };
944
+ var LambdaFunctionRecommendationFinding = {
945
+ NOT_OPTIMIZED: "NotOptimized",
946
+ OPTIMIZED: "Optimized",
947
+ UNAVAILABLE: "Unavailable"
948
+ };
949
+ var LambdaFunctionRecommendationFindingReasonCode = {
950
+ INCONCLUSIVE: "Inconclusive",
951
+ INSUFFICIENT_DATA: "InsufficientData",
952
+ MEMORY_OVER_PROVISIONED: "MemoryOverprovisioned",
953
+ MEMORY_UNDER_PROVISIONED: "MemoryUnderprovisioned"
954
+ };
955
+ var LambdaFunctionMemoryMetricName = {
956
+ DURATION: "Duration"
957
+ };
958
+ var LambdaFunctionMemoryMetricStatistic = {
959
+ EXPECTED: "Expected",
960
+ LOWER_BOUND: "LowerBound",
961
+ UPPER_BOUND: "UpperBound"
962
+ };
963
+ var LambdaFunctionMetricName = {
964
+ DURATION: "Duration",
965
+ MEMORY: "Memory"
966
+ };
967
+ var LambdaFunctionMetricStatistic = {
968
+ AVERAGE: "Average",
969
+ MAXIMUM: "Maximum"
970
+ };
971
+ var LicenseEdition = {
972
+ ENTERPRISE: "Enterprise",
973
+ FREE: "Free",
974
+ NO_LICENSE_EDITION_FOUND: "NoLicenseEditionFound",
975
+ STANDARD: "Standard"
976
+ };
977
+ var LicenseModel = {
978
+ BRING_YOUR_OWN_LICENSE: "BringYourOwnLicense",
979
+ LICENSE_INCLUDED: "LicenseIncluded"
980
+ };
981
+ var LicenseName = {
982
+ SQLSERVER: "SQLServer"
983
+ };
984
+ var MetricSourceProvider = {
985
+ CloudWatchAppInsights: "CloudWatchApplicationInsights"
986
+ };
987
+ var LicenseFinding = {
988
+ INSUFFICIENT_METRICS: "InsufficientMetrics",
989
+ NOT_OPTIMIZED: "NotOptimized",
990
+ OPTIMIZED: "Optimized"
991
+ };
992
+ var LicenseFindingReasonCode = {
993
+ CW_APP_INSIGHTS_DISABLED: "InvalidCloudWatchApplicationInsightsSetup",
994
+ CW_APP_INSIGHTS_ERROR: "CloudWatchApplicationInsightsError",
995
+ LICENSE_OVER_PROVISIONED: "LicenseOverprovisioned",
996
+ OPTIMIZED: "Optimized"
997
+ };
998
+ var SavingsEstimationMode = {
999
+ AFTER_DISCOUNTS: "AfterDiscounts",
1000
+ BEFORE_DISCOUNTS: "BeforeDiscounts"
1001
+ };
1002
+ var FindingReasonCode = {
1003
+ MEMORY_OVER_PROVISIONED: "MemoryOverprovisioned",
1004
+ MEMORY_UNDER_PROVISIONED: "MemoryUnderprovisioned"
1005
+ };
1006
+
1007
+ // src/protocols/Aws_json1_0.ts
1008
+ var se_DeleteRecommendationPreferencesCommand = /* @__PURE__ */ __name(async (input, context) => {
1009
+ const headers = sharedHeaders("DeleteRecommendationPreferences");
1010
+ let body;
1011
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1012
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1013
+ }, "se_DeleteRecommendationPreferencesCommand");
1014
+ var se_DescribeRecommendationExportJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
1015
+ const headers = sharedHeaders("DescribeRecommendationExportJobs");
1016
+ let body;
1017
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1018
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1019
+ }, "se_DescribeRecommendationExportJobsCommand");
1020
+ var se_ExportAutoScalingGroupRecommendationsCommand = /* @__PURE__ */ __name(async (input, context) => {
1021
+ const headers = sharedHeaders("ExportAutoScalingGroupRecommendations");
1022
+ let body;
1023
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1024
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1025
+ }, "se_ExportAutoScalingGroupRecommendationsCommand");
1026
+ var se_ExportEBSVolumeRecommendationsCommand = /* @__PURE__ */ __name(async (input, context) => {
1027
+ const headers = sharedHeaders("ExportEBSVolumeRecommendations");
1028
+ let body;
1029
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1030
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1031
+ }, "se_ExportEBSVolumeRecommendationsCommand");
1032
+ var se_ExportEC2InstanceRecommendationsCommand = /* @__PURE__ */ __name(async (input, context) => {
1033
+ const headers = sharedHeaders("ExportEC2InstanceRecommendations");
1034
+ let body;
1035
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1036
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1037
+ }, "se_ExportEC2InstanceRecommendationsCommand");
1038
+ var se_ExportECSServiceRecommendationsCommand = /* @__PURE__ */ __name(async (input, context) => {
1039
+ const headers = sharedHeaders("ExportECSServiceRecommendations");
1040
+ let body;
1041
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1042
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1043
+ }, "se_ExportECSServiceRecommendationsCommand");
1044
+ var se_ExportLambdaFunctionRecommendationsCommand = /* @__PURE__ */ __name(async (input, context) => {
1045
+ const headers = sharedHeaders("ExportLambdaFunctionRecommendations");
1046
+ let body;
1047
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1048
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1049
+ }, "se_ExportLambdaFunctionRecommendationsCommand");
1050
+ var se_ExportLicenseRecommendationsCommand = /* @__PURE__ */ __name(async (input, context) => {
1051
+ const headers = sharedHeaders("ExportLicenseRecommendations");
1052
+ let body;
1053
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1054
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1055
+ }, "se_ExportLicenseRecommendationsCommand");
1056
+ var se_GetAutoScalingGroupRecommendationsCommand = /* @__PURE__ */ __name(async (input, context) => {
1057
+ const headers = sharedHeaders("GetAutoScalingGroupRecommendations");
1058
+ let body;
1059
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1060
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1061
+ }, "se_GetAutoScalingGroupRecommendationsCommand");
1062
+ var se_GetEBSVolumeRecommendationsCommand = /* @__PURE__ */ __name(async (input, context) => {
1063
+ const headers = sharedHeaders("GetEBSVolumeRecommendations");
1064
+ let body;
1065
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1066
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1067
+ }, "se_GetEBSVolumeRecommendationsCommand");
1068
+ var se_GetEC2InstanceRecommendationsCommand = /* @__PURE__ */ __name(async (input, context) => {
1069
+ const headers = sharedHeaders("GetEC2InstanceRecommendations");
1070
+ let body;
1071
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1072
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1073
+ }, "se_GetEC2InstanceRecommendationsCommand");
1074
+ var se_GetEC2RecommendationProjectedMetricsCommand = /* @__PURE__ */ __name(async (input, context) => {
1075
+ const headers = sharedHeaders("GetEC2RecommendationProjectedMetrics");
1076
+ let body;
1077
+ body = JSON.stringify(se_GetEC2RecommendationProjectedMetricsRequest(input, context));
1078
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1079
+ }, "se_GetEC2RecommendationProjectedMetricsCommand");
1080
+ var se_GetECSServiceRecommendationProjectedMetricsCommand = /* @__PURE__ */ __name(async (input, context) => {
1081
+ const headers = sharedHeaders("GetECSServiceRecommendationProjectedMetrics");
1082
+ let body;
1083
+ body = JSON.stringify(se_GetECSServiceRecommendationProjectedMetricsRequest(input, context));
1084
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1085
+ }, "se_GetECSServiceRecommendationProjectedMetricsCommand");
1086
+ var se_GetECSServiceRecommendationsCommand = /* @__PURE__ */ __name(async (input, context) => {
1087
+ const headers = sharedHeaders("GetECSServiceRecommendations");
1088
+ let body;
1089
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1090
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1091
+ }, "se_GetECSServiceRecommendationsCommand");
1092
+ var se_GetEffectiveRecommendationPreferencesCommand = /* @__PURE__ */ __name(async (input, context) => {
1093
+ const headers = sharedHeaders("GetEffectiveRecommendationPreferences");
1094
+ let body;
1095
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1096
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1097
+ }, "se_GetEffectiveRecommendationPreferencesCommand");
1098
+ var se_GetEnrollmentStatusCommand = /* @__PURE__ */ __name(async (input, context) => {
1099
+ const headers = sharedHeaders("GetEnrollmentStatus");
1100
+ let body;
1101
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1102
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1103
+ }, "se_GetEnrollmentStatusCommand");
1104
+ var se_GetEnrollmentStatusesForOrganizationCommand = /* @__PURE__ */ __name(async (input, context) => {
1105
+ const headers = sharedHeaders("GetEnrollmentStatusesForOrganization");
1106
+ let body;
1107
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1108
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1109
+ }, "se_GetEnrollmentStatusesForOrganizationCommand");
1110
+ var se_GetLambdaFunctionRecommendationsCommand = /* @__PURE__ */ __name(async (input, context) => {
1111
+ const headers = sharedHeaders("GetLambdaFunctionRecommendations");
1112
+ let body;
1113
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1114
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1115
+ }, "se_GetLambdaFunctionRecommendationsCommand");
1116
+ var se_GetLicenseRecommendationsCommand = /* @__PURE__ */ __name(async (input, context) => {
1117
+ const headers = sharedHeaders("GetLicenseRecommendations");
1118
+ let body;
1119
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1120
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1121
+ }, "se_GetLicenseRecommendationsCommand");
1122
+ var se_GetRecommendationPreferencesCommand = /* @__PURE__ */ __name(async (input, context) => {
1123
+ const headers = sharedHeaders("GetRecommendationPreferences");
1124
+ let body;
1125
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1126
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1127
+ }, "se_GetRecommendationPreferencesCommand");
1128
+ var se_GetRecommendationSummariesCommand = /* @__PURE__ */ __name(async (input, context) => {
1129
+ const headers = sharedHeaders("GetRecommendationSummaries");
1130
+ let body;
1131
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1132
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1133
+ }, "se_GetRecommendationSummariesCommand");
1134
+ var se_PutRecommendationPreferencesCommand = /* @__PURE__ */ __name(async (input, context) => {
1135
+ const headers = sharedHeaders("PutRecommendationPreferences");
1136
+ let body;
1137
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1138
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1139
+ }, "se_PutRecommendationPreferencesCommand");
1140
+ var se_UpdateEnrollmentStatusCommand = /* @__PURE__ */ __name(async (input, context) => {
1141
+ const headers = sharedHeaders("UpdateEnrollmentStatus");
1142
+ let body;
1143
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1144
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1145
+ }, "se_UpdateEnrollmentStatusCommand");
1146
+ var de_DeleteRecommendationPreferencesCommand = /* @__PURE__ */ __name(async (output, context) => {
1147
+ if (output.statusCode >= 300) {
1148
+ return de_DeleteRecommendationPreferencesCommandError(output, context);
1149
+ }
1150
+ const data = await parseBody(output.body, context);
1151
+ let contents = {};
1152
+ contents = (0, import_smithy_client._json)(data);
1153
+ const response = {
1154
+ $metadata: deserializeMetadata(output),
1155
+ ...contents
1156
+ };
1157
+ return response;
1158
+ }, "de_DeleteRecommendationPreferencesCommand");
1159
+ var de_DeleteRecommendationPreferencesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1160
+ const parsedOutput = {
1161
+ ...output,
1162
+ body: await parseErrorBody(output.body, context)
1163
+ };
1164
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1165
+ switch (errorCode) {
1166
+ case "AccessDeniedException":
1167
+ case "com.amazonaws.computeoptimizer#AccessDeniedException":
1168
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1169
+ case "InternalServerException":
1170
+ case "com.amazonaws.computeoptimizer#InternalServerException":
1171
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1172
+ case "InvalidParameterValueException":
1173
+ case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
1174
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1175
+ case "MissingAuthenticationToken":
1176
+ case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
1177
+ throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
1178
+ case "OptInRequiredException":
1179
+ case "com.amazonaws.computeoptimizer#OptInRequiredException":
1180
+ throw await de_OptInRequiredExceptionRes(parsedOutput, context);
1181
+ case "ResourceNotFoundException":
1182
+ case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
1183
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1184
+ case "ServiceUnavailableException":
1185
+ case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
1186
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1187
+ case "ThrottlingException":
1188
+ case "com.amazonaws.computeoptimizer#ThrottlingException":
1189
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1190
+ default:
1191
+ const parsedBody = parsedOutput.body;
1192
+ return throwDefaultError({
1193
+ output,
1194
+ parsedBody,
1195
+ errorCode
1196
+ });
1197
+ }
1198
+ }, "de_DeleteRecommendationPreferencesCommandError");
1199
+ var de_DescribeRecommendationExportJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
1200
+ if (output.statusCode >= 300) {
1201
+ return de_DescribeRecommendationExportJobsCommandError(output, context);
1202
+ }
1203
+ const data = await parseBody(output.body, context);
1204
+ let contents = {};
1205
+ contents = de_DescribeRecommendationExportJobsResponse(data, context);
1206
+ const response = {
1207
+ $metadata: deserializeMetadata(output),
1208
+ ...contents
1209
+ };
1210
+ return response;
1211
+ }, "de_DescribeRecommendationExportJobsCommand");
1212
+ var de_DescribeRecommendationExportJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1213
+ const parsedOutput = {
1214
+ ...output,
1215
+ body: await parseErrorBody(output.body, context)
1216
+ };
1217
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1218
+ switch (errorCode) {
1219
+ case "AccessDeniedException":
1220
+ case "com.amazonaws.computeoptimizer#AccessDeniedException":
1221
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1222
+ case "InternalServerException":
1223
+ case "com.amazonaws.computeoptimizer#InternalServerException":
1224
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1225
+ case "InvalidParameterValueException":
1226
+ case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
1227
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1228
+ case "MissingAuthenticationToken":
1229
+ case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
1230
+ throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
1231
+ case "OptInRequiredException":
1232
+ case "com.amazonaws.computeoptimizer#OptInRequiredException":
1233
+ throw await de_OptInRequiredExceptionRes(parsedOutput, context);
1234
+ case "ResourceNotFoundException":
1235
+ case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
1236
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1237
+ case "ServiceUnavailableException":
1238
+ case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
1239
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1240
+ case "ThrottlingException":
1241
+ case "com.amazonaws.computeoptimizer#ThrottlingException":
1242
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1243
+ default:
1244
+ const parsedBody = parsedOutput.body;
1245
+ return throwDefaultError({
1246
+ output,
1247
+ parsedBody,
1248
+ errorCode
1249
+ });
1250
+ }
1251
+ }, "de_DescribeRecommendationExportJobsCommandError");
1252
+ var de_ExportAutoScalingGroupRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1253
+ if (output.statusCode >= 300) {
1254
+ return de_ExportAutoScalingGroupRecommendationsCommandError(output, context);
1255
+ }
1256
+ const data = await parseBody(output.body, context);
1257
+ let contents = {};
1258
+ contents = (0, import_smithy_client._json)(data);
1259
+ const response = {
1260
+ $metadata: deserializeMetadata(output),
1261
+ ...contents
1262
+ };
1263
+ return response;
1264
+ }, "de_ExportAutoScalingGroupRecommendationsCommand");
1265
+ var de_ExportAutoScalingGroupRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1266
+ const parsedOutput = {
1267
+ ...output,
1268
+ body: await parseErrorBody(output.body, context)
1269
+ };
1270
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1271
+ switch (errorCode) {
1272
+ case "AccessDeniedException":
1273
+ case "com.amazonaws.computeoptimizer#AccessDeniedException":
1274
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1275
+ case "InternalServerException":
1276
+ case "com.amazonaws.computeoptimizer#InternalServerException":
1277
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1278
+ case "InvalidParameterValueException":
1279
+ case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
1280
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1281
+ case "LimitExceededException":
1282
+ case "com.amazonaws.computeoptimizer#LimitExceededException":
1283
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1284
+ case "MissingAuthenticationToken":
1285
+ case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
1286
+ throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
1287
+ case "OptInRequiredException":
1288
+ case "com.amazonaws.computeoptimizer#OptInRequiredException":
1289
+ throw await de_OptInRequiredExceptionRes(parsedOutput, context);
1290
+ case "ServiceUnavailableException":
1291
+ case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
1292
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1293
+ case "ThrottlingException":
1294
+ case "com.amazonaws.computeoptimizer#ThrottlingException":
1295
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1296
+ default:
1297
+ const parsedBody = parsedOutput.body;
1298
+ return throwDefaultError({
1299
+ output,
1300
+ parsedBody,
1301
+ errorCode
1302
+ });
1303
+ }
1304
+ }, "de_ExportAutoScalingGroupRecommendationsCommandError");
1305
+ var de_ExportEBSVolumeRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1306
+ if (output.statusCode >= 300) {
1307
+ return de_ExportEBSVolumeRecommendationsCommandError(output, context);
1308
+ }
1309
+ const data = await parseBody(output.body, context);
1310
+ let contents = {};
1311
+ contents = (0, import_smithy_client._json)(data);
1312
+ const response = {
1313
+ $metadata: deserializeMetadata(output),
1314
+ ...contents
1315
+ };
1316
+ return response;
1317
+ }, "de_ExportEBSVolumeRecommendationsCommand");
1318
+ var de_ExportEBSVolumeRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1319
+ const parsedOutput = {
1320
+ ...output,
1321
+ body: await parseErrorBody(output.body, context)
1322
+ };
1323
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1324
+ switch (errorCode) {
1325
+ case "AccessDeniedException":
1326
+ case "com.amazonaws.computeoptimizer#AccessDeniedException":
1327
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1328
+ case "InternalServerException":
1329
+ case "com.amazonaws.computeoptimizer#InternalServerException":
1330
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1331
+ case "InvalidParameterValueException":
1332
+ case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
1333
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1334
+ case "LimitExceededException":
1335
+ case "com.amazonaws.computeoptimizer#LimitExceededException":
1336
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1337
+ case "MissingAuthenticationToken":
1338
+ case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
1339
+ throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
1340
+ case "OptInRequiredException":
1341
+ case "com.amazonaws.computeoptimizer#OptInRequiredException":
1342
+ throw await de_OptInRequiredExceptionRes(parsedOutput, context);
1343
+ case "ServiceUnavailableException":
1344
+ case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
1345
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1346
+ case "ThrottlingException":
1347
+ case "com.amazonaws.computeoptimizer#ThrottlingException":
1348
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1349
+ default:
1350
+ const parsedBody = parsedOutput.body;
1351
+ return throwDefaultError({
1352
+ output,
1353
+ parsedBody,
1354
+ errorCode
1355
+ });
1356
+ }
1357
+ }, "de_ExportEBSVolumeRecommendationsCommandError");
1358
+ var de_ExportEC2InstanceRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1359
+ if (output.statusCode >= 300) {
1360
+ return de_ExportEC2InstanceRecommendationsCommandError(output, context);
1361
+ }
1362
+ const data = await parseBody(output.body, context);
1363
+ let contents = {};
1364
+ contents = (0, import_smithy_client._json)(data);
1365
+ const response = {
1366
+ $metadata: deserializeMetadata(output),
1367
+ ...contents
1368
+ };
1369
+ return response;
1370
+ }, "de_ExportEC2InstanceRecommendationsCommand");
1371
+ var de_ExportEC2InstanceRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1372
+ const parsedOutput = {
1373
+ ...output,
1374
+ body: await parseErrorBody(output.body, context)
1375
+ };
1376
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1377
+ switch (errorCode) {
1378
+ case "AccessDeniedException":
1379
+ case "com.amazonaws.computeoptimizer#AccessDeniedException":
1380
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1381
+ case "InternalServerException":
1382
+ case "com.amazonaws.computeoptimizer#InternalServerException":
1383
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1384
+ case "InvalidParameterValueException":
1385
+ case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
1386
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1387
+ case "LimitExceededException":
1388
+ case "com.amazonaws.computeoptimizer#LimitExceededException":
1389
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1390
+ case "MissingAuthenticationToken":
1391
+ case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
1392
+ throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
1393
+ case "OptInRequiredException":
1394
+ case "com.amazonaws.computeoptimizer#OptInRequiredException":
1395
+ throw await de_OptInRequiredExceptionRes(parsedOutput, context);
1396
+ case "ServiceUnavailableException":
1397
+ case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
1398
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1399
+ case "ThrottlingException":
1400
+ case "com.amazonaws.computeoptimizer#ThrottlingException":
1401
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1402
+ default:
1403
+ const parsedBody = parsedOutput.body;
1404
+ return throwDefaultError({
1405
+ output,
1406
+ parsedBody,
1407
+ errorCode
1408
+ });
1409
+ }
1410
+ }, "de_ExportEC2InstanceRecommendationsCommandError");
1411
+ var de_ExportECSServiceRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1412
+ if (output.statusCode >= 300) {
1413
+ return de_ExportECSServiceRecommendationsCommandError(output, context);
1414
+ }
1415
+ const data = await parseBody(output.body, context);
1416
+ let contents = {};
1417
+ contents = (0, import_smithy_client._json)(data);
1418
+ const response = {
1419
+ $metadata: deserializeMetadata(output),
1420
+ ...contents
1421
+ };
1422
+ return response;
1423
+ }, "de_ExportECSServiceRecommendationsCommand");
1424
+ var de_ExportECSServiceRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1425
+ const parsedOutput = {
1426
+ ...output,
1427
+ body: await parseErrorBody(output.body, context)
1428
+ };
1429
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1430
+ switch (errorCode) {
1431
+ case "AccessDeniedException":
1432
+ case "com.amazonaws.computeoptimizer#AccessDeniedException":
1433
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1434
+ case "InternalServerException":
1435
+ case "com.amazonaws.computeoptimizer#InternalServerException":
1436
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1437
+ case "InvalidParameterValueException":
1438
+ case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
1439
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1440
+ case "LimitExceededException":
1441
+ case "com.amazonaws.computeoptimizer#LimitExceededException":
1442
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1443
+ case "MissingAuthenticationToken":
1444
+ case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
1445
+ throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
1446
+ case "OptInRequiredException":
1447
+ case "com.amazonaws.computeoptimizer#OptInRequiredException":
1448
+ throw await de_OptInRequiredExceptionRes(parsedOutput, context);
1449
+ case "ServiceUnavailableException":
1450
+ case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
1451
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1452
+ case "ThrottlingException":
1453
+ case "com.amazonaws.computeoptimizer#ThrottlingException":
1454
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1455
+ default:
1456
+ const parsedBody = parsedOutput.body;
1457
+ return throwDefaultError({
1458
+ output,
1459
+ parsedBody,
1460
+ errorCode
1461
+ });
1462
+ }
1463
+ }, "de_ExportECSServiceRecommendationsCommandError");
1464
+ var de_ExportLambdaFunctionRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1465
+ if (output.statusCode >= 300) {
1466
+ return de_ExportLambdaFunctionRecommendationsCommandError(output, context);
1467
+ }
1468
+ const data = await parseBody(output.body, context);
1469
+ let contents = {};
1470
+ contents = (0, import_smithy_client._json)(data);
1471
+ const response = {
1472
+ $metadata: deserializeMetadata(output),
1473
+ ...contents
1474
+ };
1475
+ return response;
1476
+ }, "de_ExportLambdaFunctionRecommendationsCommand");
1477
+ var de_ExportLambdaFunctionRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1478
+ const parsedOutput = {
1479
+ ...output,
1480
+ body: await parseErrorBody(output.body, context)
1481
+ };
1482
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1483
+ switch (errorCode) {
1484
+ case "AccessDeniedException":
1485
+ case "com.amazonaws.computeoptimizer#AccessDeniedException":
1486
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1487
+ case "InternalServerException":
1488
+ case "com.amazonaws.computeoptimizer#InternalServerException":
1489
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1490
+ case "InvalidParameterValueException":
1491
+ case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
1492
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1493
+ case "LimitExceededException":
1494
+ case "com.amazonaws.computeoptimizer#LimitExceededException":
1495
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1496
+ case "MissingAuthenticationToken":
1497
+ case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
1498
+ throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
1499
+ case "OptInRequiredException":
1500
+ case "com.amazonaws.computeoptimizer#OptInRequiredException":
1501
+ throw await de_OptInRequiredExceptionRes(parsedOutput, context);
1502
+ case "ServiceUnavailableException":
1503
+ case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
1504
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1505
+ case "ThrottlingException":
1506
+ case "com.amazonaws.computeoptimizer#ThrottlingException":
1507
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1508
+ default:
1509
+ const parsedBody = parsedOutput.body;
1510
+ return throwDefaultError({
1511
+ output,
1512
+ parsedBody,
1513
+ errorCode
1514
+ });
1515
+ }
1516
+ }, "de_ExportLambdaFunctionRecommendationsCommandError");
1517
+ var de_ExportLicenseRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1518
+ if (output.statusCode >= 300) {
1519
+ return de_ExportLicenseRecommendationsCommandError(output, context);
1520
+ }
1521
+ const data = await parseBody(output.body, context);
1522
+ let contents = {};
1523
+ contents = (0, import_smithy_client._json)(data);
1524
+ const response = {
1525
+ $metadata: deserializeMetadata(output),
1526
+ ...contents
1527
+ };
1528
+ return response;
1529
+ }, "de_ExportLicenseRecommendationsCommand");
1530
+ var de_ExportLicenseRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1531
+ const parsedOutput = {
1532
+ ...output,
1533
+ body: await parseErrorBody(output.body, context)
1534
+ };
1535
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1536
+ switch (errorCode) {
1537
+ case "AccessDeniedException":
1538
+ case "com.amazonaws.computeoptimizer#AccessDeniedException":
1539
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1540
+ case "InternalServerException":
1541
+ case "com.amazonaws.computeoptimizer#InternalServerException":
1542
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1543
+ case "InvalidParameterValueException":
1544
+ case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
1545
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1546
+ case "LimitExceededException":
1547
+ case "com.amazonaws.computeoptimizer#LimitExceededException":
1548
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1549
+ case "MissingAuthenticationToken":
1550
+ case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
1551
+ throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
1552
+ case "OptInRequiredException":
1553
+ case "com.amazonaws.computeoptimizer#OptInRequiredException":
1554
+ throw await de_OptInRequiredExceptionRes(parsedOutput, context);
1555
+ case "ServiceUnavailableException":
1556
+ case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
1557
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1558
+ case "ThrottlingException":
1559
+ case "com.amazonaws.computeoptimizer#ThrottlingException":
1560
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1561
+ default:
1562
+ const parsedBody = parsedOutput.body;
1563
+ return throwDefaultError({
1564
+ output,
1565
+ parsedBody,
1566
+ errorCode
1567
+ });
1568
+ }
1569
+ }, "de_ExportLicenseRecommendationsCommandError");
1570
+ var de_GetAutoScalingGroupRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1571
+ if (output.statusCode >= 300) {
1572
+ return de_GetAutoScalingGroupRecommendationsCommandError(output, context);
1573
+ }
1574
+ const data = await parseBody(output.body, context);
1575
+ let contents = {};
1576
+ contents = de_GetAutoScalingGroupRecommendationsResponse(data, context);
1577
+ const response = {
1578
+ $metadata: deserializeMetadata(output),
1579
+ ...contents
1580
+ };
1581
+ return response;
1582
+ }, "de_GetAutoScalingGroupRecommendationsCommand");
1583
+ var de_GetAutoScalingGroupRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1584
+ const parsedOutput = {
1585
+ ...output,
1586
+ body: await parseErrorBody(output.body, context)
1587
+ };
1588
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1589
+ switch (errorCode) {
1590
+ case "AccessDeniedException":
1591
+ case "com.amazonaws.computeoptimizer#AccessDeniedException":
1592
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1593
+ case "InternalServerException":
1594
+ case "com.amazonaws.computeoptimizer#InternalServerException":
1595
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1596
+ case "InvalidParameterValueException":
1597
+ case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
1598
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1599
+ case "MissingAuthenticationToken":
1600
+ case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
1601
+ throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
1602
+ case "OptInRequiredException":
1603
+ case "com.amazonaws.computeoptimizer#OptInRequiredException":
1604
+ throw await de_OptInRequiredExceptionRes(parsedOutput, context);
1605
+ case "ResourceNotFoundException":
1606
+ case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
1607
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1608
+ case "ServiceUnavailableException":
1609
+ case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
1610
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1611
+ case "ThrottlingException":
1612
+ case "com.amazonaws.computeoptimizer#ThrottlingException":
1613
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1614
+ default:
1615
+ const parsedBody = parsedOutput.body;
1616
+ return throwDefaultError({
1617
+ output,
1618
+ parsedBody,
1619
+ errorCode
1620
+ });
1621
+ }
1622
+ }, "de_GetAutoScalingGroupRecommendationsCommandError");
1623
+ var de_GetEBSVolumeRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1624
+ if (output.statusCode >= 300) {
1625
+ return de_GetEBSVolumeRecommendationsCommandError(output, context);
1626
+ }
1627
+ const data = await parseBody(output.body, context);
1628
+ let contents = {};
1629
+ contents = de_GetEBSVolumeRecommendationsResponse(data, context);
1630
+ const response = {
1631
+ $metadata: deserializeMetadata(output),
1632
+ ...contents
1633
+ };
1634
+ return response;
1635
+ }, "de_GetEBSVolumeRecommendationsCommand");
1636
+ var de_GetEBSVolumeRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1637
+ const parsedOutput = {
1638
+ ...output,
1639
+ body: await parseErrorBody(output.body, context)
1640
+ };
1641
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1642
+ switch (errorCode) {
1643
+ case "AccessDeniedException":
1644
+ case "com.amazonaws.computeoptimizer#AccessDeniedException":
1645
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1646
+ case "InternalServerException":
1647
+ case "com.amazonaws.computeoptimizer#InternalServerException":
1648
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1649
+ case "InvalidParameterValueException":
1650
+ case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
1651
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1652
+ case "MissingAuthenticationToken":
1653
+ case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
1654
+ throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
1655
+ case "OptInRequiredException":
1656
+ case "com.amazonaws.computeoptimizer#OptInRequiredException":
1657
+ throw await de_OptInRequiredExceptionRes(parsedOutput, context);
1658
+ case "ResourceNotFoundException":
1659
+ case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
1660
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1661
+ case "ServiceUnavailableException":
1662
+ case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
1663
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1664
+ case "ThrottlingException":
1665
+ case "com.amazonaws.computeoptimizer#ThrottlingException":
1666
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1667
+ default:
1668
+ const parsedBody = parsedOutput.body;
1669
+ return throwDefaultError({
1670
+ output,
1671
+ parsedBody,
1672
+ errorCode
1673
+ });
1674
+ }
1675
+ }, "de_GetEBSVolumeRecommendationsCommandError");
1676
+ var de_GetEC2InstanceRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1677
+ if (output.statusCode >= 300) {
1678
+ return de_GetEC2InstanceRecommendationsCommandError(output, context);
1679
+ }
1680
+ const data = await parseBody(output.body, context);
1681
+ let contents = {};
1682
+ contents = de_GetEC2InstanceRecommendationsResponse(data, context);
1683
+ const response = {
1684
+ $metadata: deserializeMetadata(output),
1685
+ ...contents
1686
+ };
1687
+ return response;
1688
+ }, "de_GetEC2InstanceRecommendationsCommand");
1689
+ var de_GetEC2InstanceRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1690
+ const parsedOutput = {
1691
+ ...output,
1692
+ body: await parseErrorBody(output.body, context)
1693
+ };
1694
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1695
+ switch (errorCode) {
1696
+ case "AccessDeniedException":
1697
+ case "com.amazonaws.computeoptimizer#AccessDeniedException":
1698
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1699
+ case "InternalServerException":
1700
+ case "com.amazonaws.computeoptimizer#InternalServerException":
1701
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1702
+ case "InvalidParameterValueException":
1703
+ case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
1704
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1705
+ case "MissingAuthenticationToken":
1706
+ case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
1707
+ throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
1708
+ case "OptInRequiredException":
1709
+ case "com.amazonaws.computeoptimizer#OptInRequiredException":
1710
+ throw await de_OptInRequiredExceptionRes(parsedOutput, context);
1711
+ case "ResourceNotFoundException":
1712
+ case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
1713
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1714
+ case "ServiceUnavailableException":
1715
+ case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
1716
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1717
+ case "ThrottlingException":
1718
+ case "com.amazonaws.computeoptimizer#ThrottlingException":
1719
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1720
+ default:
1721
+ const parsedBody = parsedOutput.body;
1722
+ return throwDefaultError({
1723
+ output,
1724
+ parsedBody,
1725
+ errorCode
1726
+ });
1727
+ }
1728
+ }, "de_GetEC2InstanceRecommendationsCommandError");
1729
+ var de_GetEC2RecommendationProjectedMetricsCommand = /* @__PURE__ */ __name(async (output, context) => {
1730
+ if (output.statusCode >= 300) {
1731
+ return de_GetEC2RecommendationProjectedMetricsCommandError(output, context);
1732
+ }
1733
+ const data = await parseBody(output.body, context);
1734
+ let contents = {};
1735
+ contents = de_GetEC2RecommendationProjectedMetricsResponse(data, context);
1736
+ const response = {
1737
+ $metadata: deserializeMetadata(output),
1738
+ ...contents
1739
+ };
1740
+ return response;
1741
+ }, "de_GetEC2RecommendationProjectedMetricsCommand");
1742
+ var de_GetEC2RecommendationProjectedMetricsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1743
+ const parsedOutput = {
1744
+ ...output,
1745
+ body: await parseErrorBody(output.body, context)
1746
+ };
1747
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1748
+ switch (errorCode) {
1749
+ case "AccessDeniedException":
1750
+ case "com.amazonaws.computeoptimizer#AccessDeniedException":
1751
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1752
+ case "InternalServerException":
1753
+ case "com.amazonaws.computeoptimizer#InternalServerException":
1754
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1755
+ case "InvalidParameterValueException":
1756
+ case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
1757
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1758
+ case "MissingAuthenticationToken":
1759
+ case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
1760
+ throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
1761
+ case "OptInRequiredException":
1762
+ case "com.amazonaws.computeoptimizer#OptInRequiredException":
1763
+ throw await de_OptInRequiredExceptionRes(parsedOutput, context);
1764
+ case "ResourceNotFoundException":
1765
+ case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
1766
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1767
+ case "ServiceUnavailableException":
1768
+ case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
1769
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1770
+ case "ThrottlingException":
1771
+ case "com.amazonaws.computeoptimizer#ThrottlingException":
1772
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1773
+ default:
1774
+ const parsedBody = parsedOutput.body;
1775
+ return throwDefaultError({
1776
+ output,
1777
+ parsedBody,
1778
+ errorCode
1779
+ });
1780
+ }
1781
+ }, "de_GetEC2RecommendationProjectedMetricsCommandError");
1782
+ var de_GetECSServiceRecommendationProjectedMetricsCommand = /* @__PURE__ */ __name(async (output, context) => {
1783
+ if (output.statusCode >= 300) {
1784
+ return de_GetECSServiceRecommendationProjectedMetricsCommandError(output, context);
1785
+ }
1786
+ const data = await parseBody(output.body, context);
1787
+ let contents = {};
1788
+ contents = de_GetECSServiceRecommendationProjectedMetricsResponse(data, context);
1789
+ const response = {
1790
+ $metadata: deserializeMetadata(output),
1791
+ ...contents
1792
+ };
1793
+ return response;
1794
+ }, "de_GetECSServiceRecommendationProjectedMetricsCommand");
1795
+ var de_GetECSServiceRecommendationProjectedMetricsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1796
+ const parsedOutput = {
1797
+ ...output,
1798
+ body: await parseErrorBody(output.body, context)
1799
+ };
1800
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1801
+ switch (errorCode) {
1802
+ case "AccessDeniedException":
1803
+ case "com.amazonaws.computeoptimizer#AccessDeniedException":
1804
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1805
+ case "InternalServerException":
1806
+ case "com.amazonaws.computeoptimizer#InternalServerException":
1807
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1808
+ case "InvalidParameterValueException":
1809
+ case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
1810
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1811
+ case "MissingAuthenticationToken":
1812
+ case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
1813
+ throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
1814
+ case "OptInRequiredException":
1815
+ case "com.amazonaws.computeoptimizer#OptInRequiredException":
1816
+ throw await de_OptInRequiredExceptionRes(parsedOutput, context);
1817
+ case "ResourceNotFoundException":
1818
+ case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
1819
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1820
+ case "ServiceUnavailableException":
1821
+ case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
1822
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1823
+ case "ThrottlingException":
1824
+ case "com.amazonaws.computeoptimizer#ThrottlingException":
1825
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1826
+ default:
1827
+ const parsedBody = parsedOutput.body;
1828
+ return throwDefaultError({
1829
+ output,
1830
+ parsedBody,
1831
+ errorCode
1832
+ });
1833
+ }
1834
+ }, "de_GetECSServiceRecommendationProjectedMetricsCommandError");
1835
+ var de_GetECSServiceRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1836
+ if (output.statusCode >= 300) {
1837
+ return de_GetECSServiceRecommendationsCommandError(output, context);
1838
+ }
1839
+ const data = await parseBody(output.body, context);
1840
+ let contents = {};
1841
+ contents = de_GetECSServiceRecommendationsResponse(data, context);
1842
+ const response = {
1843
+ $metadata: deserializeMetadata(output),
1844
+ ...contents
1845
+ };
1846
+ return response;
1847
+ }, "de_GetECSServiceRecommendationsCommand");
1848
+ var de_GetECSServiceRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1849
+ const parsedOutput = {
1850
+ ...output,
1851
+ body: await parseErrorBody(output.body, context)
1852
+ };
1853
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1854
+ switch (errorCode) {
1855
+ case "AccessDeniedException":
1856
+ case "com.amazonaws.computeoptimizer#AccessDeniedException":
1857
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1858
+ case "InternalServerException":
1859
+ case "com.amazonaws.computeoptimizer#InternalServerException":
1860
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1861
+ case "InvalidParameterValueException":
1862
+ case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
1863
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1864
+ case "MissingAuthenticationToken":
1865
+ case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
1866
+ throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
1867
+ case "OptInRequiredException":
1868
+ case "com.amazonaws.computeoptimizer#OptInRequiredException":
1869
+ throw await de_OptInRequiredExceptionRes(parsedOutput, context);
1870
+ case "ResourceNotFoundException":
1871
+ case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
1872
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1873
+ case "ServiceUnavailableException":
1874
+ case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
1875
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1876
+ case "ThrottlingException":
1877
+ case "com.amazonaws.computeoptimizer#ThrottlingException":
1878
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1879
+ default:
1880
+ const parsedBody = parsedOutput.body;
1881
+ return throwDefaultError({
1882
+ output,
1883
+ parsedBody,
1884
+ errorCode
1885
+ });
1886
+ }
1887
+ }, "de_GetECSServiceRecommendationsCommandError");
1888
+ var de_GetEffectiveRecommendationPreferencesCommand = /* @__PURE__ */ __name(async (output, context) => {
1889
+ if (output.statusCode >= 300) {
1890
+ return de_GetEffectiveRecommendationPreferencesCommandError(output, context);
1891
+ }
1892
+ const data = await parseBody(output.body, context);
1893
+ let contents = {};
1894
+ contents = (0, import_smithy_client._json)(data);
1895
+ const response = {
1896
+ $metadata: deserializeMetadata(output),
1897
+ ...contents
1898
+ };
1899
+ return response;
1900
+ }, "de_GetEffectiveRecommendationPreferencesCommand");
1901
+ var de_GetEffectiveRecommendationPreferencesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1902
+ const parsedOutput = {
1903
+ ...output,
1904
+ body: await parseErrorBody(output.body, context)
1905
+ };
1906
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1907
+ switch (errorCode) {
1908
+ case "AccessDeniedException":
1909
+ case "com.amazonaws.computeoptimizer#AccessDeniedException":
1910
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1911
+ case "InternalServerException":
1912
+ case "com.amazonaws.computeoptimizer#InternalServerException":
1913
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1914
+ case "InvalidParameterValueException":
1915
+ case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
1916
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1917
+ case "MissingAuthenticationToken":
1918
+ case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
1919
+ throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
1920
+ case "OptInRequiredException":
1921
+ case "com.amazonaws.computeoptimizer#OptInRequiredException":
1922
+ throw await de_OptInRequiredExceptionRes(parsedOutput, context);
1923
+ case "ResourceNotFoundException":
1924
+ case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
1925
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1926
+ case "ServiceUnavailableException":
1927
+ case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
1928
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1929
+ case "ThrottlingException":
1930
+ case "com.amazonaws.computeoptimizer#ThrottlingException":
1931
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1932
+ default:
1933
+ const parsedBody = parsedOutput.body;
1934
+ return throwDefaultError({
1935
+ output,
1936
+ parsedBody,
1937
+ errorCode
1938
+ });
1939
+ }
1940
+ }, "de_GetEffectiveRecommendationPreferencesCommandError");
1941
+ var de_GetEnrollmentStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
1942
+ if (output.statusCode >= 300) {
1943
+ return de_GetEnrollmentStatusCommandError(output, context);
1944
+ }
1945
+ const data = await parseBody(output.body, context);
1946
+ let contents = {};
1947
+ contents = de_GetEnrollmentStatusResponse(data, context);
1948
+ const response = {
1949
+ $metadata: deserializeMetadata(output),
1950
+ ...contents
1951
+ };
1952
+ return response;
1953
+ }, "de_GetEnrollmentStatusCommand");
1954
+ var de_GetEnrollmentStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
1955
+ const parsedOutput = {
1956
+ ...output,
1957
+ body: await parseErrorBody(output.body, context)
1958
+ };
1959
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1960
+ switch (errorCode) {
1961
+ case "AccessDeniedException":
1962
+ case "com.amazonaws.computeoptimizer#AccessDeniedException":
1963
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1964
+ case "InternalServerException":
1965
+ case "com.amazonaws.computeoptimizer#InternalServerException":
1966
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1967
+ case "InvalidParameterValueException":
1968
+ case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
1969
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1970
+ case "MissingAuthenticationToken":
1971
+ case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
1972
+ throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
1973
+ case "ServiceUnavailableException":
1974
+ case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
1975
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1976
+ case "ThrottlingException":
1977
+ case "com.amazonaws.computeoptimizer#ThrottlingException":
1978
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1979
+ default:
1980
+ const parsedBody = parsedOutput.body;
1981
+ return throwDefaultError({
1982
+ output,
1983
+ parsedBody,
1984
+ errorCode
1985
+ });
1986
+ }
1987
+ }, "de_GetEnrollmentStatusCommandError");
1988
+ var de_GetEnrollmentStatusesForOrganizationCommand = /* @__PURE__ */ __name(async (output, context) => {
1989
+ if (output.statusCode >= 300) {
1990
+ return de_GetEnrollmentStatusesForOrganizationCommandError(output, context);
1991
+ }
1992
+ const data = await parseBody(output.body, context);
1993
+ let contents = {};
1994
+ contents = de_GetEnrollmentStatusesForOrganizationResponse(data, context);
1995
+ const response = {
1996
+ $metadata: deserializeMetadata(output),
1997
+ ...contents
1998
+ };
1999
+ return response;
2000
+ }, "de_GetEnrollmentStatusesForOrganizationCommand");
2001
+ var de_GetEnrollmentStatusesForOrganizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
2002
+ const parsedOutput = {
2003
+ ...output,
2004
+ body: await parseErrorBody(output.body, context)
2005
+ };
2006
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2007
+ switch (errorCode) {
2008
+ case "AccessDeniedException":
2009
+ case "com.amazonaws.computeoptimizer#AccessDeniedException":
2010
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2011
+ case "InternalServerException":
2012
+ case "com.amazonaws.computeoptimizer#InternalServerException":
2013
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2014
+ case "InvalidParameterValueException":
2015
+ case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
2016
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2017
+ case "MissingAuthenticationToken":
2018
+ case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
2019
+ throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
2020
+ case "ServiceUnavailableException":
2021
+ case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
2022
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2023
+ case "ThrottlingException":
2024
+ case "com.amazonaws.computeoptimizer#ThrottlingException":
2025
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2026
+ default:
2027
+ const parsedBody = parsedOutput.body;
2028
+ return throwDefaultError({
2029
+ output,
2030
+ parsedBody,
2031
+ errorCode
2032
+ });
2033
+ }
2034
+ }, "de_GetEnrollmentStatusesForOrganizationCommandError");
2035
+ var de_GetLambdaFunctionRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
2036
+ if (output.statusCode >= 300) {
2037
+ return de_GetLambdaFunctionRecommendationsCommandError(output, context);
2038
+ }
2039
+ const data = await parseBody(output.body, context);
2040
+ let contents = {};
2041
+ contents = de_GetLambdaFunctionRecommendationsResponse(data, context);
2042
+ const response = {
2043
+ $metadata: deserializeMetadata(output),
2044
+ ...contents
2045
+ };
2046
+ return response;
2047
+ }, "de_GetLambdaFunctionRecommendationsCommand");
2048
+ var de_GetLambdaFunctionRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2049
+ const parsedOutput = {
2050
+ ...output,
2051
+ body: await parseErrorBody(output.body, context)
2052
+ };
2053
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2054
+ switch (errorCode) {
2055
+ case "AccessDeniedException":
2056
+ case "com.amazonaws.computeoptimizer#AccessDeniedException":
2057
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2058
+ case "InternalServerException":
2059
+ case "com.amazonaws.computeoptimizer#InternalServerException":
2060
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2061
+ case "InvalidParameterValueException":
2062
+ case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
2063
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2064
+ case "LimitExceededException":
2065
+ case "com.amazonaws.computeoptimizer#LimitExceededException":
2066
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
2067
+ case "MissingAuthenticationToken":
2068
+ case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
2069
+ throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
2070
+ case "OptInRequiredException":
2071
+ case "com.amazonaws.computeoptimizer#OptInRequiredException":
2072
+ throw await de_OptInRequiredExceptionRes(parsedOutput, context);
2073
+ case "ServiceUnavailableException":
2074
+ case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
2075
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2076
+ case "ThrottlingException":
2077
+ case "com.amazonaws.computeoptimizer#ThrottlingException":
2078
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2079
+ default:
2080
+ const parsedBody = parsedOutput.body;
2081
+ return throwDefaultError({
2082
+ output,
2083
+ parsedBody,
2084
+ errorCode
2085
+ });
2086
+ }
2087
+ }, "de_GetLambdaFunctionRecommendationsCommandError");
2088
+ var de_GetLicenseRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
2089
+ if (output.statusCode >= 300) {
2090
+ return de_GetLicenseRecommendationsCommandError(output, context);
2091
+ }
2092
+ const data = await parseBody(output.body, context);
2093
+ let contents = {};
2094
+ contents = de_GetLicenseRecommendationsResponse(data, context);
2095
+ const response = {
2096
+ $metadata: deserializeMetadata(output),
2097
+ ...contents
2098
+ };
2099
+ return response;
2100
+ }, "de_GetLicenseRecommendationsCommand");
2101
+ var de_GetLicenseRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2102
+ const parsedOutput = {
2103
+ ...output,
2104
+ body: await parseErrorBody(output.body, context)
2105
+ };
2106
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2107
+ switch (errorCode) {
2108
+ case "AccessDeniedException":
2109
+ case "com.amazonaws.computeoptimizer#AccessDeniedException":
2110
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2111
+ case "InternalServerException":
2112
+ case "com.amazonaws.computeoptimizer#InternalServerException":
2113
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2114
+ case "InvalidParameterValueException":
2115
+ case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
2116
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2117
+ case "MissingAuthenticationToken":
2118
+ case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
2119
+ throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
2120
+ case "OptInRequiredException":
2121
+ case "com.amazonaws.computeoptimizer#OptInRequiredException":
2122
+ throw await de_OptInRequiredExceptionRes(parsedOutput, context);
2123
+ case "ResourceNotFoundException":
2124
+ case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
2125
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2126
+ case "ServiceUnavailableException":
2127
+ case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
2128
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2129
+ case "ThrottlingException":
2130
+ case "com.amazonaws.computeoptimizer#ThrottlingException":
2131
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2132
+ default:
2133
+ const parsedBody = parsedOutput.body;
2134
+ return throwDefaultError({
2135
+ output,
2136
+ parsedBody,
2137
+ errorCode
2138
+ });
2139
+ }
2140
+ }, "de_GetLicenseRecommendationsCommandError");
2141
+ var de_GetRecommendationPreferencesCommand = /* @__PURE__ */ __name(async (output, context) => {
2142
+ if (output.statusCode >= 300) {
2143
+ return de_GetRecommendationPreferencesCommandError(output, context);
2144
+ }
2145
+ const data = await parseBody(output.body, context);
2146
+ let contents = {};
2147
+ contents = (0, import_smithy_client._json)(data);
2148
+ const response = {
2149
+ $metadata: deserializeMetadata(output),
2150
+ ...contents
2151
+ };
2152
+ return response;
2153
+ }, "de_GetRecommendationPreferencesCommand");
2154
+ var de_GetRecommendationPreferencesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2155
+ const parsedOutput = {
2156
+ ...output,
2157
+ body: await parseErrorBody(output.body, context)
2158
+ };
2159
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2160
+ switch (errorCode) {
2161
+ case "AccessDeniedException":
2162
+ case "com.amazonaws.computeoptimizer#AccessDeniedException":
2163
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2164
+ case "InternalServerException":
2165
+ case "com.amazonaws.computeoptimizer#InternalServerException":
2166
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2167
+ case "InvalidParameterValueException":
2168
+ case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
2169
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2170
+ case "MissingAuthenticationToken":
2171
+ case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
2172
+ throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
2173
+ case "OptInRequiredException":
2174
+ case "com.amazonaws.computeoptimizer#OptInRequiredException":
2175
+ throw await de_OptInRequiredExceptionRes(parsedOutput, context);
2176
+ case "ResourceNotFoundException":
2177
+ case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
2178
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2179
+ case "ServiceUnavailableException":
2180
+ case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
2181
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2182
+ case "ThrottlingException":
2183
+ case "com.amazonaws.computeoptimizer#ThrottlingException":
2184
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2185
+ default:
2186
+ const parsedBody = parsedOutput.body;
2187
+ return throwDefaultError({
2188
+ output,
2189
+ parsedBody,
2190
+ errorCode
2191
+ });
2192
+ }
2193
+ }, "de_GetRecommendationPreferencesCommandError");
2194
+ var de_GetRecommendationSummariesCommand = /* @__PURE__ */ __name(async (output, context) => {
2195
+ if (output.statusCode >= 300) {
2196
+ return de_GetRecommendationSummariesCommandError(output, context);
2197
+ }
2198
+ const data = await parseBody(output.body, context);
2199
+ let contents = {};
2200
+ contents = de_GetRecommendationSummariesResponse(data, context);
2201
+ const response = {
2202
+ $metadata: deserializeMetadata(output),
2203
+ ...contents
2204
+ };
2205
+ return response;
2206
+ }, "de_GetRecommendationSummariesCommand");
2207
+ var de_GetRecommendationSummariesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2208
+ const parsedOutput = {
2209
+ ...output,
2210
+ body: await parseErrorBody(output.body, context)
2211
+ };
2212
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2213
+ switch (errorCode) {
2214
+ case "AccessDeniedException":
2215
+ case "com.amazonaws.computeoptimizer#AccessDeniedException":
2216
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2217
+ case "InternalServerException":
2218
+ case "com.amazonaws.computeoptimizer#InternalServerException":
2219
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2220
+ case "InvalidParameterValueException":
2221
+ case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
2222
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2223
+ case "MissingAuthenticationToken":
2224
+ case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
2225
+ throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
2226
+ case "OptInRequiredException":
2227
+ case "com.amazonaws.computeoptimizer#OptInRequiredException":
2228
+ throw await de_OptInRequiredExceptionRes(parsedOutput, context);
2229
+ case "ServiceUnavailableException":
2230
+ case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
2231
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2232
+ case "ThrottlingException":
2233
+ case "com.amazonaws.computeoptimizer#ThrottlingException":
2234
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2235
+ default:
2236
+ const parsedBody = parsedOutput.body;
2237
+ return throwDefaultError({
2238
+ output,
2239
+ parsedBody,
2240
+ errorCode
2241
+ });
2242
+ }
2243
+ }, "de_GetRecommendationSummariesCommandError");
2244
+ var de_PutRecommendationPreferencesCommand = /* @__PURE__ */ __name(async (output, context) => {
2245
+ if (output.statusCode >= 300) {
2246
+ return de_PutRecommendationPreferencesCommandError(output, context);
2247
+ }
2248
+ const data = await parseBody(output.body, context);
2249
+ let contents = {};
2250
+ contents = (0, import_smithy_client._json)(data);
2251
+ const response = {
2252
+ $metadata: deserializeMetadata(output),
2253
+ ...contents
2254
+ };
2255
+ return response;
2256
+ }, "de_PutRecommendationPreferencesCommand");
2257
+ var de_PutRecommendationPreferencesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2258
+ const parsedOutput = {
2259
+ ...output,
2260
+ body: await parseErrorBody(output.body, context)
2261
+ };
2262
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2263
+ switch (errorCode) {
2264
+ case "AccessDeniedException":
2265
+ case "com.amazonaws.computeoptimizer#AccessDeniedException":
2266
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2267
+ case "InternalServerException":
2268
+ case "com.amazonaws.computeoptimizer#InternalServerException":
2269
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2270
+ case "InvalidParameterValueException":
2271
+ case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
2272
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2273
+ case "MissingAuthenticationToken":
2274
+ case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
2275
+ throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
2276
+ case "OptInRequiredException":
2277
+ case "com.amazonaws.computeoptimizer#OptInRequiredException":
2278
+ throw await de_OptInRequiredExceptionRes(parsedOutput, context);
2279
+ case "ResourceNotFoundException":
2280
+ case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
2281
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2282
+ case "ServiceUnavailableException":
2283
+ case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
2284
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2285
+ case "ThrottlingException":
2286
+ case "com.amazonaws.computeoptimizer#ThrottlingException":
2287
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2288
+ default:
2289
+ const parsedBody = parsedOutput.body;
2290
+ return throwDefaultError({
2291
+ output,
2292
+ parsedBody,
2293
+ errorCode
2294
+ });
2295
+ }
2296
+ }, "de_PutRecommendationPreferencesCommandError");
2297
+ var de_UpdateEnrollmentStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
2298
+ if (output.statusCode >= 300) {
2299
+ return de_UpdateEnrollmentStatusCommandError(output, context);
2300
+ }
2301
+ const data = await parseBody(output.body, context);
2302
+ let contents = {};
2303
+ contents = (0, import_smithy_client._json)(data);
2304
+ const response = {
2305
+ $metadata: deserializeMetadata(output),
2306
+ ...contents
2307
+ };
2308
+ return response;
2309
+ }, "de_UpdateEnrollmentStatusCommand");
2310
+ var de_UpdateEnrollmentStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
2311
+ const parsedOutput = {
2312
+ ...output,
2313
+ body: await parseErrorBody(output.body, context)
2314
+ };
2315
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2316
+ switch (errorCode) {
2317
+ case "AccessDeniedException":
2318
+ case "com.amazonaws.computeoptimizer#AccessDeniedException":
2319
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2320
+ case "InternalServerException":
2321
+ case "com.amazonaws.computeoptimizer#InternalServerException":
2322
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2323
+ case "InvalidParameterValueException":
2324
+ case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
2325
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2326
+ case "MissingAuthenticationToken":
2327
+ case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
2328
+ throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
2329
+ case "ServiceUnavailableException":
2330
+ case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
2331
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2332
+ case "ThrottlingException":
2333
+ case "com.amazonaws.computeoptimizer#ThrottlingException":
2334
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2335
+ default:
2336
+ const parsedBody = parsedOutput.body;
2337
+ return throwDefaultError({
2338
+ output,
2339
+ parsedBody,
2340
+ errorCode
2341
+ });
2342
+ }
2343
+ }, "de_UpdateEnrollmentStatusCommandError");
2344
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2345
+ const body = parsedOutput.body;
2346
+ const deserialized = (0, import_smithy_client._json)(body);
2347
+ const exception = new AccessDeniedException({
2348
+ $metadata: deserializeMetadata(parsedOutput),
2349
+ ...deserialized
2350
+ });
2351
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2352
+ }, "de_AccessDeniedExceptionRes");
2353
+ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2354
+ const body = parsedOutput.body;
2355
+ const deserialized = (0, import_smithy_client._json)(body);
2356
+ const exception = new InternalServerException({
2357
+ $metadata: deserializeMetadata(parsedOutput),
2358
+ ...deserialized
2359
+ });
2360
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2361
+ }, "de_InternalServerExceptionRes");
2362
+ var de_InvalidParameterValueExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2363
+ const body = parsedOutput.body;
2364
+ const deserialized = (0, import_smithy_client._json)(body);
2365
+ const exception = new InvalidParameterValueException({
2366
+ $metadata: deserializeMetadata(parsedOutput),
2367
+ ...deserialized
2368
+ });
2369
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2370
+ }, "de_InvalidParameterValueExceptionRes");
2371
+ var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2372
+ const body = parsedOutput.body;
2373
+ const deserialized = (0, import_smithy_client._json)(body);
2374
+ const exception = new LimitExceededException({
2375
+ $metadata: deserializeMetadata(parsedOutput),
2376
+ ...deserialized
2377
+ });
2378
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2379
+ }, "de_LimitExceededExceptionRes");
2380
+ var de_MissingAuthenticationTokenRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2381
+ const body = parsedOutput.body;
2382
+ const deserialized = (0, import_smithy_client._json)(body);
2383
+ const exception = new MissingAuthenticationToken({
2384
+ $metadata: deserializeMetadata(parsedOutput),
2385
+ ...deserialized
2386
+ });
2387
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2388
+ }, "de_MissingAuthenticationTokenRes");
2389
+ var de_OptInRequiredExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2390
+ const body = parsedOutput.body;
2391
+ const deserialized = (0, import_smithy_client._json)(body);
2392
+ const exception = new OptInRequiredException({
2393
+ $metadata: deserializeMetadata(parsedOutput),
2394
+ ...deserialized
2395
+ });
2396
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2397
+ }, "de_OptInRequiredExceptionRes");
2398
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2399
+ const body = parsedOutput.body;
2400
+ const deserialized = (0, import_smithy_client._json)(body);
2401
+ const exception = new ResourceNotFoundException({
2402
+ $metadata: deserializeMetadata(parsedOutput),
2403
+ ...deserialized
2404
+ });
2405
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2406
+ }, "de_ResourceNotFoundExceptionRes");
2407
+ var de_ServiceUnavailableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2408
+ const body = parsedOutput.body;
2409
+ const deserialized = (0, import_smithy_client._json)(body);
2410
+ const exception = new ServiceUnavailableException({
2411
+ $metadata: deserializeMetadata(parsedOutput),
2412
+ ...deserialized
2413
+ });
2414
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2415
+ }, "de_ServiceUnavailableExceptionRes");
2416
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2417
+ const body = parsedOutput.body;
2418
+ const deserialized = (0, import_smithy_client._json)(body);
2419
+ const exception = new ThrottlingException({
2420
+ $metadata: deserializeMetadata(parsedOutput),
2421
+ ...deserialized
2422
+ });
2423
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2424
+ }, "de_ThrottlingExceptionRes");
2425
+ var se_GetEC2RecommendationProjectedMetricsRequest = /* @__PURE__ */ __name((input, context) => {
2426
+ return (0, import_smithy_client.take)(input, {
2427
+ endTime: (_) => Math.round(_.getTime() / 1e3),
2428
+ instanceArn: [],
2429
+ period: [],
2430
+ recommendationPreferences: import_smithy_client._json,
2431
+ startTime: (_) => Math.round(_.getTime() / 1e3),
2432
+ stat: []
2433
+ });
2434
+ }, "se_GetEC2RecommendationProjectedMetricsRequest");
2435
+ var se_GetECSServiceRecommendationProjectedMetricsRequest = /* @__PURE__ */ __name((input, context) => {
2436
+ return (0, import_smithy_client.take)(input, {
2437
+ endTime: (_) => Math.round(_.getTime() / 1e3),
2438
+ period: [],
2439
+ serviceArn: [],
2440
+ startTime: (_) => Math.round(_.getTime() / 1e3),
2441
+ stat: []
2442
+ });
2443
+ }, "se_GetECSServiceRecommendationProjectedMetricsRequest");
2444
+ var de_AccountEnrollmentStatus = /* @__PURE__ */ __name((output, context) => {
2445
+ return (0, import_smithy_client.take)(output, {
2446
+ accountId: import_smithy_client.expectString,
2447
+ lastUpdatedTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2448
+ status: import_smithy_client.expectString,
2449
+ statusReason: import_smithy_client.expectString
2450
+ });
2451
+ }, "de_AccountEnrollmentStatus");
2452
+ var de_AccountEnrollmentStatuses = /* @__PURE__ */ __name((output, context) => {
2453
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2454
+ return de_AccountEnrollmentStatus(entry, context);
2455
+ });
2456
+ return retVal;
2457
+ }, "de_AccountEnrollmentStatuses");
2458
+ var de_AutoScalingGroupEstimatedMonthlySavings = /* @__PURE__ */ __name((output, context) => {
2459
+ return (0, import_smithy_client.take)(output, {
2460
+ currency: import_smithy_client.expectString,
2461
+ value: import_smithy_client.limitedParseDouble
2462
+ });
2463
+ }, "de_AutoScalingGroupEstimatedMonthlySavings");
2464
+ var de_AutoScalingGroupRecommendation = /* @__PURE__ */ __name((output, context) => {
2465
+ return (0, import_smithy_client.take)(output, {
2466
+ accountId: import_smithy_client.expectString,
2467
+ autoScalingGroupArn: import_smithy_client.expectString,
2468
+ autoScalingGroupName: import_smithy_client.expectString,
2469
+ currentConfiguration: import_smithy_client._json,
2470
+ currentInstanceGpuInfo: import_smithy_client._json,
2471
+ currentPerformanceRisk: import_smithy_client.expectString,
2472
+ effectiveRecommendationPreferences: import_smithy_client._json,
2473
+ finding: import_smithy_client.expectString,
2474
+ inferredWorkloadTypes: import_smithy_client._json,
2475
+ lastRefreshTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2476
+ lookBackPeriodInDays: import_smithy_client.limitedParseDouble,
2477
+ recommendationOptions: (_) => de_AutoScalingGroupRecommendationOptions(_, context),
2478
+ utilizationMetrics: (_) => de_UtilizationMetrics(_, context)
2479
+ });
2480
+ }, "de_AutoScalingGroupRecommendation");
2481
+ var de_AutoScalingGroupRecommendationOption = /* @__PURE__ */ __name((output, context) => {
2482
+ return (0, import_smithy_client.take)(output, {
2483
+ configuration: import_smithy_client._json,
2484
+ instanceGpuInfo: import_smithy_client._json,
2485
+ migrationEffort: import_smithy_client.expectString,
2486
+ performanceRisk: import_smithy_client.limitedParseDouble,
2487
+ projectedUtilizationMetrics: (_) => de_ProjectedUtilizationMetrics(_, context),
2488
+ rank: import_smithy_client.expectInt32,
2489
+ savingsOpportunity: (_) => de_SavingsOpportunity(_, context),
2490
+ savingsOpportunityAfterDiscounts: (_) => de_AutoScalingGroupSavingsOpportunityAfterDiscounts(_, context)
2491
+ });
2492
+ }, "de_AutoScalingGroupRecommendationOption");
2493
+ var de_AutoScalingGroupRecommendationOptions = /* @__PURE__ */ __name((output, context) => {
2494
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2495
+ return de_AutoScalingGroupRecommendationOption(entry, context);
2496
+ });
2497
+ return retVal;
2498
+ }, "de_AutoScalingGroupRecommendationOptions");
2499
+ var de_AutoScalingGroupRecommendations = /* @__PURE__ */ __name((output, context) => {
2500
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2501
+ return de_AutoScalingGroupRecommendation(entry, context);
2502
+ });
2503
+ return retVal;
2504
+ }, "de_AutoScalingGroupRecommendations");
2505
+ var de_AutoScalingGroupSavingsOpportunityAfterDiscounts = /* @__PURE__ */ __name((output, context) => {
2506
+ return (0, import_smithy_client.take)(output, {
2507
+ estimatedMonthlySavings: (_) => de_AutoScalingGroupEstimatedMonthlySavings(_, context),
2508
+ savingsOpportunityPercentage: import_smithy_client.limitedParseDouble
2509
+ });
2510
+ }, "de_AutoScalingGroupSavingsOpportunityAfterDiscounts");
2511
+ var de_DescribeRecommendationExportJobsResponse = /* @__PURE__ */ __name((output, context) => {
2512
+ return (0, import_smithy_client.take)(output, {
2513
+ nextToken: import_smithy_client.expectString,
2514
+ recommendationExportJobs: (_) => de_RecommendationExportJobs(_, context)
2515
+ });
2516
+ }, "de_DescribeRecommendationExportJobsResponse");
2517
+ var de_EBSEstimatedMonthlySavings = /* @__PURE__ */ __name((output, context) => {
2518
+ return (0, import_smithy_client.take)(output, {
2519
+ currency: import_smithy_client.expectString,
2520
+ value: import_smithy_client.limitedParseDouble
2521
+ });
2522
+ }, "de_EBSEstimatedMonthlySavings");
2523
+ var de_EBSSavingsOpportunityAfterDiscounts = /* @__PURE__ */ __name((output, context) => {
2524
+ return (0, import_smithy_client.take)(output, {
2525
+ estimatedMonthlySavings: (_) => de_EBSEstimatedMonthlySavings(_, context),
2526
+ savingsOpportunityPercentage: import_smithy_client.limitedParseDouble
2527
+ });
2528
+ }, "de_EBSSavingsOpportunityAfterDiscounts");
2529
+ var de_EBSUtilizationMetric = /* @__PURE__ */ __name((output, context) => {
2530
+ return (0, import_smithy_client.take)(output, {
2531
+ name: import_smithy_client.expectString,
2532
+ statistic: import_smithy_client.expectString,
2533
+ value: import_smithy_client.limitedParseDouble
2534
+ });
2535
+ }, "de_EBSUtilizationMetric");
2536
+ var de_EBSUtilizationMetrics = /* @__PURE__ */ __name((output, context) => {
2537
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2538
+ return de_EBSUtilizationMetric(entry, context);
2539
+ });
2540
+ return retVal;
2541
+ }, "de_EBSUtilizationMetrics");
2542
+ var de_ECSEstimatedMonthlySavings = /* @__PURE__ */ __name((output, context) => {
2543
+ return (0, import_smithy_client.take)(output, {
2544
+ currency: import_smithy_client.expectString,
2545
+ value: import_smithy_client.limitedParseDouble
2546
+ });
2547
+ }, "de_ECSEstimatedMonthlySavings");
2548
+ var de_ECSSavingsOpportunityAfterDiscounts = /* @__PURE__ */ __name((output, context) => {
2549
+ return (0, import_smithy_client.take)(output, {
2550
+ estimatedMonthlySavings: (_) => de_ECSEstimatedMonthlySavings(_, context),
2551
+ savingsOpportunityPercentage: import_smithy_client.limitedParseDouble
2552
+ });
2553
+ }, "de_ECSSavingsOpportunityAfterDiscounts");
2554
+ var de_ECSServiceProjectedMetric = /* @__PURE__ */ __name((output, context) => {
2555
+ return (0, import_smithy_client.take)(output, {
2556
+ lowerBoundValues: (_) => de_MetricValues(_, context),
2557
+ name: import_smithy_client.expectString,
2558
+ timestamps: (_) => de_Timestamps(_, context),
2559
+ upperBoundValues: (_) => de_MetricValues(_, context)
2560
+ });
2561
+ }, "de_ECSServiceProjectedMetric");
2562
+ var de_ECSServiceProjectedMetrics = /* @__PURE__ */ __name((output, context) => {
2563
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2564
+ return de_ECSServiceProjectedMetric(entry, context);
2565
+ });
2566
+ return retVal;
2567
+ }, "de_ECSServiceProjectedMetrics");
2568
+ var de_ECSServiceProjectedUtilizationMetric = /* @__PURE__ */ __name((output, context) => {
2569
+ return (0, import_smithy_client.take)(output, {
2570
+ lowerBoundValue: import_smithy_client.limitedParseDouble,
2571
+ name: import_smithy_client.expectString,
2572
+ statistic: import_smithy_client.expectString,
2573
+ upperBoundValue: import_smithy_client.limitedParseDouble
2574
+ });
2575
+ }, "de_ECSServiceProjectedUtilizationMetric");
2576
+ var de_ECSServiceProjectedUtilizationMetrics = /* @__PURE__ */ __name((output, context) => {
2577
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2578
+ return de_ECSServiceProjectedUtilizationMetric(entry, context);
2579
+ });
2580
+ return retVal;
2581
+ }, "de_ECSServiceProjectedUtilizationMetrics");
2582
+ var de_ECSServiceRecommendation = /* @__PURE__ */ __name((output, context) => {
2583
+ return (0, import_smithy_client.take)(output, {
2584
+ accountId: import_smithy_client.expectString,
2585
+ currentPerformanceRisk: import_smithy_client.expectString,
2586
+ currentServiceConfiguration: import_smithy_client._json,
2587
+ effectiveRecommendationPreferences: import_smithy_client._json,
2588
+ finding: import_smithy_client.expectString,
2589
+ findingReasonCodes: import_smithy_client._json,
2590
+ lastRefreshTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2591
+ launchType: import_smithy_client.expectString,
2592
+ lookbackPeriodInDays: import_smithy_client.limitedParseDouble,
2593
+ serviceArn: import_smithy_client.expectString,
2594
+ serviceRecommendationOptions: (_) => de_ECSServiceRecommendationOptions(_, context),
2595
+ tags: import_smithy_client._json,
2596
+ utilizationMetrics: (_) => de_ECSServiceUtilizationMetrics(_, context)
2597
+ });
2598
+ }, "de_ECSServiceRecommendation");
2599
+ var de_ECSServiceRecommendationOption = /* @__PURE__ */ __name((output, context) => {
2600
+ return (0, import_smithy_client.take)(output, {
2601
+ containerRecommendations: import_smithy_client._json,
2602
+ cpu: import_smithy_client.expectInt32,
2603
+ memory: import_smithy_client.expectInt32,
2604
+ projectedUtilizationMetrics: (_) => de_ECSServiceProjectedUtilizationMetrics(_, context),
2605
+ savingsOpportunity: (_) => de_SavingsOpportunity(_, context),
2606
+ savingsOpportunityAfterDiscounts: (_) => de_ECSSavingsOpportunityAfterDiscounts(_, context)
2607
+ });
2608
+ }, "de_ECSServiceRecommendationOption");
2609
+ var de_ECSServiceRecommendationOptions = /* @__PURE__ */ __name((output, context) => {
2610
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2611
+ return de_ECSServiceRecommendationOption(entry, context);
2612
+ });
2613
+ return retVal;
2614
+ }, "de_ECSServiceRecommendationOptions");
2615
+ var de_ECSServiceRecommendations = /* @__PURE__ */ __name((output, context) => {
2616
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2617
+ return de_ECSServiceRecommendation(entry, context);
2618
+ });
2619
+ return retVal;
2620
+ }, "de_ECSServiceRecommendations");
2621
+ var de_ECSServiceRecommendedOptionProjectedMetric = /* @__PURE__ */ __name((output, context) => {
2622
+ return (0, import_smithy_client.take)(output, {
2623
+ projectedMetrics: (_) => de_ECSServiceProjectedMetrics(_, context),
2624
+ recommendedCpuUnits: import_smithy_client.expectInt32,
2625
+ recommendedMemorySize: import_smithy_client.expectInt32
2626
+ });
2627
+ }, "de_ECSServiceRecommendedOptionProjectedMetric");
2628
+ var de_ECSServiceRecommendedOptionProjectedMetrics = /* @__PURE__ */ __name((output, context) => {
2629
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2630
+ return de_ECSServiceRecommendedOptionProjectedMetric(entry, context);
2631
+ });
2632
+ return retVal;
2633
+ }, "de_ECSServiceRecommendedOptionProjectedMetrics");
2634
+ var de_ECSServiceUtilizationMetric = /* @__PURE__ */ __name((output, context) => {
2635
+ return (0, import_smithy_client.take)(output, {
2636
+ name: import_smithy_client.expectString,
2637
+ statistic: import_smithy_client.expectString,
2638
+ value: import_smithy_client.limitedParseDouble
2639
+ });
2640
+ }, "de_ECSServiceUtilizationMetric");
2641
+ var de_ECSServiceUtilizationMetrics = /* @__PURE__ */ __name((output, context) => {
2642
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2643
+ return de_ECSServiceUtilizationMetric(entry, context);
2644
+ });
2645
+ return retVal;
2646
+ }, "de_ECSServiceUtilizationMetrics");
2647
+ var de_EstimatedMonthlySavings = /* @__PURE__ */ __name((output, context) => {
2648
+ return (0, import_smithy_client.take)(output, {
2649
+ currency: import_smithy_client.expectString,
2650
+ value: import_smithy_client.limitedParseDouble
2651
+ });
2652
+ }, "de_EstimatedMonthlySavings");
2653
+ var de_GetAutoScalingGroupRecommendationsResponse = /* @__PURE__ */ __name((output, context) => {
2654
+ return (0, import_smithy_client.take)(output, {
2655
+ autoScalingGroupRecommendations: (_) => de_AutoScalingGroupRecommendations(_, context),
2656
+ errors: import_smithy_client._json,
2657
+ nextToken: import_smithy_client.expectString
2658
+ });
2659
+ }, "de_GetAutoScalingGroupRecommendationsResponse");
2660
+ var de_GetEBSVolumeRecommendationsResponse = /* @__PURE__ */ __name((output, context) => {
2661
+ return (0, import_smithy_client.take)(output, {
2662
+ errors: import_smithy_client._json,
2663
+ nextToken: import_smithy_client.expectString,
2664
+ volumeRecommendations: (_) => de_VolumeRecommendations(_, context)
2665
+ });
2666
+ }, "de_GetEBSVolumeRecommendationsResponse");
2667
+ var de_GetEC2InstanceRecommendationsResponse = /* @__PURE__ */ __name((output, context) => {
2668
+ return (0, import_smithy_client.take)(output, {
2669
+ errors: import_smithy_client._json,
2670
+ instanceRecommendations: (_) => de_InstanceRecommendations(_, context),
2671
+ nextToken: import_smithy_client.expectString
2672
+ });
2673
+ }, "de_GetEC2InstanceRecommendationsResponse");
2674
+ var de_GetEC2RecommendationProjectedMetricsResponse = /* @__PURE__ */ __name((output, context) => {
2675
+ return (0, import_smithy_client.take)(output, {
2676
+ recommendedOptionProjectedMetrics: (_) => de_RecommendedOptionProjectedMetrics(_, context)
2677
+ });
2678
+ }, "de_GetEC2RecommendationProjectedMetricsResponse");
2679
+ var de_GetECSServiceRecommendationProjectedMetricsResponse = /* @__PURE__ */ __name((output, context) => {
2680
+ return (0, import_smithy_client.take)(output, {
2681
+ recommendedOptionProjectedMetrics: (_) => de_ECSServiceRecommendedOptionProjectedMetrics(_, context)
2682
+ });
2683
+ }, "de_GetECSServiceRecommendationProjectedMetricsResponse");
2684
+ var de_GetECSServiceRecommendationsResponse = /* @__PURE__ */ __name((output, context) => {
2685
+ return (0, import_smithy_client.take)(output, {
2686
+ ecsServiceRecommendations: (_) => de_ECSServiceRecommendations(_, context),
2687
+ errors: import_smithy_client._json,
2688
+ nextToken: import_smithy_client.expectString
2689
+ });
2690
+ }, "de_GetECSServiceRecommendationsResponse");
2691
+ var de_GetEnrollmentStatusesForOrganizationResponse = /* @__PURE__ */ __name((output, context) => {
2692
+ return (0, import_smithy_client.take)(output, {
2693
+ accountEnrollmentStatuses: (_) => de_AccountEnrollmentStatuses(_, context),
2694
+ nextToken: import_smithy_client.expectString
2695
+ });
2696
+ }, "de_GetEnrollmentStatusesForOrganizationResponse");
2697
+ var de_GetEnrollmentStatusResponse = /* @__PURE__ */ __name((output, context) => {
2698
+ return (0, import_smithy_client.take)(output, {
2699
+ lastUpdatedTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2700
+ memberAccountsEnrolled: import_smithy_client.expectBoolean,
2701
+ numberOfMemberAccountsOptedIn: import_smithy_client.expectInt32,
2702
+ status: import_smithy_client.expectString,
2703
+ statusReason: import_smithy_client.expectString
2704
+ });
2705
+ }, "de_GetEnrollmentStatusResponse");
2706
+ var de_GetLambdaFunctionRecommendationsResponse = /* @__PURE__ */ __name((output, context) => {
2707
+ return (0, import_smithy_client.take)(output, {
2708
+ lambdaFunctionRecommendations: (_) => de_LambdaFunctionRecommendations(_, context),
2709
+ nextToken: import_smithy_client.expectString
2710
+ });
2711
+ }, "de_GetLambdaFunctionRecommendationsResponse");
2712
+ var de_GetLicenseRecommendationsResponse = /* @__PURE__ */ __name((output, context) => {
2713
+ return (0, import_smithy_client.take)(output, {
2714
+ errors: import_smithy_client._json,
2715
+ licenseRecommendations: (_) => de_LicenseRecommendations(_, context),
2716
+ nextToken: import_smithy_client.expectString
2717
+ });
2718
+ }, "de_GetLicenseRecommendationsResponse");
2719
+ var de_GetRecommendationSummariesResponse = /* @__PURE__ */ __name((output, context) => {
2720
+ return (0, import_smithy_client.take)(output, {
2721
+ nextToken: import_smithy_client.expectString,
2722
+ recommendationSummaries: (_) => de_RecommendationSummaries(_, context)
2723
+ });
2724
+ }, "de_GetRecommendationSummariesResponse");
2725
+ var de_InferredWorkloadSaving = /* @__PURE__ */ __name((output, context) => {
2726
+ return (0, import_smithy_client.take)(output, {
2727
+ estimatedMonthlySavings: (_) => de_EstimatedMonthlySavings(_, context),
2728
+ inferredWorkloadTypes: import_smithy_client._json
2729
+ });
2730
+ }, "de_InferredWorkloadSaving");
2731
+ var de_InferredWorkloadSavings = /* @__PURE__ */ __name((output, context) => {
2732
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2733
+ return de_InferredWorkloadSaving(entry, context);
2734
+ });
2735
+ return retVal;
2736
+ }, "de_InferredWorkloadSavings");
2737
+ var de_InstanceEstimatedMonthlySavings = /* @__PURE__ */ __name((output, context) => {
2738
+ return (0, import_smithy_client.take)(output, {
2739
+ currency: import_smithy_client.expectString,
2740
+ value: import_smithy_client.limitedParseDouble
2741
+ });
2742
+ }, "de_InstanceEstimatedMonthlySavings");
2743
+ var de_InstanceRecommendation = /* @__PURE__ */ __name((output, context) => {
2744
+ return (0, import_smithy_client.take)(output, {
2745
+ accountId: import_smithy_client.expectString,
2746
+ currentInstanceGpuInfo: import_smithy_client._json,
2747
+ currentInstanceType: import_smithy_client.expectString,
2748
+ currentPerformanceRisk: import_smithy_client.expectString,
2749
+ effectiveRecommendationPreferences: import_smithy_client._json,
2750
+ externalMetricStatus: import_smithy_client._json,
2751
+ finding: import_smithy_client.expectString,
2752
+ findingReasonCodes: import_smithy_client._json,
2753
+ idle: import_smithy_client.expectString,
2754
+ inferredWorkloadTypes: import_smithy_client._json,
2755
+ instanceArn: import_smithy_client.expectString,
2756
+ instanceName: import_smithy_client.expectString,
2757
+ instanceState: import_smithy_client.expectString,
2758
+ lastRefreshTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2759
+ lookBackPeriodInDays: import_smithy_client.limitedParseDouble,
2760
+ recommendationOptions: (_) => de_RecommendationOptions(_, context),
2761
+ recommendationSources: import_smithy_client._json,
2762
+ tags: import_smithy_client._json,
2763
+ utilizationMetrics: (_) => de_UtilizationMetrics(_, context)
2764
+ });
2765
+ }, "de_InstanceRecommendation");
2766
+ var de_InstanceRecommendationOption = /* @__PURE__ */ __name((output, context) => {
2767
+ return (0, import_smithy_client.take)(output, {
2768
+ instanceGpuInfo: import_smithy_client._json,
2769
+ instanceType: import_smithy_client.expectString,
2770
+ migrationEffort: import_smithy_client.expectString,
2771
+ performanceRisk: import_smithy_client.limitedParseDouble,
2772
+ platformDifferences: import_smithy_client._json,
2773
+ projectedUtilizationMetrics: (_) => de_ProjectedUtilizationMetrics(_, context),
2774
+ rank: import_smithy_client.expectInt32,
2775
+ savingsOpportunity: (_) => de_SavingsOpportunity(_, context),
2776
+ savingsOpportunityAfterDiscounts: (_) => de_InstanceSavingsOpportunityAfterDiscounts(_, context)
2777
+ });
2778
+ }, "de_InstanceRecommendationOption");
2779
+ var de_InstanceRecommendations = /* @__PURE__ */ __name((output, context) => {
2780
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2781
+ return de_InstanceRecommendation(entry, context);
2782
+ });
2783
+ return retVal;
2784
+ }, "de_InstanceRecommendations");
2785
+ var de_InstanceSavingsOpportunityAfterDiscounts = /* @__PURE__ */ __name((output, context) => {
2786
+ return (0, import_smithy_client.take)(output, {
2787
+ estimatedMonthlySavings: (_) => de_InstanceEstimatedMonthlySavings(_, context),
2788
+ savingsOpportunityPercentage: import_smithy_client.limitedParseDouble
2789
+ });
2790
+ }, "de_InstanceSavingsOpportunityAfterDiscounts");
2791
+ var de_LambdaEstimatedMonthlySavings = /* @__PURE__ */ __name((output, context) => {
2792
+ return (0, import_smithy_client.take)(output, {
2793
+ currency: import_smithy_client.expectString,
2794
+ value: import_smithy_client.limitedParseDouble
2795
+ });
2796
+ }, "de_LambdaEstimatedMonthlySavings");
2797
+ var de_LambdaFunctionMemoryProjectedMetric = /* @__PURE__ */ __name((output, context) => {
2798
+ return (0, import_smithy_client.take)(output, {
2799
+ name: import_smithy_client.expectString,
2800
+ statistic: import_smithy_client.expectString,
2801
+ value: import_smithy_client.limitedParseDouble
2802
+ });
2803
+ }, "de_LambdaFunctionMemoryProjectedMetric");
2804
+ var de_LambdaFunctionMemoryProjectedMetrics = /* @__PURE__ */ __name((output, context) => {
2805
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2806
+ return de_LambdaFunctionMemoryProjectedMetric(entry, context);
2807
+ });
2808
+ return retVal;
2809
+ }, "de_LambdaFunctionMemoryProjectedMetrics");
2810
+ var de_LambdaFunctionMemoryRecommendationOption = /* @__PURE__ */ __name((output, context) => {
2811
+ return (0, import_smithy_client.take)(output, {
2812
+ memorySize: import_smithy_client.expectInt32,
2813
+ projectedUtilizationMetrics: (_) => de_LambdaFunctionMemoryProjectedMetrics(_, context),
2814
+ rank: import_smithy_client.expectInt32,
2815
+ savingsOpportunity: (_) => de_SavingsOpportunity(_, context),
2816
+ savingsOpportunityAfterDiscounts: (_) => de_LambdaSavingsOpportunityAfterDiscounts(_, context)
2817
+ });
2818
+ }, "de_LambdaFunctionMemoryRecommendationOption");
2819
+ var de_LambdaFunctionMemoryRecommendationOptions = /* @__PURE__ */ __name((output, context) => {
2820
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2821
+ return de_LambdaFunctionMemoryRecommendationOption(entry, context);
2822
+ });
2823
+ return retVal;
2824
+ }, "de_LambdaFunctionMemoryRecommendationOptions");
2825
+ var de_LambdaFunctionRecommendation = /* @__PURE__ */ __name((output, context) => {
2826
+ return (0, import_smithy_client.take)(output, {
2827
+ accountId: import_smithy_client.expectString,
2828
+ currentMemorySize: import_smithy_client.expectInt32,
2829
+ currentPerformanceRisk: import_smithy_client.expectString,
2830
+ effectiveRecommendationPreferences: import_smithy_client._json,
2831
+ finding: import_smithy_client.expectString,
2832
+ findingReasonCodes: import_smithy_client._json,
2833
+ functionArn: import_smithy_client.expectString,
2834
+ functionVersion: import_smithy_client.expectString,
2835
+ lastRefreshTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2836
+ lookbackPeriodInDays: import_smithy_client.limitedParseDouble,
2837
+ memorySizeRecommendationOptions: (_) => de_LambdaFunctionMemoryRecommendationOptions(_, context),
2838
+ numberOfInvocations: import_smithy_client.expectLong,
2839
+ tags: import_smithy_client._json,
2840
+ utilizationMetrics: (_) => de_LambdaFunctionUtilizationMetrics(_, context)
2841
+ });
2842
+ }, "de_LambdaFunctionRecommendation");
2843
+ var de_LambdaFunctionRecommendations = /* @__PURE__ */ __name((output, context) => {
2844
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2845
+ return de_LambdaFunctionRecommendation(entry, context);
2846
+ });
2847
+ return retVal;
2848
+ }, "de_LambdaFunctionRecommendations");
2849
+ var de_LambdaFunctionUtilizationMetric = /* @__PURE__ */ __name((output, context) => {
2850
+ return (0, import_smithy_client.take)(output, {
2851
+ name: import_smithy_client.expectString,
2852
+ statistic: import_smithy_client.expectString,
2853
+ value: import_smithy_client.limitedParseDouble
2854
+ });
2855
+ }, "de_LambdaFunctionUtilizationMetric");
2856
+ var de_LambdaFunctionUtilizationMetrics = /* @__PURE__ */ __name((output, context) => {
2857
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2858
+ return de_LambdaFunctionUtilizationMetric(entry, context);
2859
+ });
2860
+ return retVal;
2861
+ }, "de_LambdaFunctionUtilizationMetrics");
2862
+ var de_LambdaSavingsOpportunityAfterDiscounts = /* @__PURE__ */ __name((output, context) => {
2863
+ return (0, import_smithy_client.take)(output, {
2864
+ estimatedMonthlySavings: (_) => de_LambdaEstimatedMonthlySavings(_, context),
2865
+ savingsOpportunityPercentage: import_smithy_client.limitedParseDouble
2866
+ });
2867
+ }, "de_LambdaSavingsOpportunityAfterDiscounts");
2868
+ var de_LicenseRecommendation = /* @__PURE__ */ __name((output, context) => {
2869
+ return (0, import_smithy_client.take)(output, {
2870
+ accountId: import_smithy_client.expectString,
2871
+ currentLicenseConfiguration: import_smithy_client._json,
2872
+ finding: import_smithy_client.expectString,
2873
+ findingReasonCodes: import_smithy_client._json,
2874
+ lastRefreshTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2875
+ licenseRecommendationOptions: (_) => de_LicenseRecommendationOptions(_, context),
2876
+ lookbackPeriodInDays: import_smithy_client.limitedParseDouble,
2877
+ resourceArn: import_smithy_client.expectString,
2878
+ tags: import_smithy_client._json
2879
+ });
2880
+ }, "de_LicenseRecommendation");
2881
+ var de_LicenseRecommendationOption = /* @__PURE__ */ __name((output, context) => {
2882
+ return (0, import_smithy_client.take)(output, {
2883
+ licenseEdition: import_smithy_client.expectString,
2884
+ licenseModel: import_smithy_client.expectString,
2885
+ operatingSystem: import_smithy_client.expectString,
2886
+ rank: import_smithy_client.expectInt32,
2887
+ savingsOpportunity: (_) => de_SavingsOpportunity(_, context)
2888
+ });
2889
+ }, "de_LicenseRecommendationOption");
2890
+ var de_LicenseRecommendationOptions = /* @__PURE__ */ __name((output, context) => {
2891
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2892
+ return de_LicenseRecommendationOption(entry, context);
2893
+ });
2894
+ return retVal;
2895
+ }, "de_LicenseRecommendationOptions");
2896
+ var de_LicenseRecommendations = /* @__PURE__ */ __name((output, context) => {
2897
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2898
+ return de_LicenseRecommendation(entry, context);
2899
+ });
2900
+ return retVal;
2901
+ }, "de_LicenseRecommendations");
2902
+ var de_MetricValues = /* @__PURE__ */ __name((output, context) => {
2903
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2904
+ return (0, import_smithy_client.limitedParseDouble)(entry);
2905
+ });
2906
+ return retVal;
2907
+ }, "de_MetricValues");
2908
+ var de_ProjectedMetric = /* @__PURE__ */ __name((output, context) => {
2909
+ return (0, import_smithy_client.take)(output, {
2910
+ name: import_smithy_client.expectString,
2911
+ timestamps: (_) => de_Timestamps(_, context),
2912
+ values: (_) => de_MetricValues(_, context)
2913
+ });
2914
+ }, "de_ProjectedMetric");
2915
+ var de_ProjectedMetrics = /* @__PURE__ */ __name((output, context) => {
2916
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2917
+ return de_ProjectedMetric(entry, context);
2918
+ });
2919
+ return retVal;
2920
+ }, "de_ProjectedMetrics");
2921
+ var de_ProjectedUtilizationMetrics = /* @__PURE__ */ __name((output, context) => {
2922
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2923
+ return de_UtilizationMetric(entry, context);
2924
+ });
2925
+ return retVal;
2926
+ }, "de_ProjectedUtilizationMetrics");
2927
+ var de_ReasonCodeSummaries = /* @__PURE__ */ __name((output, context) => {
2928
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2929
+ return de_ReasonCodeSummary(entry, context);
2930
+ });
2931
+ return retVal;
2932
+ }, "de_ReasonCodeSummaries");
2933
+ var de_ReasonCodeSummary = /* @__PURE__ */ __name((output, context) => {
2934
+ return (0, import_smithy_client.take)(output, {
2935
+ name: import_smithy_client.expectString,
2936
+ value: import_smithy_client.limitedParseDouble
2937
+ });
2938
+ }, "de_ReasonCodeSummary");
2939
+ var de_RecommendationExportJob = /* @__PURE__ */ __name((output, context) => {
2940
+ return (0, import_smithy_client.take)(output, {
2941
+ creationTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2942
+ destination: import_smithy_client._json,
2943
+ failureReason: import_smithy_client.expectString,
2944
+ jobId: import_smithy_client.expectString,
2945
+ lastUpdatedTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2946
+ resourceType: import_smithy_client.expectString,
2947
+ status: import_smithy_client.expectString
2948
+ });
2949
+ }, "de_RecommendationExportJob");
2950
+ var de_RecommendationExportJobs = /* @__PURE__ */ __name((output, context) => {
2951
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2952
+ return de_RecommendationExportJob(entry, context);
2953
+ });
2954
+ return retVal;
2955
+ }, "de_RecommendationExportJobs");
2956
+ var de_RecommendationOptions = /* @__PURE__ */ __name((output, context) => {
2957
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2958
+ return de_InstanceRecommendationOption(entry, context);
2959
+ });
2960
+ return retVal;
2961
+ }, "de_RecommendationOptions");
2962
+ var de_RecommendationSummaries = /* @__PURE__ */ __name((output, context) => {
2963
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2964
+ return de_RecommendationSummary(entry, context);
2965
+ });
2966
+ return retVal;
2967
+ }, "de_RecommendationSummaries");
2968
+ var de_RecommendationSummary = /* @__PURE__ */ __name((output, context) => {
2969
+ return (0, import_smithy_client.take)(output, {
2970
+ accountId: import_smithy_client.expectString,
2971
+ currentPerformanceRiskRatings: import_smithy_client._json,
2972
+ inferredWorkloadSavings: (_) => de_InferredWorkloadSavings(_, context),
2973
+ recommendationResourceType: import_smithy_client.expectString,
2974
+ savingsOpportunity: (_) => de_SavingsOpportunity(_, context),
2975
+ summaries: (_) => de_Summaries(_, context)
2976
+ });
2977
+ }, "de_RecommendationSummary");
2978
+ var de_RecommendedOptionProjectedMetric = /* @__PURE__ */ __name((output, context) => {
2979
+ return (0, import_smithy_client.take)(output, {
2980
+ projectedMetrics: (_) => de_ProjectedMetrics(_, context),
2981
+ rank: import_smithy_client.expectInt32,
2982
+ recommendedInstanceType: import_smithy_client.expectString
2983
+ });
2984
+ }, "de_RecommendedOptionProjectedMetric");
2985
+ var de_RecommendedOptionProjectedMetrics = /* @__PURE__ */ __name((output, context) => {
2986
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2987
+ return de_RecommendedOptionProjectedMetric(entry, context);
2988
+ });
2989
+ return retVal;
2990
+ }, "de_RecommendedOptionProjectedMetrics");
2991
+ var de_SavingsOpportunity = /* @__PURE__ */ __name((output, context) => {
2992
+ return (0, import_smithy_client.take)(output, {
2993
+ estimatedMonthlySavings: (_) => de_EstimatedMonthlySavings(_, context),
2994
+ savingsOpportunityPercentage: import_smithy_client.limitedParseDouble
2995
+ });
2996
+ }, "de_SavingsOpportunity");
2997
+ var de_Summaries = /* @__PURE__ */ __name((output, context) => {
2998
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2999
+ return de_Summary(entry, context);
3000
+ });
3001
+ return retVal;
3002
+ }, "de_Summaries");
3003
+ var de_Summary = /* @__PURE__ */ __name((output, context) => {
3004
+ return (0, import_smithy_client.take)(output, {
3005
+ name: import_smithy_client.expectString,
3006
+ reasonCodeSummaries: (_) => de_ReasonCodeSummaries(_, context),
3007
+ value: import_smithy_client.limitedParseDouble
3008
+ });
3009
+ }, "de_Summary");
3010
+ var de_Timestamps = /* @__PURE__ */ __name((output, context) => {
3011
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3012
+ return (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(entry)));
3013
+ });
3014
+ return retVal;
3015
+ }, "de_Timestamps");
3016
+ var de_UtilizationMetric = /* @__PURE__ */ __name((output, context) => {
3017
+ return (0, import_smithy_client.take)(output, {
3018
+ name: import_smithy_client.expectString,
3019
+ statistic: import_smithy_client.expectString,
3020
+ value: import_smithy_client.limitedParseDouble
3021
+ });
3022
+ }, "de_UtilizationMetric");
3023
+ var de_UtilizationMetrics = /* @__PURE__ */ __name((output, context) => {
3024
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3025
+ return de_UtilizationMetric(entry, context);
3026
+ });
3027
+ return retVal;
3028
+ }, "de_UtilizationMetrics");
3029
+ var de_VolumeRecommendation = /* @__PURE__ */ __name((output, context) => {
3030
+ return (0, import_smithy_client.take)(output, {
3031
+ accountId: import_smithy_client.expectString,
3032
+ currentConfiguration: import_smithy_client._json,
3033
+ currentPerformanceRisk: import_smithy_client.expectString,
3034
+ effectiveRecommendationPreferences: import_smithy_client._json,
3035
+ finding: import_smithy_client.expectString,
3036
+ lastRefreshTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3037
+ lookBackPeriodInDays: import_smithy_client.limitedParseDouble,
3038
+ tags: import_smithy_client._json,
3039
+ utilizationMetrics: (_) => de_EBSUtilizationMetrics(_, context),
3040
+ volumeArn: import_smithy_client.expectString,
3041
+ volumeRecommendationOptions: (_) => de_VolumeRecommendationOptions(_, context)
3042
+ });
3043
+ }, "de_VolumeRecommendation");
3044
+ var de_VolumeRecommendationOption = /* @__PURE__ */ __name((output, context) => {
3045
+ return (0, import_smithy_client.take)(output, {
3046
+ configuration: import_smithy_client._json,
3047
+ performanceRisk: import_smithy_client.limitedParseDouble,
3048
+ rank: import_smithy_client.expectInt32,
3049
+ savingsOpportunity: (_) => de_SavingsOpportunity(_, context),
3050
+ savingsOpportunityAfterDiscounts: (_) => de_EBSSavingsOpportunityAfterDiscounts(_, context)
3051
+ });
3052
+ }, "de_VolumeRecommendationOption");
3053
+ var de_VolumeRecommendationOptions = /* @__PURE__ */ __name((output, context) => {
3054
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3055
+ return de_VolumeRecommendationOption(entry, context);
3056
+ });
3057
+ return retVal;
3058
+ }, "de_VolumeRecommendationOptions");
3059
+ var de_VolumeRecommendations = /* @__PURE__ */ __name((output, context) => {
3060
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3061
+ return de_VolumeRecommendation(entry, context);
3062
+ });
3063
+ return retVal;
3064
+ }, "de_VolumeRecommendations");
3065
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
3066
+ httpStatusCode: output.statusCode,
3067
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
3068
+ extendedRequestId: output.headers["x-amz-id-2"],
3069
+ cfId: output.headers["x-amz-cf-id"]
3070
+ }), "deserializeMetadata");
3071
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
3072
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(ComputeOptimizerServiceException);
3073
+ var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
3074
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3075
+ const contents = {
3076
+ protocol,
3077
+ hostname,
3078
+ port,
3079
+ method: "POST",
3080
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
3081
+ headers
3082
+ };
3083
+ if (resolvedHostname !== void 0) {
3084
+ contents.hostname = resolvedHostname;
3085
+ }
3086
+ if (body !== void 0) {
3087
+ contents.body = body;
3088
+ }
3089
+ return new import_protocol_http.HttpRequest(contents);
3090
+ }, "buildHttpRpcRequest");
3091
+ function sharedHeaders(operation) {
3092
+ return {
3093
+ "content-type": "application/x-amz-json-1.0",
3094
+ "x-amz-target": `ComputeOptimizerService.${operation}`
3095
+ };
3096
+ }
3097
+ __name(sharedHeaders, "sharedHeaders");
3098
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
3099
+ if (encoded.length) {
3100
+ return JSON.parse(encoded);
3101
+ }
3102
+ return {};
3103
+ }), "parseBody");
3104
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
3105
+ const value = await parseBody(errorBody, context);
3106
+ value.message = value.message ?? value.Message;
3107
+ return value;
3108
+ }, "parseErrorBody");
3109
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
3110
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
3111
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
3112
+ let cleanValue = rawValue;
3113
+ if (typeof cleanValue === "number") {
3114
+ cleanValue = cleanValue.toString();
3115
+ }
3116
+ if (cleanValue.indexOf(",") >= 0) {
3117
+ cleanValue = cleanValue.split(",")[0];
3118
+ }
3119
+ if (cleanValue.indexOf(":") >= 0) {
3120
+ cleanValue = cleanValue.split(":")[0];
3121
+ }
3122
+ if (cleanValue.indexOf("#") >= 0) {
3123
+ cleanValue = cleanValue.split("#")[1];
3124
+ }
3125
+ return cleanValue;
3126
+ }, "sanitizeErrorCode");
3127
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
3128
+ if (headerKey !== void 0) {
3129
+ return sanitizeErrorCode(output.headers[headerKey]);
3130
+ }
3131
+ if (data.code !== void 0) {
3132
+ return sanitizeErrorCode(data.code);
3133
+ }
3134
+ if (data["__type"] !== void 0) {
3135
+ return sanitizeErrorCode(data["__type"]);
3136
+ }
3137
+ }, "loadRestJsonErrorCode");
3138
+
3139
+ // src/commands/DeleteRecommendationPreferencesCommand.ts
3140
+ var _DeleteRecommendationPreferencesCommand = class _DeleteRecommendationPreferencesCommand extends import_smithy_client.Command.classBuilder().ep({
3141
+ ...commonParams
3142
+ }).m(function(Command, cs, config, o) {
3143
+ return [
3144
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3145
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3146
+ ];
3147
+ }).s("ComputeOptimizerService", "DeleteRecommendationPreferences", {}).n("ComputeOptimizerClient", "DeleteRecommendationPreferencesCommand").f(void 0, void 0).ser(se_DeleteRecommendationPreferencesCommand).de(de_DeleteRecommendationPreferencesCommand).build() {
3148
+ };
3149
+ __name(_DeleteRecommendationPreferencesCommand, "DeleteRecommendationPreferencesCommand");
3150
+ var DeleteRecommendationPreferencesCommand = _DeleteRecommendationPreferencesCommand;
3151
+
3152
+ // src/commands/DescribeRecommendationExportJobsCommand.ts
3153
+
3154
+
3155
+
3156
+
3157
+ var _DescribeRecommendationExportJobsCommand = class _DescribeRecommendationExportJobsCommand extends import_smithy_client.Command.classBuilder().ep({
3158
+ ...commonParams
3159
+ }).m(function(Command, cs, config, o) {
3160
+ return [
3161
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3162
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3163
+ ];
3164
+ }).s("ComputeOptimizerService", "DescribeRecommendationExportJobs", {}).n("ComputeOptimizerClient", "DescribeRecommendationExportJobsCommand").f(void 0, void 0).ser(se_DescribeRecommendationExportJobsCommand).de(de_DescribeRecommendationExportJobsCommand).build() {
3165
+ };
3166
+ __name(_DescribeRecommendationExportJobsCommand, "DescribeRecommendationExportJobsCommand");
3167
+ var DescribeRecommendationExportJobsCommand = _DescribeRecommendationExportJobsCommand;
3168
+
3169
+ // src/commands/ExportAutoScalingGroupRecommendationsCommand.ts
3170
+
3171
+
3172
+
3173
+
3174
+ var _ExportAutoScalingGroupRecommendationsCommand = class _ExportAutoScalingGroupRecommendationsCommand extends import_smithy_client.Command.classBuilder().ep({
3175
+ ...commonParams
3176
+ }).m(function(Command, cs, config, o) {
3177
+ return [
3178
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3179
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3180
+ ];
3181
+ }).s("ComputeOptimizerService", "ExportAutoScalingGroupRecommendations", {}).n("ComputeOptimizerClient", "ExportAutoScalingGroupRecommendationsCommand").f(void 0, void 0).ser(se_ExportAutoScalingGroupRecommendationsCommand).de(de_ExportAutoScalingGroupRecommendationsCommand).build() {
3182
+ };
3183
+ __name(_ExportAutoScalingGroupRecommendationsCommand, "ExportAutoScalingGroupRecommendationsCommand");
3184
+ var ExportAutoScalingGroupRecommendationsCommand = _ExportAutoScalingGroupRecommendationsCommand;
3185
+
3186
+ // src/commands/ExportEBSVolumeRecommendationsCommand.ts
3187
+
3188
+
3189
+
3190
+
3191
+ var _ExportEBSVolumeRecommendationsCommand = class _ExportEBSVolumeRecommendationsCommand extends import_smithy_client.Command.classBuilder().ep({
3192
+ ...commonParams
3193
+ }).m(function(Command, cs, config, o) {
3194
+ return [
3195
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3196
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3197
+ ];
3198
+ }).s("ComputeOptimizerService", "ExportEBSVolumeRecommendations", {}).n("ComputeOptimizerClient", "ExportEBSVolumeRecommendationsCommand").f(void 0, void 0).ser(se_ExportEBSVolumeRecommendationsCommand).de(de_ExportEBSVolumeRecommendationsCommand).build() {
3199
+ };
3200
+ __name(_ExportEBSVolumeRecommendationsCommand, "ExportEBSVolumeRecommendationsCommand");
3201
+ var ExportEBSVolumeRecommendationsCommand = _ExportEBSVolumeRecommendationsCommand;
3202
+
3203
+ // src/commands/ExportEC2InstanceRecommendationsCommand.ts
3204
+
3205
+
3206
+
3207
+
3208
+ var _ExportEC2InstanceRecommendationsCommand = class _ExportEC2InstanceRecommendationsCommand extends import_smithy_client.Command.classBuilder().ep({
3209
+ ...commonParams
3210
+ }).m(function(Command, cs, config, o) {
3211
+ return [
3212
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3213
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3214
+ ];
3215
+ }).s("ComputeOptimizerService", "ExportEC2InstanceRecommendations", {}).n("ComputeOptimizerClient", "ExportEC2InstanceRecommendationsCommand").f(void 0, void 0).ser(se_ExportEC2InstanceRecommendationsCommand).de(de_ExportEC2InstanceRecommendationsCommand).build() {
3216
+ };
3217
+ __name(_ExportEC2InstanceRecommendationsCommand, "ExportEC2InstanceRecommendationsCommand");
3218
+ var ExportEC2InstanceRecommendationsCommand = _ExportEC2InstanceRecommendationsCommand;
3219
+
3220
+ // src/commands/ExportECSServiceRecommendationsCommand.ts
3221
+
3222
+
3223
+
3224
+
3225
+ var _ExportECSServiceRecommendationsCommand = class _ExportECSServiceRecommendationsCommand extends import_smithy_client.Command.classBuilder().ep({
3226
+ ...commonParams
3227
+ }).m(function(Command, cs, config, o) {
3228
+ return [
3229
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3230
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3231
+ ];
3232
+ }).s("ComputeOptimizerService", "ExportECSServiceRecommendations", {}).n("ComputeOptimizerClient", "ExportECSServiceRecommendationsCommand").f(void 0, void 0).ser(se_ExportECSServiceRecommendationsCommand).de(de_ExportECSServiceRecommendationsCommand).build() {
3233
+ };
3234
+ __name(_ExportECSServiceRecommendationsCommand, "ExportECSServiceRecommendationsCommand");
3235
+ var ExportECSServiceRecommendationsCommand = _ExportECSServiceRecommendationsCommand;
3236
+
3237
+ // src/commands/ExportLambdaFunctionRecommendationsCommand.ts
3238
+
3239
+
3240
+
3241
+
3242
+ var _ExportLambdaFunctionRecommendationsCommand = class _ExportLambdaFunctionRecommendationsCommand extends import_smithy_client.Command.classBuilder().ep({
3243
+ ...commonParams
3244
+ }).m(function(Command, cs, config, o) {
3245
+ return [
3246
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3247
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3248
+ ];
3249
+ }).s("ComputeOptimizerService", "ExportLambdaFunctionRecommendations", {}).n("ComputeOptimizerClient", "ExportLambdaFunctionRecommendationsCommand").f(void 0, void 0).ser(se_ExportLambdaFunctionRecommendationsCommand).de(de_ExportLambdaFunctionRecommendationsCommand).build() {
3250
+ };
3251
+ __name(_ExportLambdaFunctionRecommendationsCommand, "ExportLambdaFunctionRecommendationsCommand");
3252
+ var ExportLambdaFunctionRecommendationsCommand = _ExportLambdaFunctionRecommendationsCommand;
3253
+
3254
+ // src/commands/ExportLicenseRecommendationsCommand.ts
3255
+
3256
+
3257
+
3258
+
3259
+ var _ExportLicenseRecommendationsCommand = class _ExportLicenseRecommendationsCommand extends import_smithy_client.Command.classBuilder().ep({
3260
+ ...commonParams
3261
+ }).m(function(Command, cs, config, o) {
3262
+ return [
3263
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3264
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3265
+ ];
3266
+ }).s("ComputeOptimizerService", "ExportLicenseRecommendations", {}).n("ComputeOptimizerClient", "ExportLicenseRecommendationsCommand").f(void 0, void 0).ser(se_ExportLicenseRecommendationsCommand).de(de_ExportLicenseRecommendationsCommand).build() {
3267
+ };
3268
+ __name(_ExportLicenseRecommendationsCommand, "ExportLicenseRecommendationsCommand");
3269
+ var ExportLicenseRecommendationsCommand = _ExportLicenseRecommendationsCommand;
3270
+
3271
+ // src/commands/GetAutoScalingGroupRecommendationsCommand.ts
3272
+
3273
+
3274
+
3275
+
3276
+ var _GetAutoScalingGroupRecommendationsCommand = class _GetAutoScalingGroupRecommendationsCommand extends import_smithy_client.Command.classBuilder().ep({
3277
+ ...commonParams
3278
+ }).m(function(Command, cs, config, o) {
3279
+ return [
3280
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3281
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3282
+ ];
3283
+ }).s("ComputeOptimizerService", "GetAutoScalingGroupRecommendations", {}).n("ComputeOptimizerClient", "GetAutoScalingGroupRecommendationsCommand").f(void 0, void 0).ser(se_GetAutoScalingGroupRecommendationsCommand).de(de_GetAutoScalingGroupRecommendationsCommand).build() {
3284
+ };
3285
+ __name(_GetAutoScalingGroupRecommendationsCommand, "GetAutoScalingGroupRecommendationsCommand");
3286
+ var GetAutoScalingGroupRecommendationsCommand = _GetAutoScalingGroupRecommendationsCommand;
3287
+
3288
+ // src/commands/GetEBSVolumeRecommendationsCommand.ts
3289
+
3290
+
3291
+
3292
+
3293
+ var _GetEBSVolumeRecommendationsCommand = class _GetEBSVolumeRecommendationsCommand extends import_smithy_client.Command.classBuilder().ep({
3294
+ ...commonParams
3295
+ }).m(function(Command, cs, config, o) {
3296
+ return [
3297
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3298
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3299
+ ];
3300
+ }).s("ComputeOptimizerService", "GetEBSVolumeRecommendations", {}).n("ComputeOptimizerClient", "GetEBSVolumeRecommendationsCommand").f(void 0, void 0).ser(se_GetEBSVolumeRecommendationsCommand).de(de_GetEBSVolumeRecommendationsCommand).build() {
3301
+ };
3302
+ __name(_GetEBSVolumeRecommendationsCommand, "GetEBSVolumeRecommendationsCommand");
3303
+ var GetEBSVolumeRecommendationsCommand = _GetEBSVolumeRecommendationsCommand;
3304
+
3305
+ // src/commands/GetEC2InstanceRecommendationsCommand.ts
3306
+
3307
+
3308
+
3309
+
3310
+ var _GetEC2InstanceRecommendationsCommand = class _GetEC2InstanceRecommendationsCommand extends import_smithy_client.Command.classBuilder().ep({
3311
+ ...commonParams
3312
+ }).m(function(Command, cs, config, o) {
3313
+ return [
3314
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3315
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3316
+ ];
3317
+ }).s("ComputeOptimizerService", "GetEC2InstanceRecommendations", {}).n("ComputeOptimizerClient", "GetEC2InstanceRecommendationsCommand").f(void 0, void 0).ser(se_GetEC2InstanceRecommendationsCommand).de(de_GetEC2InstanceRecommendationsCommand).build() {
3318
+ };
3319
+ __name(_GetEC2InstanceRecommendationsCommand, "GetEC2InstanceRecommendationsCommand");
3320
+ var GetEC2InstanceRecommendationsCommand = _GetEC2InstanceRecommendationsCommand;
3321
+
3322
+ // src/commands/GetEC2RecommendationProjectedMetricsCommand.ts
3323
+
3324
+
3325
+
3326
+
3327
+ var _GetEC2RecommendationProjectedMetricsCommand = class _GetEC2RecommendationProjectedMetricsCommand extends import_smithy_client.Command.classBuilder().ep({
3328
+ ...commonParams
3329
+ }).m(function(Command, cs, config, o) {
3330
+ return [
3331
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3332
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3333
+ ];
3334
+ }).s("ComputeOptimizerService", "GetEC2RecommendationProjectedMetrics", {}).n("ComputeOptimizerClient", "GetEC2RecommendationProjectedMetricsCommand").f(void 0, void 0).ser(se_GetEC2RecommendationProjectedMetricsCommand).de(de_GetEC2RecommendationProjectedMetricsCommand).build() {
3335
+ };
3336
+ __name(_GetEC2RecommendationProjectedMetricsCommand, "GetEC2RecommendationProjectedMetricsCommand");
3337
+ var GetEC2RecommendationProjectedMetricsCommand = _GetEC2RecommendationProjectedMetricsCommand;
3338
+
3339
+ // src/commands/GetECSServiceRecommendationProjectedMetricsCommand.ts
3340
+
3341
+
3342
+
3343
+
3344
+ var _GetECSServiceRecommendationProjectedMetricsCommand = class _GetECSServiceRecommendationProjectedMetricsCommand extends import_smithy_client.Command.classBuilder().ep({
3345
+ ...commonParams
3346
+ }).m(function(Command, cs, config, o) {
3347
+ return [
3348
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3349
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3350
+ ];
3351
+ }).s("ComputeOptimizerService", "GetECSServiceRecommendationProjectedMetrics", {}).n("ComputeOptimizerClient", "GetECSServiceRecommendationProjectedMetricsCommand").f(void 0, void 0).ser(se_GetECSServiceRecommendationProjectedMetricsCommand).de(de_GetECSServiceRecommendationProjectedMetricsCommand).build() {
3352
+ };
3353
+ __name(_GetECSServiceRecommendationProjectedMetricsCommand, "GetECSServiceRecommendationProjectedMetricsCommand");
3354
+ var GetECSServiceRecommendationProjectedMetricsCommand = _GetECSServiceRecommendationProjectedMetricsCommand;
3355
+
3356
+ // src/commands/GetECSServiceRecommendationsCommand.ts
3357
+
3358
+
3359
+
3360
+
3361
+ var _GetECSServiceRecommendationsCommand = class _GetECSServiceRecommendationsCommand extends import_smithy_client.Command.classBuilder().ep({
3362
+ ...commonParams
3363
+ }).m(function(Command, cs, config, o) {
3364
+ return [
3365
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3366
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3367
+ ];
3368
+ }).s("ComputeOptimizerService", "GetECSServiceRecommendations", {}).n("ComputeOptimizerClient", "GetECSServiceRecommendationsCommand").f(void 0, void 0).ser(se_GetECSServiceRecommendationsCommand).de(de_GetECSServiceRecommendationsCommand).build() {
3369
+ };
3370
+ __name(_GetECSServiceRecommendationsCommand, "GetECSServiceRecommendationsCommand");
3371
+ var GetECSServiceRecommendationsCommand = _GetECSServiceRecommendationsCommand;
3372
+
3373
+ // src/commands/GetEffectiveRecommendationPreferencesCommand.ts
3374
+
3375
+
3376
+
3377
+
3378
+ var _GetEffectiveRecommendationPreferencesCommand = class _GetEffectiveRecommendationPreferencesCommand extends import_smithy_client.Command.classBuilder().ep({
3379
+ ...commonParams
3380
+ }).m(function(Command, cs, config, o) {
3381
+ return [
3382
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3383
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3384
+ ];
3385
+ }).s("ComputeOptimizerService", "GetEffectiveRecommendationPreferences", {}).n("ComputeOptimizerClient", "GetEffectiveRecommendationPreferencesCommand").f(void 0, void 0).ser(se_GetEffectiveRecommendationPreferencesCommand).de(de_GetEffectiveRecommendationPreferencesCommand).build() {
3386
+ };
3387
+ __name(_GetEffectiveRecommendationPreferencesCommand, "GetEffectiveRecommendationPreferencesCommand");
3388
+ var GetEffectiveRecommendationPreferencesCommand = _GetEffectiveRecommendationPreferencesCommand;
3389
+
3390
+ // src/commands/GetEnrollmentStatusCommand.ts
3391
+
3392
+
3393
+
3394
+
3395
+ var _GetEnrollmentStatusCommand = class _GetEnrollmentStatusCommand extends import_smithy_client.Command.classBuilder().ep({
3396
+ ...commonParams
3397
+ }).m(function(Command, cs, config, o) {
3398
+ return [
3399
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3400
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3401
+ ];
3402
+ }).s("ComputeOptimizerService", "GetEnrollmentStatus", {}).n("ComputeOptimizerClient", "GetEnrollmentStatusCommand").f(void 0, void 0).ser(se_GetEnrollmentStatusCommand).de(de_GetEnrollmentStatusCommand).build() {
3403
+ };
3404
+ __name(_GetEnrollmentStatusCommand, "GetEnrollmentStatusCommand");
3405
+ var GetEnrollmentStatusCommand = _GetEnrollmentStatusCommand;
3406
+
3407
+ // src/commands/GetEnrollmentStatusesForOrganizationCommand.ts
3408
+
3409
+
3410
+
3411
+
3412
+ var _GetEnrollmentStatusesForOrganizationCommand = class _GetEnrollmentStatusesForOrganizationCommand extends import_smithy_client.Command.classBuilder().ep({
3413
+ ...commonParams
3414
+ }).m(function(Command, cs, config, o) {
3415
+ return [
3416
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3417
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3418
+ ];
3419
+ }).s("ComputeOptimizerService", "GetEnrollmentStatusesForOrganization", {}).n("ComputeOptimizerClient", "GetEnrollmentStatusesForOrganizationCommand").f(void 0, void 0).ser(se_GetEnrollmentStatusesForOrganizationCommand).de(de_GetEnrollmentStatusesForOrganizationCommand).build() {
3420
+ };
3421
+ __name(_GetEnrollmentStatusesForOrganizationCommand, "GetEnrollmentStatusesForOrganizationCommand");
3422
+ var GetEnrollmentStatusesForOrganizationCommand = _GetEnrollmentStatusesForOrganizationCommand;
3423
+
3424
+ // src/commands/GetLambdaFunctionRecommendationsCommand.ts
3425
+
3426
+
3427
+
3428
+
3429
+ var _GetLambdaFunctionRecommendationsCommand = class _GetLambdaFunctionRecommendationsCommand extends import_smithy_client.Command.classBuilder().ep({
3430
+ ...commonParams
3431
+ }).m(function(Command, cs, config, o) {
3432
+ return [
3433
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3434
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3435
+ ];
3436
+ }).s("ComputeOptimizerService", "GetLambdaFunctionRecommendations", {}).n("ComputeOptimizerClient", "GetLambdaFunctionRecommendationsCommand").f(void 0, void 0).ser(se_GetLambdaFunctionRecommendationsCommand).de(de_GetLambdaFunctionRecommendationsCommand).build() {
3437
+ };
3438
+ __name(_GetLambdaFunctionRecommendationsCommand, "GetLambdaFunctionRecommendationsCommand");
3439
+ var GetLambdaFunctionRecommendationsCommand = _GetLambdaFunctionRecommendationsCommand;
3440
+
3441
+ // src/commands/GetLicenseRecommendationsCommand.ts
3442
+
3443
+
3444
+
3445
+
3446
+ var _GetLicenseRecommendationsCommand = class _GetLicenseRecommendationsCommand extends import_smithy_client.Command.classBuilder().ep({
3447
+ ...commonParams
3448
+ }).m(function(Command, cs, config, o) {
3449
+ return [
3450
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3451
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3452
+ ];
3453
+ }).s("ComputeOptimizerService", "GetLicenseRecommendations", {}).n("ComputeOptimizerClient", "GetLicenseRecommendationsCommand").f(void 0, void 0).ser(se_GetLicenseRecommendationsCommand).de(de_GetLicenseRecommendationsCommand).build() {
3454
+ };
3455
+ __name(_GetLicenseRecommendationsCommand, "GetLicenseRecommendationsCommand");
3456
+ var GetLicenseRecommendationsCommand = _GetLicenseRecommendationsCommand;
3457
+
3458
+ // src/commands/GetRecommendationPreferencesCommand.ts
3459
+
3460
+
3461
+
3462
+
3463
+ var _GetRecommendationPreferencesCommand = class _GetRecommendationPreferencesCommand extends import_smithy_client.Command.classBuilder().ep({
3464
+ ...commonParams
3465
+ }).m(function(Command, cs, config, o) {
3466
+ return [
3467
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3468
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3469
+ ];
3470
+ }).s("ComputeOptimizerService", "GetRecommendationPreferences", {}).n("ComputeOptimizerClient", "GetRecommendationPreferencesCommand").f(void 0, void 0).ser(se_GetRecommendationPreferencesCommand).de(de_GetRecommendationPreferencesCommand).build() {
3471
+ };
3472
+ __name(_GetRecommendationPreferencesCommand, "GetRecommendationPreferencesCommand");
3473
+ var GetRecommendationPreferencesCommand = _GetRecommendationPreferencesCommand;
3474
+
3475
+ // src/commands/GetRecommendationSummariesCommand.ts
3476
+
3477
+
3478
+
3479
+
3480
+ var _GetRecommendationSummariesCommand = class _GetRecommendationSummariesCommand extends import_smithy_client.Command.classBuilder().ep({
3481
+ ...commonParams
3482
+ }).m(function(Command, cs, config, o) {
3483
+ return [
3484
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3485
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3486
+ ];
3487
+ }).s("ComputeOptimizerService", "GetRecommendationSummaries", {}).n("ComputeOptimizerClient", "GetRecommendationSummariesCommand").f(void 0, void 0).ser(se_GetRecommendationSummariesCommand).de(de_GetRecommendationSummariesCommand).build() {
3488
+ };
3489
+ __name(_GetRecommendationSummariesCommand, "GetRecommendationSummariesCommand");
3490
+ var GetRecommendationSummariesCommand = _GetRecommendationSummariesCommand;
3491
+
3492
+ // src/commands/PutRecommendationPreferencesCommand.ts
3493
+
3494
+
3495
+
3496
+
3497
+ var _PutRecommendationPreferencesCommand = class _PutRecommendationPreferencesCommand extends import_smithy_client.Command.classBuilder().ep({
3498
+ ...commonParams
3499
+ }).m(function(Command, cs, config, o) {
3500
+ return [
3501
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3502
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3503
+ ];
3504
+ }).s("ComputeOptimizerService", "PutRecommendationPreferences", {}).n("ComputeOptimizerClient", "PutRecommendationPreferencesCommand").f(void 0, void 0).ser(se_PutRecommendationPreferencesCommand).de(de_PutRecommendationPreferencesCommand).build() {
3505
+ };
3506
+ __name(_PutRecommendationPreferencesCommand, "PutRecommendationPreferencesCommand");
3507
+ var PutRecommendationPreferencesCommand = _PutRecommendationPreferencesCommand;
3508
+
3509
+ // src/commands/UpdateEnrollmentStatusCommand.ts
3510
+
3511
+
3512
+
3513
+
3514
+ var _UpdateEnrollmentStatusCommand = class _UpdateEnrollmentStatusCommand extends import_smithy_client.Command.classBuilder().ep({
3515
+ ...commonParams
3516
+ }).m(function(Command, cs, config, o) {
3517
+ return [
3518
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3519
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3520
+ ];
3521
+ }).s("ComputeOptimizerService", "UpdateEnrollmentStatus", {}).n("ComputeOptimizerClient", "UpdateEnrollmentStatusCommand").f(void 0, void 0).ser(se_UpdateEnrollmentStatusCommand).de(de_UpdateEnrollmentStatusCommand).build() {
3522
+ };
3523
+ __name(_UpdateEnrollmentStatusCommand, "UpdateEnrollmentStatusCommand");
3524
+ var UpdateEnrollmentStatusCommand = _UpdateEnrollmentStatusCommand;
3525
+
3526
+ // src/ComputeOptimizer.ts
3527
+ var commands = {
3528
+ DeleteRecommendationPreferencesCommand,
3529
+ DescribeRecommendationExportJobsCommand,
3530
+ ExportAutoScalingGroupRecommendationsCommand,
3531
+ ExportEBSVolumeRecommendationsCommand,
3532
+ ExportEC2InstanceRecommendationsCommand,
3533
+ ExportECSServiceRecommendationsCommand,
3534
+ ExportLambdaFunctionRecommendationsCommand,
3535
+ ExportLicenseRecommendationsCommand,
3536
+ GetAutoScalingGroupRecommendationsCommand,
3537
+ GetEBSVolumeRecommendationsCommand,
3538
+ GetEC2InstanceRecommendationsCommand,
3539
+ GetEC2RecommendationProjectedMetricsCommand,
3540
+ GetECSServiceRecommendationProjectedMetricsCommand,
3541
+ GetECSServiceRecommendationsCommand,
3542
+ GetEffectiveRecommendationPreferencesCommand,
3543
+ GetEnrollmentStatusCommand,
3544
+ GetEnrollmentStatusesForOrganizationCommand,
3545
+ GetLambdaFunctionRecommendationsCommand,
3546
+ GetLicenseRecommendationsCommand,
3547
+ GetRecommendationPreferencesCommand,
3548
+ GetRecommendationSummariesCommand,
3549
+ PutRecommendationPreferencesCommand,
3550
+ UpdateEnrollmentStatusCommand
3551
+ };
3552
+ var _ComputeOptimizer = class _ComputeOptimizer extends ComputeOptimizerClient {
3553
+ };
3554
+ __name(_ComputeOptimizer, "ComputeOptimizer");
3555
+ var ComputeOptimizer = _ComputeOptimizer;
3556
+ (0, import_smithy_client.createAggregatedClient)(commands, ComputeOptimizer);
3557
+
3558
+ // src/pagination/DescribeRecommendationExportJobsPaginator.ts
3559
+ var import_core = require("@smithy/core");
3560
+ var paginateDescribeRecommendationExportJobs = (0, import_core.createPaginator)(ComputeOptimizerClient, DescribeRecommendationExportJobsCommand, "nextToken", "nextToken", "maxResults");
3561
+
3562
+ // src/pagination/GetEnrollmentStatusesForOrganizationPaginator.ts
3563
+
3564
+ var paginateGetEnrollmentStatusesForOrganization = (0, import_core.createPaginator)(ComputeOptimizerClient, GetEnrollmentStatusesForOrganizationCommand, "nextToken", "nextToken", "maxResults");
3565
+
3566
+ // src/pagination/GetLambdaFunctionRecommendationsPaginator.ts
3567
+
3568
+ var paginateGetLambdaFunctionRecommendations = (0, import_core.createPaginator)(ComputeOptimizerClient, GetLambdaFunctionRecommendationsCommand, "nextToken", "nextToken", "maxResults");
3569
+
3570
+ // src/pagination/GetRecommendationPreferencesPaginator.ts
3571
+
3572
+ var paginateGetRecommendationPreferences = (0, import_core.createPaginator)(ComputeOptimizerClient, GetRecommendationPreferencesCommand, "nextToken", "nextToken", "maxResults");
3573
+
3574
+ // src/pagination/GetRecommendationSummariesPaginator.ts
3575
+
3576
+ var paginateGetRecommendationSummaries = (0, import_core.createPaginator)(ComputeOptimizerClient, GetRecommendationSummariesCommand, "nextToken", "nextToken", "maxResults");
3577
+
3578
+ // src/index.ts
3579
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
3580
+ // Annotate the CommonJS export names for ESM import in node:
3581
+ 0 && (module.exports = {
3582
+ AccessDeniedException,
3583
+ AutoScalingConfiguration,
3584
+ ComputeOptimizer,
3585
+ ComputeOptimizerClient,
3586
+ ComputeOptimizerServiceException,
3587
+ CpuVendorArchitecture,
3588
+ Currency,
3589
+ CurrentPerformanceRisk,
3590
+ CustomizableMetricHeadroom,
3591
+ CustomizableMetricName,
3592
+ CustomizableMetricThreshold,
3593
+ DeleteRecommendationPreferencesCommand,
3594
+ DescribeRecommendationExportJobsCommand,
3595
+ EBSFilterName,
3596
+ EBSFinding,
3597
+ EBSMetricName,
3598
+ EBSSavingsEstimationModeSource,
3599
+ ECSSavingsEstimationModeSource,
3600
+ ECSServiceLaunchType,
3601
+ ECSServiceMetricName,
3602
+ ECSServiceMetricStatistic,
3603
+ ECSServiceRecommendationFilterName,
3604
+ ECSServiceRecommendationFinding,
3605
+ ECSServiceRecommendationFindingReasonCode,
3606
+ EnhancedInfrastructureMetrics,
3607
+ EnrollmentFilterName,
3608
+ ExportAutoScalingGroupRecommendationsCommand,
3609
+ ExportEBSVolumeRecommendationsCommand,
3610
+ ExportEC2InstanceRecommendationsCommand,
3611
+ ExportECSServiceRecommendationsCommand,
3612
+ ExportLambdaFunctionRecommendationsCommand,
3613
+ ExportLicenseRecommendationsCommand,
3614
+ ExportableAutoScalingGroupField,
3615
+ ExportableECSServiceField,
3616
+ ExportableInstanceField,
3617
+ ExportableLambdaFunctionField,
3618
+ ExportableLicenseField,
3619
+ ExportableVolumeField,
3620
+ ExternalMetricStatusCode,
3621
+ ExternalMetricsSource,
3622
+ FileFormat,
3623
+ FilterName,
3624
+ Finding,
3625
+ FindingReasonCode,
3626
+ GetAutoScalingGroupRecommendationsCommand,
3627
+ GetEBSVolumeRecommendationsCommand,
3628
+ GetEC2InstanceRecommendationsCommand,
3629
+ GetEC2RecommendationProjectedMetricsCommand,
3630
+ GetECSServiceRecommendationProjectedMetricsCommand,
3631
+ GetECSServiceRecommendationsCommand,
3632
+ GetEffectiveRecommendationPreferencesCommand,
3633
+ GetEnrollmentStatusCommand,
3634
+ GetEnrollmentStatusesForOrganizationCommand,
3635
+ GetLambdaFunctionRecommendationsCommand,
3636
+ GetLicenseRecommendationsCommand,
3637
+ GetRecommendationPreferencesCommand,
3638
+ GetRecommendationSummariesCommand,
3639
+ InferredWorkloadType,
3640
+ InferredWorkloadTypesPreference,
3641
+ InstanceIdle,
3642
+ InstanceRecommendationFindingReasonCode,
3643
+ InstanceSavingsEstimationModeSource,
3644
+ InstanceState,
3645
+ InternalServerException,
3646
+ InvalidParameterValueException,
3647
+ JobFilterName,
3648
+ JobStatus,
3649
+ LambdaFunctionMemoryMetricName,
3650
+ LambdaFunctionMemoryMetricStatistic,
3651
+ LambdaFunctionMetricName,
3652
+ LambdaFunctionMetricStatistic,
3653
+ LambdaFunctionRecommendationFilterName,
3654
+ LambdaFunctionRecommendationFinding,
3655
+ LambdaFunctionRecommendationFindingReasonCode,
3656
+ LambdaSavingsEstimationModeSource,
3657
+ LicenseEdition,
3658
+ LicenseFinding,
3659
+ LicenseFindingReasonCode,
3660
+ LicenseModel,
3661
+ LicenseName,
3662
+ LicenseRecommendationFilterName,
3663
+ LimitExceededException,
3664
+ LookBackPeriodPreference,
3665
+ MetricName,
3666
+ MetricSourceProvider,
3667
+ MetricStatistic,
3668
+ MigrationEffort,
3669
+ MissingAuthenticationToken,
3670
+ OptInRequiredException,
3671
+ PlatformDifference,
3672
+ PreferredResourceName,
3673
+ PutRecommendationPreferencesCommand,
3674
+ RecommendationPreferenceName,
3675
+ RecommendationSourceType,
3676
+ ResourceNotFoundException,
3677
+ ResourceType,
3678
+ SavingsEstimationMode,
3679
+ ScopeName,
3680
+ ServiceUnavailableException,
3681
+ Status,
3682
+ ThrottlingException,
3683
+ UpdateEnrollmentStatusCommand,
3684
+ __Client,
3685
+ paginateDescribeRecommendationExportJobs,
3686
+ paginateGetEnrollmentStatusesForOrganization,
3687
+ paginateGetLambdaFunctionRecommendations,
3688
+ paginateGetRecommendationPreferences,
3689
+ paginateGetRecommendationSummaries
3690
+ });