@aws-sdk/client-compute-optimizer 3.30.0 → 3.34.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/ComputeOptimizerClient.js +13 -13
- package/dist/cjs/ComputeOptimizerClient.js.map +1 -1
- package/dist/cjs/commands/DescribeRecommendationExportJobsCommand.js +3 -3
- package/dist/cjs/commands/DescribeRecommendationExportJobsCommand.js.map +1 -1
- package/dist/cjs/commands/ExportAutoScalingGroupRecommendationsCommand.js +3 -3
- package/dist/cjs/commands/ExportAutoScalingGroupRecommendationsCommand.js.map +1 -1
- package/dist/cjs/commands/ExportEBSVolumeRecommendationsCommand.js +3 -3
- package/dist/cjs/commands/ExportEBSVolumeRecommendationsCommand.js.map +1 -1
- package/dist/cjs/commands/ExportEC2InstanceRecommendationsCommand.js +3 -3
- package/dist/cjs/commands/ExportEC2InstanceRecommendationsCommand.js.map +1 -1
- package/dist/cjs/commands/ExportLambdaFunctionRecommendationsCommand.js +3 -3
- package/dist/cjs/commands/ExportLambdaFunctionRecommendationsCommand.js.map +1 -1
- package/dist/cjs/commands/GetAutoScalingGroupRecommendationsCommand.js +3 -3
- package/dist/cjs/commands/GetAutoScalingGroupRecommendationsCommand.js.map +1 -1
- package/dist/cjs/commands/GetEBSVolumeRecommendationsCommand.js +3 -3
- package/dist/cjs/commands/GetEBSVolumeRecommendationsCommand.js.map +1 -1
- package/dist/cjs/commands/GetEC2InstanceRecommendationsCommand.js +3 -3
- package/dist/cjs/commands/GetEC2InstanceRecommendationsCommand.js.map +1 -1
- package/dist/cjs/commands/GetEC2RecommendationProjectedMetricsCommand.js +3 -3
- package/dist/cjs/commands/GetEC2RecommendationProjectedMetricsCommand.js.map +1 -1
- package/dist/cjs/commands/GetEnrollmentStatusCommand.js +3 -3
- package/dist/cjs/commands/GetEnrollmentStatusCommand.js.map +1 -1
- package/dist/cjs/commands/GetEnrollmentStatusesForOrganizationCommand.js +3 -3
- package/dist/cjs/commands/GetEnrollmentStatusesForOrganizationCommand.js.map +1 -1
- package/dist/cjs/commands/GetLambdaFunctionRecommendationsCommand.js +3 -3
- package/dist/cjs/commands/GetLambdaFunctionRecommendationsCommand.js.map +1 -1
- package/dist/cjs/commands/GetRecommendationSummariesCommand.js +3 -3
- package/dist/cjs/commands/GetRecommendationSummariesCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateEnrollmentStatusCommand.js +3 -3
- package/dist/cjs/commands/UpdateEnrollmentStatusCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +17 -17
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/package.json +39 -39
- package/dist/cjs/protocols/Aws_json1_0.js +116 -116
- package/dist/cjs/protocols/Aws_json1_0.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/es/ComputeOptimizer.js +1 -14
- package/dist/es/ComputeOptimizer.js.map +1 -1
- package/dist/es/ComputeOptimizerClient.js +1 -19
- package/dist/es/ComputeOptimizerClient.js.map +1 -1
- package/dist/es/commands/DescribeRecommendationExportJobsCommand.js +2 -31
- package/dist/es/commands/DescribeRecommendationExportJobsCommand.js.map +1 -1
- package/dist/es/commands/ExportAutoScalingGroupRecommendationsCommand.js +2 -34
- package/dist/es/commands/ExportAutoScalingGroupRecommendationsCommand.js.map +1 -1
- package/dist/es/commands/ExportEBSVolumeRecommendationsCommand.js +2 -35
- package/dist/es/commands/ExportEBSVolumeRecommendationsCommand.js.map +1 -1
- package/dist/es/commands/ExportEC2InstanceRecommendationsCommand.js +2 -35
- package/dist/es/commands/ExportEC2InstanceRecommendationsCommand.js.map +1 -1
- package/dist/es/commands/ExportLambdaFunctionRecommendationsCommand.js +2 -35
- package/dist/es/commands/ExportLambdaFunctionRecommendationsCommand.js.map +1 -1
- package/dist/es/commands/GetAutoScalingGroupRecommendationsCommand.js +2 -32
- package/dist/es/commands/GetAutoScalingGroupRecommendationsCommand.js.map +1 -1
- package/dist/es/commands/GetEBSVolumeRecommendationsCommand.js +2 -32
- package/dist/es/commands/GetEBSVolumeRecommendationsCommand.js.map +1 -1
- package/dist/es/commands/GetEC2InstanceRecommendationsCommand.js +2 -32
- package/dist/es/commands/GetEC2InstanceRecommendationsCommand.js.map +1 -1
- package/dist/es/commands/GetEC2RecommendationProjectedMetricsCommand.js +2 -35
- package/dist/es/commands/GetEC2RecommendationProjectedMetricsCommand.js.map +1 -1
- package/dist/es/commands/GetEnrollmentStatusCommand.js +2 -32
- package/dist/es/commands/GetEnrollmentStatusCommand.js.map +1 -1
- package/dist/es/commands/GetEnrollmentStatusesForOrganizationCommand.js +2 -30
- package/dist/es/commands/GetEnrollmentStatusesForOrganizationCommand.js.map +1 -1
- package/dist/es/commands/GetLambdaFunctionRecommendationsCommand.js +2 -32
- package/dist/es/commands/GetLambdaFunctionRecommendationsCommand.js.map +1 -1
- package/dist/es/commands/GetRecommendationSummariesCommand.js +2 -49
- package/dist/es/commands/GetRecommendationSummariesCommand.js.map +1 -1
- package/dist/es/commands/UpdateEnrollmentStatusCommand.js +2 -37
- package/dist/es/commands/UpdateEnrollmentStatusCommand.js.map +1 -1
- package/dist/es/endpoints.js +1 -1
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +0 -207
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +39 -39
- package/dist/es/protocols/Aws_json1_0.js +539 -544
- package/dist/es/protocols/Aws_json1_0.js.map +1 -1
- package/dist/es/runtimeConfig.browser.js +0 -3
- package/dist/es/runtimeConfig.browser.js.map +1 -1
- package/dist/es/runtimeConfig.js +0 -3
- package/dist/es/runtimeConfig.js.map +1 -1
- package/dist/es/runtimeConfig.native.js +0 -3
- package/dist/es/runtimeConfig.native.js.map +1 -1
- package/dist/es/runtimeConfig.shared.js +0 -3
- package/dist/es/runtimeConfig.shared.js.map +1 -1
- package/dist/types/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/runtimeConfig.d.ts +3 -0
- package/dist/types/runtimeConfig.native.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.d.ts +3 -0
- package/dist/types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +39 -39
- package/protocols/Aws_json1_0.ts +12 -9
- package/tsconfig.es.json +0 -2
- package/tsconfig.json +3 -5
- package/tsconfig.types.json +8 -0
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-compute-optimizer",
|
|
3
3
|
"description": "AWS SDK for JavaScript Compute Optimizer Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.34.0",
|
|
5
5
|
"scripts": {
|
|
6
|
-
"
|
|
7
|
-
"build-documentation": "yarn remove-documentation && typedoc ./",
|
|
8
|
-
"remove-definitions": "rimraf ./types",
|
|
9
|
-
"remove-dist": "rimraf ./dist",
|
|
10
|
-
"remove-documentation": "rimraf ./docs",
|
|
11
|
-
"test": "exit 0",
|
|
6
|
+
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
12
7
|
"build:cjs": "tsc -p tsconfig.json",
|
|
8
|
+
"build:docs": "yarn clean:docs && typedoc ./",
|
|
13
9
|
"build:es": "tsc -p tsconfig.es.json",
|
|
14
|
-
"build": "
|
|
15
|
-
"
|
|
10
|
+
"build:types": "tsc -p tsconfig.types.json",
|
|
11
|
+
"clean": "yarn clean:dist && yarn clean:docs",
|
|
12
|
+
"clean:dist": "rimraf ./dist",
|
|
13
|
+
"clean:docs": "rimraf ./docs",
|
|
14
|
+
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4",
|
|
15
|
+
"test": "exit 0"
|
|
16
16
|
},
|
|
17
17
|
"main": "./dist/cjs/index.js",
|
|
18
18
|
"types": "./dist/types/index.d.ts",
|
|
@@ -27,45 +27,45 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@aws-crypto/sha256-browser": "^1.0.0",
|
|
29
29
|
"@aws-crypto/sha256-js": "^1.0.0",
|
|
30
|
-
"@aws-sdk/client-sts": "3.
|
|
31
|
-
"@aws-sdk/config-resolver": "3.
|
|
32
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
33
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
34
|
-
"@aws-sdk/hash-node": "3.
|
|
35
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
36
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
37
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
38
|
-
"@aws-sdk/middleware-logger": "3.
|
|
39
|
-
"@aws-sdk/middleware-retry": "3.
|
|
40
|
-
"@aws-sdk/middleware-serde": "3.
|
|
41
|
-
"@aws-sdk/middleware-signing": "3.
|
|
42
|
-
"@aws-sdk/middleware-stack": "3.
|
|
43
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
44
|
-
"@aws-sdk/node-config-provider": "3.
|
|
45
|
-
"@aws-sdk/node-http-handler": "3.
|
|
46
|
-
"@aws-sdk/protocol-http": "3.
|
|
47
|
-
"@aws-sdk/smithy-client": "3.
|
|
48
|
-
"@aws-sdk/types": "3.
|
|
49
|
-
"@aws-sdk/url-parser": "3.
|
|
50
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
51
|
-
"@aws-sdk/util-base64-node": "3.
|
|
52
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
53
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
55
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
56
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
57
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
30
|
+
"@aws-sdk/client-sts": "3.34.0",
|
|
31
|
+
"@aws-sdk/config-resolver": "3.34.0",
|
|
32
|
+
"@aws-sdk/credential-provider-node": "3.34.0",
|
|
33
|
+
"@aws-sdk/fetch-http-handler": "3.34.0",
|
|
34
|
+
"@aws-sdk/hash-node": "3.34.0",
|
|
35
|
+
"@aws-sdk/invalid-dependency": "3.34.0",
|
|
36
|
+
"@aws-sdk/middleware-content-length": "3.34.0",
|
|
37
|
+
"@aws-sdk/middleware-host-header": "3.34.0",
|
|
38
|
+
"@aws-sdk/middleware-logger": "3.34.0",
|
|
39
|
+
"@aws-sdk/middleware-retry": "3.34.0",
|
|
40
|
+
"@aws-sdk/middleware-serde": "3.34.0",
|
|
41
|
+
"@aws-sdk/middleware-signing": "3.34.0",
|
|
42
|
+
"@aws-sdk/middleware-stack": "3.34.0",
|
|
43
|
+
"@aws-sdk/middleware-user-agent": "3.34.0",
|
|
44
|
+
"@aws-sdk/node-config-provider": "3.34.0",
|
|
45
|
+
"@aws-sdk/node-http-handler": "3.34.0",
|
|
46
|
+
"@aws-sdk/protocol-http": "3.34.0",
|
|
47
|
+
"@aws-sdk/smithy-client": "3.34.0",
|
|
48
|
+
"@aws-sdk/types": "3.34.0",
|
|
49
|
+
"@aws-sdk/url-parser": "3.34.0",
|
|
50
|
+
"@aws-sdk/util-base64-browser": "3.34.0",
|
|
51
|
+
"@aws-sdk/util-base64-node": "3.34.0",
|
|
52
|
+
"@aws-sdk/util-body-length-browser": "3.34.0",
|
|
53
|
+
"@aws-sdk/util-body-length-node": "3.34.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-browser": "3.34.0",
|
|
55
|
+
"@aws-sdk/util-user-agent-node": "3.34.0",
|
|
56
|
+
"@aws-sdk/util-utf8-browser": "3.34.0",
|
|
57
|
+
"@aws-sdk/util-utf8-node": "3.34.0",
|
|
58
58
|
"tslib": "^2.3.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@aws-sdk/client-documentation-generator": "3.
|
|
61
|
+
"@aws-sdk/client-documentation-generator": "3.34.0",
|
|
62
62
|
"@types/node": "^12.7.5",
|
|
63
63
|
"downlevel-dts": "0.7.0",
|
|
64
64
|
"jest": "^26.1.0",
|
|
65
65
|
"rimraf": "^3.0.0",
|
|
66
66
|
"ts-jest": "^26.4.1",
|
|
67
67
|
"typedoc": "^0.19.2",
|
|
68
|
-
"typescript": "~4.
|
|
68
|
+
"typescript": "~4.3.5"
|
|
69
69
|
},
|
|
70
70
|
"engines": {
|
|
71
71
|
"node": ">=10.0.0"
|
package/protocols/Aws_json1_0.ts
CHANGED
|
@@ -138,8 +138,11 @@ import {
|
|
|
138
138
|
expectBoolean as __expectBoolean,
|
|
139
139
|
expectInt32 as __expectInt32,
|
|
140
140
|
expectLong as __expectLong,
|
|
141
|
+
expectNonNull as __expectNonNull,
|
|
142
|
+
expectNumber as __expectNumber,
|
|
141
143
|
expectString as __expectString,
|
|
142
144
|
limitedParseDouble as __limitedParseDouble,
|
|
145
|
+
parseEpochTimestamp as __parseEpochTimestamp,
|
|
143
146
|
} from "@aws-sdk/smithy-client";
|
|
144
147
|
import {
|
|
145
148
|
Endpoint as __Endpoint,
|
|
@@ -2500,7 +2503,7 @@ const deserializeAws_json1_0AccountEnrollmentStatus = (
|
|
|
2500
2503
|
accountId: __expectString(output.accountId),
|
|
2501
2504
|
lastUpdatedTimestamp:
|
|
2502
2505
|
output.lastUpdatedTimestamp !== undefined && output.lastUpdatedTimestamp !== null
|
|
2503
|
-
?
|
|
2506
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedTimestamp)))
|
|
2504
2507
|
: undefined,
|
|
2505
2508
|
status: __expectString(output.status),
|
|
2506
2509
|
statusReason: __expectString(output.statusReason),
|
|
@@ -2548,7 +2551,7 @@ const deserializeAws_json1_0AutoScalingGroupRecommendation = (
|
|
|
2548
2551
|
finding: __expectString(output.finding),
|
|
2549
2552
|
lastRefreshTimestamp:
|
|
2550
2553
|
output.lastRefreshTimestamp !== undefined && output.lastRefreshTimestamp !== null
|
|
2551
|
-
?
|
|
2554
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastRefreshTimestamp)))
|
|
2552
2555
|
: undefined,
|
|
2553
2556
|
lookBackPeriodInDays: __limitedParseDouble(output.lookBackPeriodInDays),
|
|
2554
2557
|
recommendationOptions:
|
|
@@ -2784,7 +2787,7 @@ const deserializeAws_json1_0GetEnrollmentStatusResponse = (
|
|
|
2784
2787
|
return {
|
|
2785
2788
|
lastUpdatedTimestamp:
|
|
2786
2789
|
output.lastUpdatedTimestamp !== undefined && output.lastUpdatedTimestamp !== null
|
|
2787
|
-
?
|
|
2790
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedTimestamp)))
|
|
2788
2791
|
: undefined,
|
|
2789
2792
|
memberAccountsEnrolled: __expectBoolean(output.memberAccountsEnrolled),
|
|
2790
2793
|
numberOfMemberAccountsOptedIn: __expectInt32(output.numberOfMemberAccountsOptedIn),
|
|
@@ -2854,7 +2857,7 @@ const deserializeAws_json1_0InstanceRecommendation = (output: any, context: __Se
|
|
|
2854
2857
|
instanceName: __expectString(output.instanceName),
|
|
2855
2858
|
lastRefreshTimestamp:
|
|
2856
2859
|
output.lastRefreshTimestamp !== undefined && output.lastRefreshTimestamp !== null
|
|
2857
|
-
?
|
|
2860
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastRefreshTimestamp)))
|
|
2858
2861
|
: undefined,
|
|
2859
2862
|
lookBackPeriodInDays: __limitedParseDouble(output.lookBackPeriodInDays),
|
|
2860
2863
|
recommendationOptions:
|
|
@@ -3006,7 +3009,7 @@ const deserializeAws_json1_0LambdaFunctionRecommendation = (
|
|
|
3006
3009
|
functionVersion: __expectString(output.functionVersion),
|
|
3007
3010
|
lastRefreshTimestamp:
|
|
3008
3011
|
output.lastRefreshTimestamp !== undefined && output.lastRefreshTimestamp !== null
|
|
3009
|
-
?
|
|
3012
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastRefreshTimestamp)))
|
|
3010
3013
|
: undefined,
|
|
3011
3014
|
lookbackPeriodInDays: __limitedParseDouble(output.lookbackPeriodInDays),
|
|
3012
3015
|
memorySizeRecommendationOptions:
|
|
@@ -3187,7 +3190,7 @@ const deserializeAws_json1_0RecommendationExportJob = (
|
|
|
3187
3190
|
return {
|
|
3188
3191
|
creationTimestamp:
|
|
3189
3192
|
output.creationTimestamp !== undefined && output.creationTimestamp !== null
|
|
3190
|
-
?
|
|
3193
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTimestamp)))
|
|
3191
3194
|
: undefined,
|
|
3192
3195
|
destination:
|
|
3193
3196
|
output.destination !== undefined && output.destination !== null
|
|
@@ -3197,7 +3200,7 @@ const deserializeAws_json1_0RecommendationExportJob = (
|
|
|
3197
3200
|
jobId: __expectString(output.jobId),
|
|
3198
3201
|
lastUpdatedTimestamp:
|
|
3199
3202
|
output.lastUpdatedTimestamp !== undefined && output.lastUpdatedTimestamp !== null
|
|
3200
|
-
?
|
|
3203
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedTimestamp)))
|
|
3201
3204
|
: undefined,
|
|
3202
3205
|
resourceType: __expectString(output.resourceType),
|
|
3203
3206
|
status: __expectString(output.status),
|
|
@@ -3364,7 +3367,7 @@ const deserializeAws_json1_0Timestamps = (output: any, context: __SerdeContext):
|
|
|
3364
3367
|
if (entry === null) {
|
|
3365
3368
|
return null as any;
|
|
3366
3369
|
}
|
|
3367
|
-
return
|
|
3370
|
+
return __expectNonNull(__parseEpochTimestamp(__expectNumber(entry)));
|
|
3368
3371
|
});
|
|
3369
3372
|
};
|
|
3370
3373
|
|
|
@@ -3418,7 +3421,7 @@ const deserializeAws_json1_0VolumeRecommendation = (output: any, context: __Serd
|
|
|
3418
3421
|
finding: __expectString(output.finding),
|
|
3419
3422
|
lastRefreshTimestamp:
|
|
3420
3423
|
output.lastRefreshTimestamp !== undefined && output.lastRefreshTimestamp !== null
|
|
3421
|
-
?
|
|
3424
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastRefreshTimestamp)))
|
|
3422
3425
|
: undefined,
|
|
3423
3426
|
lookBackPeriodInDays: __limitedParseDouble(output.lookBackPeriodInDays),
|
|
3424
3427
|
utilizationMetrics:
|
package/tsconfig.es.json
CHANGED
package/tsconfig.json
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
"alwaysStrict": true,
|
|
4
4
|
"target": "ES2018",
|
|
5
5
|
"module": "commonjs",
|
|
6
|
-
"declaration": true,
|
|
7
6
|
"strict": true,
|
|
8
7
|
"sourceMap": true,
|
|
9
8
|
"downlevelIteration": true,
|
|
@@ -12,9 +11,8 @@
|
|
|
12
11
|
"incremental": true,
|
|
13
12
|
"resolveJsonModule": true,
|
|
14
13
|
"esModuleInterop": true,
|
|
15
|
-
"declarationDir": "./dist/types",
|
|
16
14
|
"outDir": "dist/cjs",
|
|
17
|
-
"
|
|
15
|
+
"removeComments": true
|
|
18
16
|
},
|
|
19
17
|
"typedocOptions": {
|
|
20
18
|
"exclude": ["**/node_modules/**", "**/*.spec.ts", "**/protocols/*.ts", "**/e2e/*.ts", "**/endpoints.ts"],
|
|
@@ -24,9 +22,9 @@
|
|
|
24
22
|
"ignoreCompilerErrors": true,
|
|
25
23
|
"includeDeclarations": true,
|
|
26
24
|
"stripInternal": true,
|
|
27
|
-
"readme": "
|
|
25
|
+
"readme": "README.md",
|
|
28
26
|
"mode": "file",
|
|
29
|
-
"out": "
|
|
27
|
+
"out": "docs",
|
|
30
28
|
"theme": "minimal",
|
|
31
29
|
"plugin": ["@aws-sdk/client-documentation-generator"]
|
|
32
30
|
}
|