@aws-sdk/client-scheduler 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.
@@ -17,7 +17,7 @@ const serializeAws_restJson1CreateScheduleCommand = async (input, context) => {
17
17
  body = JSON.stringify({
18
18
  ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
19
19
  ...(input.Description != null && { Description: input.Description }),
20
- ...(input.EndDate != null && { EndDate: Math.round(input.EndDate.getTime() / 1000) }),
20
+ ...(input.EndDate != null && { EndDate: Math.round(input.EndDate.getTime() / 1000).toString() }),
21
21
  ...(input.FlexibleTimeWindow != null && {
22
22
  FlexibleTimeWindow: serializeAws_restJson1FlexibleTimeWindow(input.FlexibleTimeWindow, context),
23
23
  }),
@@ -25,7 +25,7 @@ const serializeAws_restJson1CreateScheduleCommand = async (input, context) => {
25
25
  ...(input.KmsKeyArn != null && { KmsKeyArn: input.KmsKeyArn }),
26
26
  ...(input.ScheduleExpression != null && { ScheduleExpression: input.ScheduleExpression }),
27
27
  ...(input.ScheduleExpressionTimezone != null && { ScheduleExpressionTimezone: input.ScheduleExpressionTimezone }),
28
- ...(input.StartDate != null && { StartDate: Math.round(input.StartDate.getTime() / 1000) }),
28
+ ...(input.StartDate != null && { StartDate: Math.round(input.StartDate.getTime() / 1000).toString() }),
29
29
  ...(input.State != null && { State: input.State }),
30
30
  ...(input.Target != null && { Target: serializeAws_restJson1Target(input.Target, context) }),
31
31
  });
@@ -264,7 +264,7 @@ const serializeAws_restJson1UpdateScheduleCommand = async (input, context) => {
264
264
  body = JSON.stringify({
265
265
  ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
266
266
  ...(input.Description != null && { Description: input.Description }),
267
- ...(input.EndDate != null && { EndDate: Math.round(input.EndDate.getTime() / 1000) }),
267
+ ...(input.EndDate != null && { EndDate: Math.round(input.EndDate.getTime() / 1000).toString() }),
268
268
  ...(input.FlexibleTimeWindow != null && {
269
269
  FlexibleTimeWindow: serializeAws_restJson1FlexibleTimeWindow(input.FlexibleTimeWindow, context),
270
270
  }),
@@ -272,7 +272,7 @@ const serializeAws_restJson1UpdateScheduleCommand = async (input, context) => {
272
272
  ...(input.KmsKeyArn != null && { KmsKeyArn: input.KmsKeyArn }),
273
273
  ...(input.ScheduleExpression != null && { ScheduleExpression: input.ScheduleExpression }),
274
274
  ...(input.ScheduleExpressionTimezone != null && { ScheduleExpressionTimezone: input.ScheduleExpressionTimezone }),
275
- ...(input.StartDate != null && { StartDate: Math.round(input.StartDate.getTime() / 1000) }),
275
+ ...(input.StartDate != null && { StartDate: Math.round(input.StartDate.getTime() / 1000).toString() }),
276
276
  ...(input.State != null && { State: input.State }),
277
277
  ...(input.Target != null && { Target: serializeAws_restJson1Target(input.Target, context) }),
278
278
  });
@@ -14,7 +14,7 @@ export const serializeAws_restJson1CreateScheduleCommand = async (input, context
14
14
  body = JSON.stringify({
15
15
  ClientToken: input.ClientToken ?? generateIdempotencyToken(),
16
16
  ...(input.Description != null && { Description: input.Description }),
17
- ...(input.EndDate != null && { EndDate: Math.round(input.EndDate.getTime() / 1000) }),
17
+ ...(input.EndDate != null && { EndDate: Math.round(input.EndDate.getTime() / 1000).toString() }),
18
18
  ...(input.FlexibleTimeWindow != null && {
19
19
  FlexibleTimeWindow: serializeAws_restJson1FlexibleTimeWindow(input.FlexibleTimeWindow, context),
20
20
  }),
@@ -22,7 +22,7 @@ export const serializeAws_restJson1CreateScheduleCommand = async (input, context
22
22
  ...(input.KmsKeyArn != null && { KmsKeyArn: input.KmsKeyArn }),
23
23
  ...(input.ScheduleExpression != null && { ScheduleExpression: input.ScheduleExpression }),
24
24
  ...(input.ScheduleExpressionTimezone != null && { ScheduleExpressionTimezone: input.ScheduleExpressionTimezone }),
25
- ...(input.StartDate != null && { StartDate: Math.round(input.StartDate.getTime() / 1000) }),
25
+ ...(input.StartDate != null && { StartDate: Math.round(input.StartDate.getTime() / 1000).toString() }),
26
26
  ...(input.State != null && { State: input.State }),
27
27
  ...(input.Target != null && { Target: serializeAws_restJson1Target(input.Target, context) }),
28
28
  });
@@ -250,7 +250,7 @@ export const serializeAws_restJson1UpdateScheduleCommand = async (input, context
250
250
  body = JSON.stringify({
251
251
  ClientToken: input.ClientToken ?? generateIdempotencyToken(),
252
252
  ...(input.Description != null && { Description: input.Description }),
253
- ...(input.EndDate != null && { EndDate: Math.round(input.EndDate.getTime() / 1000) }),
253
+ ...(input.EndDate != null && { EndDate: Math.round(input.EndDate.getTime() / 1000).toString() }),
254
254
  ...(input.FlexibleTimeWindow != null && {
255
255
  FlexibleTimeWindow: serializeAws_restJson1FlexibleTimeWindow(input.FlexibleTimeWindow, context),
256
256
  }),
@@ -258,7 +258,7 @@ export const serializeAws_restJson1UpdateScheduleCommand = async (input, context
258
258
  ...(input.KmsKeyArn != null && { KmsKeyArn: input.KmsKeyArn }),
259
259
  ...(input.ScheduleExpression != null && { ScheduleExpression: input.ScheduleExpression }),
260
260
  ...(input.ScheduleExpressionTimezone != null && { ScheduleExpressionTimezone: input.ScheduleExpressionTimezone }),
261
- ...(input.StartDate != null && { StartDate: Math.round(input.StartDate.getTime() / 1000) }),
261
+ ...(input.StartDate != null && { StartDate: Math.round(input.StartDate.getTime() / 1000).toString() }),
262
262
  ...(input.State != null && { State: input.State }),
263
263
  ...(input.Target != null && { Target: serializeAws_restJson1Target(input.Target, context) }),
264
264
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-scheduler",
3
3
  "description": "AWS SDK for JavaScript Scheduler 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/scheduler.json --keepFiles)"
14
+ "generate:client": "node ../../scripts/generate-clients/single-service --solo scheduler"
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",