@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
package/protocols/Aws_json1_0.ts
CHANGED
|
@@ -136,9 +136,13 @@ import {
|
|
|
136
136
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
137
137
|
import {
|
|
138
138
|
expectBoolean as __expectBoolean,
|
|
139
|
-
|
|
139
|
+
expectInt32 as __expectInt32,
|
|
140
|
+
expectLong as __expectLong,
|
|
141
|
+
expectNonNull as __expectNonNull,
|
|
142
|
+
expectNumber as __expectNumber,
|
|
140
143
|
expectString as __expectString,
|
|
141
|
-
|
|
144
|
+
limitedParseDouble as __limitedParseDouble,
|
|
145
|
+
parseEpochTimestamp as __parseEpochTimestamp,
|
|
142
146
|
} from "@aws-sdk/smithy-client";
|
|
143
147
|
import {
|
|
144
148
|
Endpoint as __Endpoint,
|
|
@@ -2499,7 +2503,7 @@ const deserializeAws_json1_0AccountEnrollmentStatus = (
|
|
|
2499
2503
|
accountId: __expectString(output.accountId),
|
|
2500
2504
|
lastUpdatedTimestamp:
|
|
2501
2505
|
output.lastUpdatedTimestamp !== undefined && output.lastUpdatedTimestamp !== null
|
|
2502
|
-
?
|
|
2506
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedTimestamp)))
|
|
2503
2507
|
: undefined,
|
|
2504
2508
|
status: __expectString(output.status),
|
|
2505
2509
|
statusReason: __expectString(output.statusReason),
|
|
@@ -2525,10 +2529,10 @@ const deserializeAws_json1_0AutoScalingGroupConfiguration = (
|
|
|
2525
2529
|
context: __SerdeContext
|
|
2526
2530
|
): AutoScalingGroupConfiguration => {
|
|
2527
2531
|
return {
|
|
2528
|
-
desiredCapacity:
|
|
2532
|
+
desiredCapacity: __expectInt32(output.desiredCapacity),
|
|
2529
2533
|
instanceType: __expectString(output.instanceType),
|
|
2530
|
-
maxSize:
|
|
2531
|
-
minSize:
|
|
2534
|
+
maxSize: __expectInt32(output.maxSize),
|
|
2535
|
+
minSize: __expectInt32(output.minSize),
|
|
2532
2536
|
} as any;
|
|
2533
2537
|
};
|
|
2534
2538
|
|
|
@@ -2547,9 +2551,9 @@ const deserializeAws_json1_0AutoScalingGroupRecommendation = (
|
|
|
2547
2551
|
finding: __expectString(output.finding),
|
|
2548
2552
|
lastRefreshTimestamp:
|
|
2549
2553
|
output.lastRefreshTimestamp !== undefined && output.lastRefreshTimestamp !== null
|
|
2550
|
-
?
|
|
2554
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastRefreshTimestamp)))
|
|
2551
2555
|
: undefined,
|
|
2552
|
-
lookBackPeriodInDays:
|
|
2556
|
+
lookBackPeriodInDays: __limitedParseDouble(output.lookBackPeriodInDays),
|
|
2553
2557
|
recommendationOptions:
|
|
2554
2558
|
output.recommendationOptions !== undefined && output.recommendationOptions !== null
|
|
2555
2559
|
? deserializeAws_json1_0AutoScalingGroupRecommendationOptions(output.recommendationOptions, context)
|
|
@@ -2570,12 +2574,12 @@ const deserializeAws_json1_0AutoScalingGroupRecommendationOption = (
|
|
|
2570
2574
|
output.configuration !== undefined && output.configuration !== null
|
|
2571
2575
|
? deserializeAws_json1_0AutoScalingGroupConfiguration(output.configuration, context)
|
|
2572
2576
|
: undefined,
|
|
2573
|
-
performanceRisk:
|
|
2577
|
+
performanceRisk: __limitedParseDouble(output.performanceRisk),
|
|
2574
2578
|
projectedUtilizationMetrics:
|
|
2575
2579
|
output.projectedUtilizationMetrics !== undefined && output.projectedUtilizationMetrics !== null
|
|
2576
2580
|
? deserializeAws_json1_0ProjectedUtilizationMetrics(output.projectedUtilizationMetrics, context)
|
|
2577
2581
|
: undefined,
|
|
2578
|
-
rank:
|
|
2582
|
+
rank: __expectInt32(output.rank),
|
|
2579
2583
|
} as any;
|
|
2580
2584
|
};
|
|
2581
2585
|
|
|
@@ -2624,7 +2628,7 @@ const deserializeAws_json1_0EBSUtilizationMetric = (output: any, context: __Serd
|
|
|
2624
2628
|
return {
|
|
2625
2629
|
name: __expectString(output.name),
|
|
2626
2630
|
statistic: __expectString(output.statistic),
|
|
2627
|
-
value:
|
|
2631
|
+
value: __limitedParseDouble(output.value),
|
|
2628
2632
|
} as any;
|
|
2629
2633
|
};
|
|
2630
2634
|
|
|
@@ -2783,10 +2787,10 @@ const deserializeAws_json1_0GetEnrollmentStatusResponse = (
|
|
|
2783
2787
|
return {
|
|
2784
2788
|
lastUpdatedTimestamp:
|
|
2785
2789
|
output.lastUpdatedTimestamp !== undefined && output.lastUpdatedTimestamp !== null
|
|
2786
|
-
?
|
|
2790
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedTimestamp)))
|
|
2787
2791
|
: undefined,
|
|
2788
2792
|
memberAccountsEnrolled: __expectBoolean(output.memberAccountsEnrolled),
|
|
2789
|
-
numberOfMemberAccountsOptedIn:
|
|
2793
|
+
numberOfMemberAccountsOptedIn: __expectInt32(output.numberOfMemberAccountsOptedIn),
|
|
2790
2794
|
status: __expectString(output.status),
|
|
2791
2795
|
statusReason: __expectString(output.statusReason),
|
|
2792
2796
|
} as any;
|
|
@@ -2853,9 +2857,9 @@ const deserializeAws_json1_0InstanceRecommendation = (output: any, context: __Se
|
|
|
2853
2857
|
instanceName: __expectString(output.instanceName),
|
|
2854
2858
|
lastRefreshTimestamp:
|
|
2855
2859
|
output.lastRefreshTimestamp !== undefined && output.lastRefreshTimestamp !== null
|
|
2856
|
-
?
|
|
2860
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastRefreshTimestamp)))
|
|
2857
2861
|
: undefined,
|
|
2858
|
-
lookBackPeriodInDays:
|
|
2862
|
+
lookBackPeriodInDays: __limitedParseDouble(output.lookBackPeriodInDays),
|
|
2859
2863
|
recommendationOptions:
|
|
2860
2864
|
output.recommendationOptions !== undefined && output.recommendationOptions !== null
|
|
2861
2865
|
? deserializeAws_json1_0RecommendationOptions(output.recommendationOptions, context)
|
|
@@ -2891,7 +2895,7 @@ const deserializeAws_json1_0InstanceRecommendationOption = (
|
|
|
2891
2895
|
): InstanceRecommendationOption => {
|
|
2892
2896
|
return {
|
|
2893
2897
|
instanceType: __expectString(output.instanceType),
|
|
2894
|
-
performanceRisk:
|
|
2898
|
+
performanceRisk: __limitedParseDouble(output.performanceRisk),
|
|
2895
2899
|
platformDifferences:
|
|
2896
2900
|
output.platformDifferences !== undefined && output.platformDifferences !== null
|
|
2897
2901
|
? deserializeAws_json1_0PlatformDifferences(output.platformDifferences, context)
|
|
@@ -2900,7 +2904,7 @@ const deserializeAws_json1_0InstanceRecommendationOption = (
|
|
|
2900
2904
|
output.projectedUtilizationMetrics !== undefined && output.projectedUtilizationMetrics !== null
|
|
2901
2905
|
? deserializeAws_json1_0ProjectedUtilizationMetrics(output.projectedUtilizationMetrics, context)
|
|
2902
2906
|
: undefined,
|
|
2903
|
-
rank:
|
|
2907
|
+
rank: __expectInt32(output.rank),
|
|
2904
2908
|
} as any;
|
|
2905
2909
|
};
|
|
2906
2910
|
|
|
@@ -2943,7 +2947,7 @@ const deserializeAws_json1_0LambdaFunctionMemoryProjectedMetric = (
|
|
|
2943
2947
|
return {
|
|
2944
2948
|
name: __expectString(output.name),
|
|
2945
2949
|
statistic: __expectString(output.statistic),
|
|
2946
|
-
value:
|
|
2950
|
+
value: __limitedParseDouble(output.value),
|
|
2947
2951
|
} as any;
|
|
2948
2952
|
};
|
|
2949
2953
|
|
|
@@ -2966,12 +2970,12 @@ const deserializeAws_json1_0LambdaFunctionMemoryRecommendationOption = (
|
|
|
2966
2970
|
context: __SerdeContext
|
|
2967
2971
|
): LambdaFunctionMemoryRecommendationOption => {
|
|
2968
2972
|
return {
|
|
2969
|
-
memorySize:
|
|
2973
|
+
memorySize: __expectInt32(output.memorySize),
|
|
2970
2974
|
projectedUtilizationMetrics:
|
|
2971
2975
|
output.projectedUtilizationMetrics !== undefined && output.projectedUtilizationMetrics !== null
|
|
2972
2976
|
? deserializeAws_json1_0LambdaFunctionMemoryProjectedMetrics(output.projectedUtilizationMetrics, context)
|
|
2973
2977
|
: undefined,
|
|
2974
|
-
rank:
|
|
2978
|
+
rank: __expectInt32(output.rank),
|
|
2975
2979
|
} as any;
|
|
2976
2980
|
};
|
|
2977
2981
|
|
|
@@ -2995,7 +2999,7 @@ const deserializeAws_json1_0LambdaFunctionRecommendation = (
|
|
|
2995
2999
|
): LambdaFunctionRecommendation => {
|
|
2996
3000
|
return {
|
|
2997
3001
|
accountId: __expectString(output.accountId),
|
|
2998
|
-
currentMemorySize:
|
|
3002
|
+
currentMemorySize: __expectInt32(output.currentMemorySize),
|
|
2999
3003
|
finding: __expectString(output.finding),
|
|
3000
3004
|
findingReasonCodes:
|
|
3001
3005
|
output.findingReasonCodes !== undefined && output.findingReasonCodes !== null
|
|
@@ -3005,9 +3009,9 @@ const deserializeAws_json1_0LambdaFunctionRecommendation = (
|
|
|
3005
3009
|
functionVersion: __expectString(output.functionVersion),
|
|
3006
3010
|
lastRefreshTimestamp:
|
|
3007
3011
|
output.lastRefreshTimestamp !== undefined && output.lastRefreshTimestamp !== null
|
|
3008
|
-
?
|
|
3012
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastRefreshTimestamp)))
|
|
3009
3013
|
: undefined,
|
|
3010
|
-
lookbackPeriodInDays:
|
|
3014
|
+
lookbackPeriodInDays: __limitedParseDouble(output.lookbackPeriodInDays),
|
|
3011
3015
|
memorySizeRecommendationOptions:
|
|
3012
3016
|
output.memorySizeRecommendationOptions !== undefined && output.memorySizeRecommendationOptions !== null
|
|
3013
3017
|
? deserializeAws_json1_0LambdaFunctionMemoryRecommendationOptions(
|
|
@@ -3015,7 +3019,7 @@ const deserializeAws_json1_0LambdaFunctionRecommendation = (
|
|
|
3015
3019
|
context
|
|
3016
3020
|
)
|
|
3017
3021
|
: undefined,
|
|
3018
|
-
numberOfInvocations:
|
|
3022
|
+
numberOfInvocations: __expectLong(output.numberOfInvocations),
|
|
3019
3023
|
utilizationMetrics:
|
|
3020
3024
|
output.utilizationMetrics !== undefined && output.utilizationMetrics !== null
|
|
3021
3025
|
? deserializeAws_json1_0LambdaFunctionUtilizationMetrics(output.utilizationMetrics, context)
|
|
@@ -3058,7 +3062,7 @@ const deserializeAws_json1_0LambdaFunctionUtilizationMetric = (
|
|
|
3058
3062
|
return {
|
|
3059
3063
|
name: __expectString(output.name),
|
|
3060
3064
|
statistic: __expectString(output.statistic),
|
|
3061
|
-
value:
|
|
3065
|
+
value: __limitedParseDouble(output.value),
|
|
3062
3066
|
} as any;
|
|
3063
3067
|
};
|
|
3064
3068
|
|
|
@@ -3089,7 +3093,7 @@ const deserializeAws_json1_0MetricValues = (output: any, context: __SerdeContext
|
|
|
3089
3093
|
if (entry === null) {
|
|
3090
3094
|
return null as any;
|
|
3091
3095
|
}
|
|
3092
|
-
return
|
|
3096
|
+
return __limitedParseDouble(entry) as any;
|
|
3093
3097
|
});
|
|
3094
3098
|
};
|
|
3095
3099
|
|
|
@@ -3175,7 +3179,7 @@ const deserializeAws_json1_0ReasonCodeSummaries = (output: any, context: __Serde
|
|
|
3175
3179
|
const deserializeAws_json1_0ReasonCodeSummary = (output: any, context: __SerdeContext): ReasonCodeSummary => {
|
|
3176
3180
|
return {
|
|
3177
3181
|
name: __expectString(output.name),
|
|
3178
|
-
value:
|
|
3182
|
+
value: __limitedParseDouble(output.value),
|
|
3179
3183
|
} as any;
|
|
3180
3184
|
};
|
|
3181
3185
|
|
|
@@ -3186,7 +3190,7 @@ const deserializeAws_json1_0RecommendationExportJob = (
|
|
|
3186
3190
|
return {
|
|
3187
3191
|
creationTimestamp:
|
|
3188
3192
|
output.creationTimestamp !== undefined && output.creationTimestamp !== null
|
|
3189
|
-
?
|
|
3193
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTimestamp)))
|
|
3190
3194
|
: undefined,
|
|
3191
3195
|
destination:
|
|
3192
3196
|
output.destination !== undefined && output.destination !== null
|
|
@@ -3196,7 +3200,7 @@ const deserializeAws_json1_0RecommendationExportJob = (
|
|
|
3196
3200
|
jobId: __expectString(output.jobId),
|
|
3197
3201
|
lastUpdatedTimestamp:
|
|
3198
3202
|
output.lastUpdatedTimestamp !== undefined && output.lastUpdatedTimestamp !== null
|
|
3199
|
-
?
|
|
3203
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedTimestamp)))
|
|
3200
3204
|
: undefined,
|
|
3201
3205
|
resourceType: __expectString(output.resourceType),
|
|
3202
3206
|
status: __expectString(output.status),
|
|
@@ -3283,7 +3287,7 @@ const deserializeAws_json1_0RecommendedOptionProjectedMetric = (
|
|
|
3283
3287
|
output.projectedMetrics !== undefined && output.projectedMetrics !== null
|
|
3284
3288
|
? deserializeAws_json1_0ProjectedMetrics(output.projectedMetrics, context)
|
|
3285
3289
|
: undefined,
|
|
3286
|
-
rank:
|
|
3290
|
+
rank: __expectInt32(output.rank),
|
|
3287
3291
|
recommendedInstanceType: __expectString(output.recommendedInstanceType),
|
|
3288
3292
|
} as any;
|
|
3289
3293
|
};
|
|
@@ -3346,7 +3350,7 @@ const deserializeAws_json1_0Summary = (output: any, context: __SerdeContext): Su
|
|
|
3346
3350
|
output.reasonCodeSummaries !== undefined && output.reasonCodeSummaries !== null
|
|
3347
3351
|
? deserializeAws_json1_0ReasonCodeSummaries(output.reasonCodeSummaries, context)
|
|
3348
3352
|
: undefined,
|
|
3349
|
-
value:
|
|
3353
|
+
value: __limitedParseDouble(output.value),
|
|
3350
3354
|
} as any;
|
|
3351
3355
|
};
|
|
3352
3356
|
|
|
@@ -3363,7 +3367,7 @@ const deserializeAws_json1_0Timestamps = (output: any, context: __SerdeContext):
|
|
|
3363
3367
|
if (entry === null) {
|
|
3364
3368
|
return null as any;
|
|
3365
3369
|
}
|
|
3366
|
-
return
|
|
3370
|
+
return __expectNonNull(__parseEpochTimestamp(__expectNumber(entry)));
|
|
3367
3371
|
});
|
|
3368
3372
|
};
|
|
3369
3373
|
|
|
@@ -3381,7 +3385,7 @@ const deserializeAws_json1_0UtilizationMetric = (output: any, context: __SerdeCo
|
|
|
3381
3385
|
return {
|
|
3382
3386
|
name: __expectString(output.name),
|
|
3383
3387
|
statistic: __expectString(output.statistic),
|
|
3384
|
-
value:
|
|
3388
|
+
value: __limitedParseDouble(output.value),
|
|
3385
3389
|
} as any;
|
|
3386
3390
|
};
|
|
3387
3391
|
|
|
@@ -3398,11 +3402,11 @@ const deserializeAws_json1_0UtilizationMetrics = (output: any, context: __SerdeC
|
|
|
3398
3402
|
|
|
3399
3403
|
const deserializeAws_json1_0VolumeConfiguration = (output: any, context: __SerdeContext): VolumeConfiguration => {
|
|
3400
3404
|
return {
|
|
3401
|
-
volumeBaselineIOPS:
|
|
3402
|
-
volumeBaselineThroughput:
|
|
3403
|
-
volumeBurstIOPS:
|
|
3404
|
-
volumeBurstThroughput:
|
|
3405
|
-
volumeSize:
|
|
3405
|
+
volumeBaselineIOPS: __expectInt32(output.volumeBaselineIOPS),
|
|
3406
|
+
volumeBaselineThroughput: __expectInt32(output.volumeBaselineThroughput),
|
|
3407
|
+
volumeBurstIOPS: __expectInt32(output.volumeBurstIOPS),
|
|
3408
|
+
volumeBurstThroughput: __expectInt32(output.volumeBurstThroughput),
|
|
3409
|
+
volumeSize: __expectInt32(output.volumeSize),
|
|
3406
3410
|
volumeType: __expectString(output.volumeType),
|
|
3407
3411
|
} as any;
|
|
3408
3412
|
};
|
|
@@ -3417,9 +3421,9 @@ const deserializeAws_json1_0VolumeRecommendation = (output: any, context: __Serd
|
|
|
3417
3421
|
finding: __expectString(output.finding),
|
|
3418
3422
|
lastRefreshTimestamp:
|
|
3419
3423
|
output.lastRefreshTimestamp !== undefined && output.lastRefreshTimestamp !== null
|
|
3420
|
-
?
|
|
3424
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastRefreshTimestamp)))
|
|
3421
3425
|
: undefined,
|
|
3422
|
-
lookBackPeriodInDays:
|
|
3426
|
+
lookBackPeriodInDays: __limitedParseDouble(output.lookBackPeriodInDays),
|
|
3423
3427
|
utilizationMetrics:
|
|
3424
3428
|
output.utilizationMetrics !== undefined && output.utilizationMetrics !== null
|
|
3425
3429
|
? deserializeAws_json1_0EBSUtilizationMetrics(output.utilizationMetrics, context)
|
|
@@ -3441,8 +3445,8 @@ const deserializeAws_json1_0VolumeRecommendationOption = (
|
|
|
3441
3445
|
output.configuration !== undefined && output.configuration !== null
|
|
3442
3446
|
? deserializeAws_json1_0VolumeConfiguration(output.configuration, context)
|
|
3443
3447
|
: undefined,
|
|
3444
|
-
performanceRisk:
|
|
3445
|
-
rank:
|
|
3448
|
+
performanceRisk: __limitedParseDouble(output.performanceRisk),
|
|
3449
|
+
rank: __expectInt32(output.rank),
|
|
3446
3450
|
} as any;
|
|
3447
3451
|
};
|
|
3448
3452
|
|