@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.
Files changed (104) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/cjs/ComputeOptimizerClient.js +13 -13
  3. package/dist/cjs/ComputeOptimizerClient.js.map +1 -1
  4. package/dist/cjs/commands/DescribeRecommendationExportJobsCommand.js +3 -3
  5. package/dist/cjs/commands/DescribeRecommendationExportJobsCommand.js.map +1 -1
  6. package/dist/cjs/commands/ExportAutoScalingGroupRecommendationsCommand.js +3 -3
  7. package/dist/cjs/commands/ExportAutoScalingGroupRecommendationsCommand.js.map +1 -1
  8. package/dist/cjs/commands/ExportEBSVolumeRecommendationsCommand.js +3 -3
  9. package/dist/cjs/commands/ExportEBSVolumeRecommendationsCommand.js.map +1 -1
  10. package/dist/cjs/commands/ExportEC2InstanceRecommendationsCommand.js +3 -3
  11. package/dist/cjs/commands/ExportEC2InstanceRecommendationsCommand.js.map +1 -1
  12. package/dist/cjs/commands/ExportLambdaFunctionRecommendationsCommand.js +3 -3
  13. package/dist/cjs/commands/ExportLambdaFunctionRecommendationsCommand.js.map +1 -1
  14. package/dist/cjs/commands/GetAutoScalingGroupRecommendationsCommand.js +3 -3
  15. package/dist/cjs/commands/GetAutoScalingGroupRecommendationsCommand.js.map +1 -1
  16. package/dist/cjs/commands/GetEBSVolumeRecommendationsCommand.js +3 -3
  17. package/dist/cjs/commands/GetEBSVolumeRecommendationsCommand.js.map +1 -1
  18. package/dist/cjs/commands/GetEC2InstanceRecommendationsCommand.js +3 -3
  19. package/dist/cjs/commands/GetEC2InstanceRecommendationsCommand.js.map +1 -1
  20. package/dist/cjs/commands/GetEC2RecommendationProjectedMetricsCommand.js +3 -3
  21. package/dist/cjs/commands/GetEC2RecommendationProjectedMetricsCommand.js.map +1 -1
  22. package/dist/cjs/commands/GetEnrollmentStatusCommand.js +3 -3
  23. package/dist/cjs/commands/GetEnrollmentStatusCommand.js.map +1 -1
  24. package/dist/cjs/commands/GetEnrollmentStatusesForOrganizationCommand.js +3 -3
  25. package/dist/cjs/commands/GetEnrollmentStatusesForOrganizationCommand.js.map +1 -1
  26. package/dist/cjs/commands/GetLambdaFunctionRecommendationsCommand.js +3 -3
  27. package/dist/cjs/commands/GetLambdaFunctionRecommendationsCommand.js.map +1 -1
  28. package/dist/cjs/commands/GetRecommendationSummariesCommand.js +3 -3
  29. package/dist/cjs/commands/GetRecommendationSummariesCommand.js.map +1 -1
  30. package/dist/cjs/commands/UpdateEnrollmentStatusCommand.js +3 -3
  31. package/dist/cjs/commands/UpdateEnrollmentStatusCommand.js.map +1 -1
  32. package/dist/cjs/endpoints.js +1 -1
  33. package/dist/cjs/endpoints.js.map +1 -1
  34. package/dist/cjs/index.js +17 -17
  35. package/dist/cjs/index.js.map +1 -1
  36. package/dist/cjs/models/index.js +1 -1
  37. package/dist/cjs/models/index.js.map +1 -1
  38. package/dist/cjs/package.json +39 -39
  39. package/dist/cjs/protocols/Aws_json1_0.js +116 -116
  40. package/dist/cjs/protocols/Aws_json1_0.js.map +1 -1
  41. package/dist/cjs/runtimeConfig.browser.js +4 -4
  42. package/dist/cjs/runtimeConfig.browser.js.map +1 -1
  43. package/dist/cjs/runtimeConfig.js +8 -8
  44. package/dist/cjs/runtimeConfig.js.map +1 -1
  45. package/dist/cjs/runtimeConfig.native.js +1 -1
  46. package/dist/cjs/runtimeConfig.native.js.map +1 -1
  47. package/dist/es/ComputeOptimizer.js +1 -14
  48. package/dist/es/ComputeOptimizer.js.map +1 -1
  49. package/dist/es/ComputeOptimizerClient.js +1 -19
  50. package/dist/es/ComputeOptimizerClient.js.map +1 -1
  51. package/dist/es/commands/DescribeRecommendationExportJobsCommand.js +2 -31
  52. package/dist/es/commands/DescribeRecommendationExportJobsCommand.js.map +1 -1
  53. package/dist/es/commands/ExportAutoScalingGroupRecommendationsCommand.js +2 -34
  54. package/dist/es/commands/ExportAutoScalingGroupRecommendationsCommand.js.map +1 -1
  55. package/dist/es/commands/ExportEBSVolumeRecommendationsCommand.js +2 -35
  56. package/dist/es/commands/ExportEBSVolumeRecommendationsCommand.js.map +1 -1
  57. package/dist/es/commands/ExportEC2InstanceRecommendationsCommand.js +2 -35
  58. package/dist/es/commands/ExportEC2InstanceRecommendationsCommand.js.map +1 -1
  59. package/dist/es/commands/ExportLambdaFunctionRecommendationsCommand.js +2 -35
  60. package/dist/es/commands/ExportLambdaFunctionRecommendationsCommand.js.map +1 -1
  61. package/dist/es/commands/GetAutoScalingGroupRecommendationsCommand.js +2 -32
  62. package/dist/es/commands/GetAutoScalingGroupRecommendationsCommand.js.map +1 -1
  63. package/dist/es/commands/GetEBSVolumeRecommendationsCommand.js +2 -32
  64. package/dist/es/commands/GetEBSVolumeRecommendationsCommand.js.map +1 -1
  65. package/dist/es/commands/GetEC2InstanceRecommendationsCommand.js +2 -32
  66. package/dist/es/commands/GetEC2InstanceRecommendationsCommand.js.map +1 -1
  67. package/dist/es/commands/GetEC2RecommendationProjectedMetricsCommand.js +2 -35
  68. package/dist/es/commands/GetEC2RecommendationProjectedMetricsCommand.js.map +1 -1
  69. package/dist/es/commands/GetEnrollmentStatusCommand.js +2 -32
  70. package/dist/es/commands/GetEnrollmentStatusCommand.js.map +1 -1
  71. package/dist/es/commands/GetEnrollmentStatusesForOrganizationCommand.js +2 -30
  72. package/dist/es/commands/GetEnrollmentStatusesForOrganizationCommand.js.map +1 -1
  73. package/dist/es/commands/GetLambdaFunctionRecommendationsCommand.js +2 -32
  74. package/dist/es/commands/GetLambdaFunctionRecommendationsCommand.js.map +1 -1
  75. package/dist/es/commands/GetRecommendationSummariesCommand.js +2 -49
  76. package/dist/es/commands/GetRecommendationSummariesCommand.js.map +1 -1
  77. package/dist/es/commands/UpdateEnrollmentStatusCommand.js +2 -37
  78. package/dist/es/commands/UpdateEnrollmentStatusCommand.js.map +1 -1
  79. package/dist/es/endpoints.js +1 -1
  80. package/dist/es/endpoints.js.map +1 -1
  81. package/dist/es/models/models_0.js +0 -207
  82. package/dist/es/models/models_0.js.map +1 -1
  83. package/dist/es/package.json +39 -39
  84. package/dist/es/protocols/Aws_json1_0.js +539 -544
  85. package/dist/es/protocols/Aws_json1_0.js.map +1 -1
  86. package/dist/es/runtimeConfig.browser.js +0 -3
  87. package/dist/es/runtimeConfig.browser.js.map +1 -1
  88. package/dist/es/runtimeConfig.js +0 -3
  89. package/dist/es/runtimeConfig.js.map +1 -1
  90. package/dist/es/runtimeConfig.native.js +0 -3
  91. package/dist/es/runtimeConfig.native.js.map +1 -1
  92. package/dist/es/runtimeConfig.shared.js +0 -3
  93. package/dist/es/runtimeConfig.shared.js.map +1 -1
  94. package/dist/types/runtimeConfig.browser.d.ts +1 -0
  95. package/dist/types/runtimeConfig.d.ts +3 -0
  96. package/dist/types/runtimeConfig.native.d.ts +1 -0
  97. package/dist/types/ts3.4/runtimeConfig.browser.d.ts +1 -0
  98. package/dist/types/ts3.4/runtimeConfig.d.ts +3 -0
  99. package/dist/types/ts3.4/runtimeConfig.native.d.ts +1 -0
  100. package/package.json +39 -39
  101. package/protocols/Aws_json1_0.ts +12 -9
  102. package/tsconfig.es.json +0 -2
  103. package/tsconfig.json +3 -5
  104. 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.30.0",
4
+ "version": "3.34.0",
5
5
  "scripts": {
6
- "clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
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": "yarn build:cjs && yarn build:es",
15
- "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
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.30.0",
31
- "@aws-sdk/config-resolver": "3.30.0",
32
- "@aws-sdk/credential-provider-node": "3.30.0",
33
- "@aws-sdk/fetch-http-handler": "3.29.0",
34
- "@aws-sdk/hash-node": "3.29.0",
35
- "@aws-sdk/invalid-dependency": "3.29.0",
36
- "@aws-sdk/middleware-content-length": "3.29.0",
37
- "@aws-sdk/middleware-host-header": "3.29.0",
38
- "@aws-sdk/middleware-logger": "3.29.0",
39
- "@aws-sdk/middleware-retry": "3.29.0",
40
- "@aws-sdk/middleware-serde": "3.29.0",
41
- "@aws-sdk/middleware-signing": "3.30.0",
42
- "@aws-sdk/middleware-stack": "3.29.0",
43
- "@aws-sdk/middleware-user-agent": "3.29.0",
44
- "@aws-sdk/node-config-provider": "3.29.0",
45
- "@aws-sdk/node-http-handler": "3.29.0",
46
- "@aws-sdk/protocol-http": "3.29.0",
47
- "@aws-sdk/smithy-client": "3.30.0",
48
- "@aws-sdk/types": "3.29.0",
49
- "@aws-sdk/url-parser": "3.29.0",
50
- "@aws-sdk/util-base64-browser": "3.29.0",
51
- "@aws-sdk/util-base64-node": "3.29.0",
52
- "@aws-sdk/util-body-length-browser": "3.29.0",
53
- "@aws-sdk/util-body-length-node": "3.29.0",
54
- "@aws-sdk/util-user-agent-browser": "3.29.0",
55
- "@aws-sdk/util-user-agent-node": "3.29.0",
56
- "@aws-sdk/util-utf8-browser": "3.29.0",
57
- "@aws-sdk/util-utf8-node": "3.29.0",
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.29.0",
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.4.2"
68
+ "typescript": "~4.3.5"
69
69
  },
70
70
  "engines": {
71
71
  "node": ">=10.0.0"
@@ -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
- ? new Date(Math.round(output.lastUpdatedTimestamp * 1000))
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
- ? new Date(Math.round(output.lastRefreshTimestamp * 1000))
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
- ? new Date(Math.round(output.lastUpdatedTimestamp * 1000))
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
- ? new Date(Math.round(output.lastRefreshTimestamp * 1000))
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
- ? new Date(Math.round(output.lastRefreshTimestamp * 1000))
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
- ? new Date(Math.round(output.creationTimestamp * 1000))
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
- ? new Date(Math.round(output.lastUpdatedTimestamp * 1000))
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 new Date(Math.round(entry * 1000));
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
- ? new Date(Math.round(output.lastRefreshTimestamp * 1000))
3424
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastRefreshTimestamp)))
3422
3425
  : undefined,
3423
3426
  lookBackPeriodInDays: __limitedParseDouble(output.lookBackPeriodInDays),
3424
3427
  utilizationMetrics:
package/tsconfig.es.json CHANGED
@@ -4,8 +4,6 @@
4
4
  "target": "es5",
5
5
  "module": "esnext",
6
6
  "moduleResolution": "node",
7
- "declaration": false,
8
- "declarationDir": null,
9
7
  "lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
10
8
  "outDir": "dist/es"
11
9
  }
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
- "useUnknownInCatchVariables": false
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": "./README.md",
25
+ "readme": "README.md",
28
26
  "mode": "file",
29
- "out": "./docs",
27
+ "out": "docs",
30
28
  "theme": "minimal",
31
29
  "plugin": ["@aws-sdk/client-documentation-generator"]
32
30
  }
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "./tsconfig",
3
+ "compilerOptions": {
4
+ "removeComments": false,
5
+ "declaration": true,
6
+ "declarationDir": "dist/types"
7
+ }
8
+ }