@aws-sdk/client-compute-optimizer 3.252.0 → 3.254.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.
|
@@ -1691,22 +1691,22 @@ const serializeAws_json1_0GetEC2InstanceRecommendationsRequest = (input, context
|
|
|
1691
1691
|
};
|
|
1692
1692
|
const serializeAws_json1_0GetEC2RecommendationProjectedMetricsRequest = (input, context) => {
|
|
1693
1693
|
return {
|
|
1694
|
-
...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000)
|
|
1694
|
+
...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
|
|
1695
1695
|
...(input.instanceArn != null && { instanceArn: input.instanceArn }),
|
|
1696
1696
|
...(input.period != null && { period: input.period }),
|
|
1697
1697
|
...(input.recommendationPreferences != null && {
|
|
1698
1698
|
recommendationPreferences: serializeAws_json1_0RecommendationPreferences(input.recommendationPreferences, context),
|
|
1699
1699
|
}),
|
|
1700
|
-
...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000)
|
|
1700
|
+
...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
1701
1701
|
...(input.stat != null && { stat: input.stat }),
|
|
1702
1702
|
};
|
|
1703
1703
|
};
|
|
1704
1704
|
const serializeAws_json1_0GetECSServiceRecommendationProjectedMetricsRequest = (input, context) => {
|
|
1705
1705
|
return {
|
|
1706
|
-
...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000)
|
|
1706
|
+
...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
|
|
1707
1707
|
...(input.period != null && { period: input.period }),
|
|
1708
1708
|
...(input.serviceArn != null && { serviceArn: input.serviceArn }),
|
|
1709
|
-
...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000)
|
|
1709
|
+
...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
1710
1710
|
...(input.stat != null && { stat: input.stat }),
|
|
1711
1711
|
};
|
|
1712
1712
|
};
|
|
@@ -1646,22 +1646,22 @@ const serializeAws_json1_0GetEC2InstanceRecommendationsRequest = (input, context
|
|
|
1646
1646
|
};
|
|
1647
1647
|
const serializeAws_json1_0GetEC2RecommendationProjectedMetricsRequest = (input, context) => {
|
|
1648
1648
|
return {
|
|
1649
|
-
...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000)
|
|
1649
|
+
...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
|
|
1650
1650
|
...(input.instanceArn != null && { instanceArn: input.instanceArn }),
|
|
1651
1651
|
...(input.period != null && { period: input.period }),
|
|
1652
1652
|
...(input.recommendationPreferences != null && {
|
|
1653
1653
|
recommendationPreferences: serializeAws_json1_0RecommendationPreferences(input.recommendationPreferences, context),
|
|
1654
1654
|
}),
|
|
1655
|
-
...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000)
|
|
1655
|
+
...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
1656
1656
|
...(input.stat != null && { stat: input.stat }),
|
|
1657
1657
|
};
|
|
1658
1658
|
};
|
|
1659
1659
|
const serializeAws_json1_0GetECSServiceRecommendationProjectedMetricsRequest = (input, context) => {
|
|
1660
1660
|
return {
|
|
1661
|
-
...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000)
|
|
1661
|
+
...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
|
|
1662
1662
|
...(input.period != null && { period: input.period }),
|
|
1663
1663
|
...(input.serviceArn != null && { serviceArn: input.serviceArn }),
|
|
1664
|
-
...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000)
|
|
1664
|
+
...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
1665
1665
|
...(input.stat != null && { stat: input.stat }),
|
|
1666
1666
|
};
|
|
1667
1667
|
};
|
|
@@ -6,7 +6,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
6
6
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
7
7
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
8
8
|
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
9
|
-
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as __ChecksumConstructor, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
10
10
|
import { DeleteRecommendationPreferencesCommandInput, DeleteRecommendationPreferencesCommandOutput } from "./commands/DeleteRecommendationPreferencesCommand";
|
|
11
11
|
import { DescribeRecommendationExportJobsCommandInput, DescribeRecommendationExportJobsCommandOutput } from "./commands/DescribeRecommendationExportJobsCommand";
|
|
12
12
|
import { ExportAutoScalingGroupRecommendationsCommandInput, ExportAutoScalingGroupRecommendationsCommandOutput } from "./commands/ExportAutoScalingGroupRecommendationsCommand";
|
|
@@ -37,11 +37,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
37
37
|
*/
|
|
38
38
|
requestHandler?: __HttpHandler;
|
|
39
39
|
/**
|
|
40
|
-
* A constructor for a class implementing the {@link
|
|
40
|
+
* A constructor for a class implementing the {@link __Checksum} interface
|
|
41
41
|
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
42
42
|
* @internal
|
|
43
43
|
*/
|
|
44
|
-
sha256?: __HashConstructor;
|
|
44
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
45
45
|
/**
|
|
46
46
|
* The function that will be used to convert strings into HTTP endpoints.
|
|
47
47
|
* @internal
|
|
@@ -31,6 +31,7 @@ import {
|
|
|
31
31
|
} from "@aws-sdk/smithy-client";
|
|
32
32
|
import {
|
|
33
33
|
BodyLengthCalculator as __BodyLengthCalculator,
|
|
34
|
+
ChecksumConstructor as __ChecksumConstructor,
|
|
34
35
|
Credentials as __Credentials,
|
|
35
36
|
Decoder as __Decoder,
|
|
36
37
|
Encoder as __Encoder,
|
|
@@ -179,7 +180,7 @@ export declare type ServiceOutputTypes =
|
|
|
179
180
|
export interface ClientDefaults
|
|
180
181
|
extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
181
182
|
requestHandler?: __HttpHandler;
|
|
182
|
-
sha256?: __HashConstructor;
|
|
183
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
183
184
|
urlParser?: __UrlParser;
|
|
184
185
|
bodyLengthChecker?: __BodyLengthCalculator;
|
|
185
186
|
streamCollector?: __StreamCollector;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.254.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,39 +18,39 @@
|
|
|
18
18
|
"module": "./dist-es/index.js",
|
|
19
19
|
"sideEffects": false,
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@aws-crypto/sha256-browser": "
|
|
22
|
-
"@aws-crypto/sha256-js": "
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/config-resolver": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
27
|
-
"@aws-sdk/hash-node": "3.
|
|
28
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
29
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
30
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
31
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
32
|
-
"@aws-sdk/middleware-logger": "3.
|
|
33
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
34
|
-
"@aws-sdk/middleware-retry": "3.
|
|
35
|
-
"@aws-sdk/middleware-serde": "3.
|
|
36
|
-
"@aws-sdk/middleware-signing": "3.
|
|
37
|
-
"@aws-sdk/middleware-stack": "3.
|
|
38
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
39
|
-
"@aws-sdk/node-config-provider": "3.
|
|
40
|
-
"@aws-sdk/node-http-handler": "3.
|
|
41
|
-
"@aws-sdk/protocol-http": "3.
|
|
42
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
-
"@aws-sdk/types": "3.
|
|
44
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
|
+
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
+
"@aws-sdk/client-sts": "3.254.0",
|
|
24
|
+
"@aws-sdk/config-resolver": "3.254.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.254.0",
|
|
26
|
+
"@aws-sdk/fetch-http-handler": "3.254.0",
|
|
27
|
+
"@aws-sdk/hash-node": "3.254.0",
|
|
28
|
+
"@aws-sdk/invalid-dependency": "3.254.0",
|
|
29
|
+
"@aws-sdk/middleware-content-length": "3.254.0",
|
|
30
|
+
"@aws-sdk/middleware-endpoint": "3.254.0",
|
|
31
|
+
"@aws-sdk/middleware-host-header": "3.254.0",
|
|
32
|
+
"@aws-sdk/middleware-logger": "3.254.0",
|
|
33
|
+
"@aws-sdk/middleware-recursion-detection": "3.254.0",
|
|
34
|
+
"@aws-sdk/middleware-retry": "3.254.0",
|
|
35
|
+
"@aws-sdk/middleware-serde": "3.254.0",
|
|
36
|
+
"@aws-sdk/middleware-signing": "3.254.0",
|
|
37
|
+
"@aws-sdk/middleware-stack": "3.254.0",
|
|
38
|
+
"@aws-sdk/middleware-user-agent": "3.254.0",
|
|
39
|
+
"@aws-sdk/node-config-provider": "3.254.0",
|
|
40
|
+
"@aws-sdk/node-http-handler": "3.254.0",
|
|
41
|
+
"@aws-sdk/protocol-http": "3.254.0",
|
|
42
|
+
"@aws-sdk/smithy-client": "3.254.0",
|
|
43
|
+
"@aws-sdk/types": "3.254.0",
|
|
44
|
+
"@aws-sdk/url-parser": "3.254.0",
|
|
45
45
|
"@aws-sdk/util-base64": "3.208.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
47
47
|
"@aws-sdk/util-body-length-node": "3.208.0",
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
-
"@aws-sdk/util-endpoints": "3.
|
|
51
|
-
"@aws-sdk/util-retry": "3.
|
|
52
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.254.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.254.0",
|
|
50
|
+
"@aws-sdk/util-endpoints": "3.254.0",
|
|
51
|
+
"@aws-sdk/util-retry": "3.254.0",
|
|
52
|
+
"@aws-sdk/util-user-agent-browser": "3.254.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-node": "3.254.0",
|
|
54
54
|
"@aws-sdk/util-utf8-browser": "3.188.0",
|
|
55
55
|
"@aws-sdk/util-utf8-node": "3.208.0",
|
|
56
56
|
"tslib": "^2.3.1"
|