@aws-sdk/client-compute-optimizer 3.28.0 → 3.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/dist/cjs/package.json +31 -31
- package/dist/cjs/protocols/Aws_json1_0.js +40 -40
- package/dist/cjs/protocols/Aws_json1_0.js.map +1 -1
- package/dist/es/endpoints.js +1 -2
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/package.json +31 -31
- package/dist/es/protocols/Aws_json1_0.js +41 -41
- package/dist/es/protocols/Aws_json1_0.js.map +1 -1
- package/dist/types/models/models_0.d.ts +2 -2
- package/dist/types/ts3.4/models/models_0.d.ts +2 -2
- package/models/models_0.ts +2 -2
- package/package.json +31 -31
- package/protocols/Aws_json1_0.ts +46 -42
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectBoolean as __expectBoolean,
|
|
3
|
+
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
4
4
|
export var serializeAws_json1_0DescribeRecommendationExportJobsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
5
|
var headers, body;
|
|
6
6
|
return __generator(this, function (_a) {
|
|
@@ -2074,7 +2074,7 @@ var deserializeAws_json1_0AccountEnrollmentStatus = function (output, context) {
|
|
|
2074
2074
|
return {
|
|
2075
2075
|
accountId: __expectString(output.accountId),
|
|
2076
2076
|
lastUpdatedTimestamp: output.lastUpdatedTimestamp !== undefined && output.lastUpdatedTimestamp !== null
|
|
2077
|
-
?
|
|
2077
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedTimestamp)))
|
|
2078
2078
|
: undefined,
|
|
2079
2079
|
status: __expectString(output.status),
|
|
2080
2080
|
statusReason: __expectString(output.statusReason),
|
|
@@ -2092,10 +2092,10 @@ var deserializeAws_json1_0AccountEnrollmentStatuses = function (output, context)
|
|
|
2092
2092
|
};
|
|
2093
2093
|
var deserializeAws_json1_0AutoScalingGroupConfiguration = function (output, context) {
|
|
2094
2094
|
return {
|
|
2095
|
-
desiredCapacity:
|
|
2095
|
+
desiredCapacity: __expectInt32(output.desiredCapacity),
|
|
2096
2096
|
instanceType: __expectString(output.instanceType),
|
|
2097
|
-
maxSize:
|
|
2098
|
-
minSize:
|
|
2097
|
+
maxSize: __expectInt32(output.maxSize),
|
|
2098
|
+
minSize: __expectInt32(output.minSize),
|
|
2099
2099
|
};
|
|
2100
2100
|
};
|
|
2101
2101
|
var deserializeAws_json1_0AutoScalingGroupRecommendation = function (output, context) {
|
|
@@ -2108,9 +2108,9 @@ var deserializeAws_json1_0AutoScalingGroupRecommendation = function (output, con
|
|
|
2108
2108
|
: undefined,
|
|
2109
2109
|
finding: __expectString(output.finding),
|
|
2110
2110
|
lastRefreshTimestamp: output.lastRefreshTimestamp !== undefined && output.lastRefreshTimestamp !== null
|
|
2111
|
-
?
|
|
2111
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastRefreshTimestamp)))
|
|
2112
2112
|
: undefined,
|
|
2113
|
-
lookBackPeriodInDays:
|
|
2113
|
+
lookBackPeriodInDays: __limitedParseDouble(output.lookBackPeriodInDays),
|
|
2114
2114
|
recommendationOptions: output.recommendationOptions !== undefined && output.recommendationOptions !== null
|
|
2115
2115
|
? deserializeAws_json1_0AutoScalingGroupRecommendationOptions(output.recommendationOptions, context)
|
|
2116
2116
|
: undefined,
|
|
@@ -2124,11 +2124,11 @@ var deserializeAws_json1_0AutoScalingGroupRecommendationOption = function (outpu
|
|
|
2124
2124
|
configuration: output.configuration !== undefined && output.configuration !== null
|
|
2125
2125
|
? deserializeAws_json1_0AutoScalingGroupConfiguration(output.configuration, context)
|
|
2126
2126
|
: undefined,
|
|
2127
|
-
performanceRisk:
|
|
2127
|
+
performanceRisk: __limitedParseDouble(output.performanceRisk),
|
|
2128
2128
|
projectedUtilizationMetrics: output.projectedUtilizationMetrics !== undefined && output.projectedUtilizationMetrics !== null
|
|
2129
2129
|
? deserializeAws_json1_0ProjectedUtilizationMetrics(output.projectedUtilizationMetrics, context)
|
|
2130
2130
|
: undefined,
|
|
2131
|
-
rank:
|
|
2131
|
+
rank: __expectInt32(output.rank),
|
|
2132
2132
|
};
|
|
2133
2133
|
};
|
|
2134
2134
|
var deserializeAws_json1_0AutoScalingGroupRecommendationOptions = function (output, context) {
|
|
@@ -2163,7 +2163,7 @@ var deserializeAws_json1_0EBSUtilizationMetric = function (output, context) {
|
|
|
2163
2163
|
return {
|
|
2164
2164
|
name: __expectString(output.name),
|
|
2165
2165
|
statistic: __expectString(output.statistic),
|
|
2166
|
-
value:
|
|
2166
|
+
value: __limitedParseDouble(output.value),
|
|
2167
2167
|
};
|
|
2168
2168
|
};
|
|
2169
2169
|
var deserializeAws_json1_0EBSUtilizationMetrics = function (output, context) {
|
|
@@ -2266,10 +2266,10 @@ var deserializeAws_json1_0GetEnrollmentStatusesForOrganizationResponse = functio
|
|
|
2266
2266
|
var deserializeAws_json1_0GetEnrollmentStatusResponse = function (output, context) {
|
|
2267
2267
|
return {
|
|
2268
2268
|
lastUpdatedTimestamp: output.lastUpdatedTimestamp !== undefined && output.lastUpdatedTimestamp !== null
|
|
2269
|
-
?
|
|
2269
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedTimestamp)))
|
|
2270
2270
|
: undefined,
|
|
2271
2271
|
memberAccountsEnrolled: __expectBoolean(output.memberAccountsEnrolled),
|
|
2272
|
-
numberOfMemberAccountsOptedIn:
|
|
2272
|
+
numberOfMemberAccountsOptedIn: __expectInt32(output.numberOfMemberAccountsOptedIn),
|
|
2273
2273
|
status: __expectString(output.status),
|
|
2274
2274
|
statusReason: __expectString(output.statusReason),
|
|
2275
2275
|
};
|
|
@@ -2318,9 +2318,9 @@ var deserializeAws_json1_0InstanceRecommendation = function (output, context) {
|
|
|
2318
2318
|
instanceArn: __expectString(output.instanceArn),
|
|
2319
2319
|
instanceName: __expectString(output.instanceName),
|
|
2320
2320
|
lastRefreshTimestamp: output.lastRefreshTimestamp !== undefined && output.lastRefreshTimestamp !== null
|
|
2321
|
-
?
|
|
2321
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastRefreshTimestamp)))
|
|
2322
2322
|
: undefined,
|
|
2323
|
-
lookBackPeriodInDays:
|
|
2323
|
+
lookBackPeriodInDays: __limitedParseDouble(output.lookBackPeriodInDays),
|
|
2324
2324
|
recommendationOptions: output.recommendationOptions !== undefined && output.recommendationOptions !== null
|
|
2325
2325
|
? deserializeAws_json1_0RecommendationOptions(output.recommendationOptions, context)
|
|
2326
2326
|
: undefined,
|
|
@@ -2345,14 +2345,14 @@ var deserializeAws_json1_0InstanceRecommendationFindingReasonCodes = function (o
|
|
|
2345
2345
|
var deserializeAws_json1_0InstanceRecommendationOption = function (output, context) {
|
|
2346
2346
|
return {
|
|
2347
2347
|
instanceType: __expectString(output.instanceType),
|
|
2348
|
-
performanceRisk:
|
|
2348
|
+
performanceRisk: __limitedParseDouble(output.performanceRisk),
|
|
2349
2349
|
platformDifferences: output.platformDifferences !== undefined && output.platformDifferences !== null
|
|
2350
2350
|
? deserializeAws_json1_0PlatformDifferences(output.platformDifferences, context)
|
|
2351
2351
|
: undefined,
|
|
2352
2352
|
projectedUtilizationMetrics: output.projectedUtilizationMetrics !== undefined && output.projectedUtilizationMetrics !== null
|
|
2353
2353
|
? deserializeAws_json1_0ProjectedUtilizationMetrics(output.projectedUtilizationMetrics, context)
|
|
2354
2354
|
: undefined,
|
|
2355
|
-
rank:
|
|
2355
|
+
rank: __expectInt32(output.rank),
|
|
2356
2356
|
};
|
|
2357
2357
|
};
|
|
2358
2358
|
var deserializeAws_json1_0InstanceRecommendations = function (output, context) {
|
|
@@ -2379,7 +2379,7 @@ var deserializeAws_json1_0LambdaFunctionMemoryProjectedMetric = function (output
|
|
|
2379
2379
|
return {
|
|
2380
2380
|
name: __expectString(output.name),
|
|
2381
2381
|
statistic: __expectString(output.statistic),
|
|
2382
|
-
value:
|
|
2382
|
+
value: __limitedParseDouble(output.value),
|
|
2383
2383
|
};
|
|
2384
2384
|
};
|
|
2385
2385
|
var deserializeAws_json1_0LambdaFunctionMemoryProjectedMetrics = function (output, context) {
|
|
@@ -2394,11 +2394,11 @@ var deserializeAws_json1_0LambdaFunctionMemoryProjectedMetrics = function (outpu
|
|
|
2394
2394
|
};
|
|
2395
2395
|
var deserializeAws_json1_0LambdaFunctionMemoryRecommendationOption = function (output, context) {
|
|
2396
2396
|
return {
|
|
2397
|
-
memorySize:
|
|
2397
|
+
memorySize: __expectInt32(output.memorySize),
|
|
2398
2398
|
projectedUtilizationMetrics: output.projectedUtilizationMetrics !== undefined && output.projectedUtilizationMetrics !== null
|
|
2399
2399
|
? deserializeAws_json1_0LambdaFunctionMemoryProjectedMetrics(output.projectedUtilizationMetrics, context)
|
|
2400
2400
|
: undefined,
|
|
2401
|
-
rank:
|
|
2401
|
+
rank: __expectInt32(output.rank),
|
|
2402
2402
|
};
|
|
2403
2403
|
};
|
|
2404
2404
|
var deserializeAws_json1_0LambdaFunctionMemoryRecommendationOptions = function (output, context) {
|
|
@@ -2414,7 +2414,7 @@ var deserializeAws_json1_0LambdaFunctionMemoryRecommendationOptions = function (
|
|
|
2414
2414
|
var deserializeAws_json1_0LambdaFunctionRecommendation = function (output, context) {
|
|
2415
2415
|
return {
|
|
2416
2416
|
accountId: __expectString(output.accountId),
|
|
2417
|
-
currentMemorySize:
|
|
2417
|
+
currentMemorySize: __expectInt32(output.currentMemorySize),
|
|
2418
2418
|
finding: __expectString(output.finding),
|
|
2419
2419
|
findingReasonCodes: output.findingReasonCodes !== undefined && output.findingReasonCodes !== null
|
|
2420
2420
|
? deserializeAws_json1_0LambdaFunctionRecommendationFindingReasonCodes(output.findingReasonCodes, context)
|
|
@@ -2422,13 +2422,13 @@ var deserializeAws_json1_0LambdaFunctionRecommendation = function (output, conte
|
|
|
2422
2422
|
functionArn: __expectString(output.functionArn),
|
|
2423
2423
|
functionVersion: __expectString(output.functionVersion),
|
|
2424
2424
|
lastRefreshTimestamp: output.lastRefreshTimestamp !== undefined && output.lastRefreshTimestamp !== null
|
|
2425
|
-
?
|
|
2425
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastRefreshTimestamp)))
|
|
2426
2426
|
: undefined,
|
|
2427
|
-
lookbackPeriodInDays:
|
|
2427
|
+
lookbackPeriodInDays: __limitedParseDouble(output.lookbackPeriodInDays),
|
|
2428
2428
|
memorySizeRecommendationOptions: output.memorySizeRecommendationOptions !== undefined && output.memorySizeRecommendationOptions !== null
|
|
2429
2429
|
? deserializeAws_json1_0LambdaFunctionMemoryRecommendationOptions(output.memorySizeRecommendationOptions, context)
|
|
2430
2430
|
: undefined,
|
|
2431
|
-
numberOfInvocations:
|
|
2431
|
+
numberOfInvocations: __expectLong(output.numberOfInvocations),
|
|
2432
2432
|
utilizationMetrics: output.utilizationMetrics !== undefined && output.utilizationMetrics !== null
|
|
2433
2433
|
? deserializeAws_json1_0LambdaFunctionUtilizationMetrics(output.utilizationMetrics, context)
|
|
2434
2434
|
: undefined,
|
|
@@ -2458,7 +2458,7 @@ var deserializeAws_json1_0LambdaFunctionUtilizationMetric = function (output, co
|
|
|
2458
2458
|
return {
|
|
2459
2459
|
name: __expectString(output.name),
|
|
2460
2460
|
statistic: __expectString(output.statistic),
|
|
2461
|
-
value:
|
|
2461
|
+
value: __limitedParseDouble(output.value),
|
|
2462
2462
|
};
|
|
2463
2463
|
};
|
|
2464
2464
|
var deserializeAws_json1_0LambdaFunctionUtilizationMetrics = function (output, context) {
|
|
@@ -2483,7 +2483,7 @@ var deserializeAws_json1_0MetricValues = function (output, context) {
|
|
|
2483
2483
|
if (entry === null) {
|
|
2484
2484
|
return null;
|
|
2485
2485
|
}
|
|
2486
|
-
return
|
|
2486
|
+
return __limitedParseDouble(entry);
|
|
2487
2487
|
});
|
|
2488
2488
|
};
|
|
2489
2489
|
var deserializeAws_json1_0MissingAuthenticationToken = function (output, context) {
|
|
@@ -2550,13 +2550,13 @@ var deserializeAws_json1_0ReasonCodeSummaries = function (output, context) {
|
|
|
2550
2550
|
var deserializeAws_json1_0ReasonCodeSummary = function (output, context) {
|
|
2551
2551
|
return {
|
|
2552
2552
|
name: __expectString(output.name),
|
|
2553
|
-
value:
|
|
2553
|
+
value: __limitedParseDouble(output.value),
|
|
2554
2554
|
};
|
|
2555
2555
|
};
|
|
2556
2556
|
var deserializeAws_json1_0RecommendationExportJob = function (output, context) {
|
|
2557
2557
|
return {
|
|
2558
2558
|
creationTimestamp: output.creationTimestamp !== undefined && output.creationTimestamp !== null
|
|
2559
|
-
?
|
|
2559
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTimestamp)))
|
|
2560
2560
|
: undefined,
|
|
2561
2561
|
destination: output.destination !== undefined && output.destination !== null
|
|
2562
2562
|
? deserializeAws_json1_0ExportDestination(output.destination, context)
|
|
@@ -2564,7 +2564,7 @@ var deserializeAws_json1_0RecommendationExportJob = function (output, context) {
|
|
|
2564
2564
|
failureReason: __expectString(output.failureReason),
|
|
2565
2565
|
jobId: __expectString(output.jobId),
|
|
2566
2566
|
lastUpdatedTimestamp: output.lastUpdatedTimestamp !== undefined && output.lastUpdatedTimestamp !== null
|
|
2567
|
-
?
|
|
2567
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedTimestamp)))
|
|
2568
2568
|
: undefined,
|
|
2569
2569
|
resourceType: __expectString(output.resourceType),
|
|
2570
2570
|
status: __expectString(output.status),
|
|
@@ -2630,7 +2630,7 @@ var deserializeAws_json1_0RecommendedOptionProjectedMetric = function (output, c
|
|
|
2630
2630
|
projectedMetrics: output.projectedMetrics !== undefined && output.projectedMetrics !== null
|
|
2631
2631
|
? deserializeAws_json1_0ProjectedMetrics(output.projectedMetrics, context)
|
|
2632
2632
|
: undefined,
|
|
2633
|
-
rank:
|
|
2633
|
+
rank: __expectInt32(output.rank),
|
|
2634
2634
|
recommendedInstanceType: __expectString(output.recommendedInstanceType),
|
|
2635
2635
|
};
|
|
2636
2636
|
};
|
|
@@ -2677,7 +2677,7 @@ var deserializeAws_json1_0Summary = function (output, context) {
|
|
|
2677
2677
|
reasonCodeSummaries: output.reasonCodeSummaries !== undefined && output.reasonCodeSummaries !== null
|
|
2678
2678
|
? deserializeAws_json1_0ReasonCodeSummaries(output.reasonCodeSummaries, context)
|
|
2679
2679
|
: undefined,
|
|
2680
|
-
value:
|
|
2680
|
+
value: __limitedParseDouble(output.value),
|
|
2681
2681
|
};
|
|
2682
2682
|
};
|
|
2683
2683
|
var deserializeAws_json1_0ThrottlingException = function (output, context) {
|
|
@@ -2692,7 +2692,7 @@ var deserializeAws_json1_0Timestamps = function (output, context) {
|
|
|
2692
2692
|
if (entry === null) {
|
|
2693
2693
|
return null;
|
|
2694
2694
|
}
|
|
2695
|
-
return
|
|
2695
|
+
return __expectNonNull(__parseEpochTimestamp(__expectNumber(entry)));
|
|
2696
2696
|
});
|
|
2697
2697
|
};
|
|
2698
2698
|
var deserializeAws_json1_0UpdateEnrollmentStatusResponse = function (output, context) {
|
|
@@ -2705,7 +2705,7 @@ var deserializeAws_json1_0UtilizationMetric = function (output, context) {
|
|
|
2705
2705
|
return {
|
|
2706
2706
|
name: __expectString(output.name),
|
|
2707
2707
|
statistic: __expectString(output.statistic),
|
|
2708
|
-
value:
|
|
2708
|
+
value: __limitedParseDouble(output.value),
|
|
2709
2709
|
};
|
|
2710
2710
|
};
|
|
2711
2711
|
var deserializeAws_json1_0UtilizationMetrics = function (output, context) {
|
|
@@ -2720,11 +2720,11 @@ var deserializeAws_json1_0UtilizationMetrics = function (output, context) {
|
|
|
2720
2720
|
};
|
|
2721
2721
|
var deserializeAws_json1_0VolumeConfiguration = function (output, context) {
|
|
2722
2722
|
return {
|
|
2723
|
-
volumeBaselineIOPS:
|
|
2724
|
-
volumeBaselineThroughput:
|
|
2725
|
-
volumeBurstIOPS:
|
|
2726
|
-
volumeBurstThroughput:
|
|
2727
|
-
volumeSize:
|
|
2723
|
+
volumeBaselineIOPS: __expectInt32(output.volumeBaselineIOPS),
|
|
2724
|
+
volumeBaselineThroughput: __expectInt32(output.volumeBaselineThroughput),
|
|
2725
|
+
volumeBurstIOPS: __expectInt32(output.volumeBurstIOPS),
|
|
2726
|
+
volumeBurstThroughput: __expectInt32(output.volumeBurstThroughput),
|
|
2727
|
+
volumeSize: __expectInt32(output.volumeSize),
|
|
2728
2728
|
volumeType: __expectString(output.volumeType),
|
|
2729
2729
|
};
|
|
2730
2730
|
};
|
|
@@ -2736,9 +2736,9 @@ var deserializeAws_json1_0VolumeRecommendation = function (output, context) {
|
|
|
2736
2736
|
: undefined,
|
|
2737
2737
|
finding: __expectString(output.finding),
|
|
2738
2738
|
lastRefreshTimestamp: output.lastRefreshTimestamp !== undefined && output.lastRefreshTimestamp !== null
|
|
2739
|
-
?
|
|
2739
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastRefreshTimestamp)))
|
|
2740
2740
|
: undefined,
|
|
2741
|
-
lookBackPeriodInDays:
|
|
2741
|
+
lookBackPeriodInDays: __limitedParseDouble(output.lookBackPeriodInDays),
|
|
2742
2742
|
utilizationMetrics: output.utilizationMetrics !== undefined && output.utilizationMetrics !== null
|
|
2743
2743
|
? deserializeAws_json1_0EBSUtilizationMetrics(output.utilizationMetrics, context)
|
|
2744
2744
|
: undefined,
|
|
@@ -2753,8 +2753,8 @@ var deserializeAws_json1_0VolumeRecommendationOption = function (output, context
|
|
|
2753
2753
|
configuration: output.configuration !== undefined && output.configuration !== null
|
|
2754
2754
|
? deserializeAws_json1_0VolumeConfiguration(output.configuration, context)
|
|
2755
2755
|
: undefined,
|
|
2756
|
-
performanceRisk:
|
|
2757
|
-
rank:
|
|
2756
|
+
performanceRisk: __limitedParseDouble(output.performanceRisk),
|
|
2757
|
+
rank: __expectInt32(output.rank),
|
|
2758
2758
|
};
|
|
2759
2759
|
};
|
|
2760
2760
|
var deserializeAws_json1_0VolumeRecommendationOptions = function (output, context) {
|