@aws-sdk/client-compute-optimizer 3.245.0 → 3.252.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).toString() }),
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).toString() }),
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).toString() }),
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).toString() }),
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).toString() }),
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).toString() }),
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).toString() }),
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).toString() }),
1665
1665
  ...(input.stat != null && { stat: input.stat }),
1666
1666
  };
1667
1667
  };
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.245.0",
4
+ "version": "3.252.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",
@@ -11,7 +11,7 @@
11
11
  "build:types": "tsc -p tsconfig.types.json",
12
12
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
13
13
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
14
- "generate:client": "(cd ../../ && yarn generate-clients -g ./codegen/sdk-codegen/aws-models/compute-optimizer.json --keepFiles)"
14
+ "generate:client": "node ../../scripts/generate-clients/single-service --solo compute-optimizer"
15
15
  },
16
16
  "main": "./dist-cjs/index.js",
17
17
  "types": "./dist-types/index.d.ts",
@@ -20,9 +20,9 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "2.0.0",
22
22
  "@aws-crypto/sha256-js": "2.0.0",
23
- "@aws-sdk/client-sts": "3.245.0",
23
+ "@aws-sdk/client-sts": "3.252.0",
24
24
  "@aws-sdk/config-resolver": "3.234.0",
25
- "@aws-sdk/credential-provider-node": "3.245.0",
25
+ "@aws-sdk/credential-provider-node": "3.252.0",
26
26
  "@aws-sdk/fetch-http-handler": "3.226.0",
27
27
  "@aws-sdk/hash-node": "3.226.0",
28
28
  "@aws-sdk/invalid-dependency": "3.226.0",