@aws-sdk/client-scheduler 3.252.0 → 3.256.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).toString() }),
20
+ ...(input.EndDate != null && { EndDate: Math.round(input.EndDate.getTime() / 1000) }),
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).toString() }),
28
+ ...(input.StartDate != null && { StartDate: Math.round(input.StartDate.getTime() / 1000) }),
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).toString() }),
267
+ ...(input.EndDate != null && { EndDate: Math.round(input.EndDate.getTime() / 1000) }),
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).toString() }),
275
+ ...(input.StartDate != null && { StartDate: Math.round(input.StartDate.getTime() / 1000) }),
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).toString() }),
17
+ ...(input.EndDate != null && { EndDate: Math.round(input.EndDate.getTime() / 1000) }),
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).toString() }),
25
+ ...(input.StartDate != null && { StartDate: Math.round(input.StartDate.getTime() / 1000) }),
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).toString() }),
253
+ ...(input.EndDate != null && { EndDate: Math.round(input.EndDate.getTime() / 1000) }),
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).toString() }),
261
+ ...(input.StartDate != null && { StartDate: Math.round(input.StartDate.getTime() / 1000) }),
262
262
  ...(input.State != null && { State: input.State }),
263
263
  ...(input.Target != null && { Target: serializeAws_restJson1Target(input.Target, context) }),
264
264
  });
@@ -5,8 +5,8 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
5
5
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
6
6
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
7
7
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
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";
8
+ import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
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 { CreateScheduleCommandInput, CreateScheduleCommandOutput } from "./commands/CreateScheduleCommand";
11
11
  import { CreateScheduleGroupCommandInput, CreateScheduleGroupCommandOutput } from "./commands/CreateScheduleGroupCommand";
12
12
  import { DeleteScheduleCommandInput, DeleteScheduleCommandOutput } from "./commands/DeleteScheduleCommand";
@@ -28,11 +28,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
28
28
  */
29
29
  requestHandler?: __HttpHandler;
30
30
  /**
31
- * A constructor for a class implementing the {@link __Hash} interface
31
+ * A constructor for a class implementing the {@link __Checksum} interface
32
32
  * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
33
33
  * @internal
34
34
  */
35
- sha256?: __HashConstructor;
35
+ sha256?: __ChecksumConstructor | __HashConstructor;
36
36
  /**
37
37
  * The function that will be used to convert strings into HTTP endpoints.
38
38
  * @internal
@@ -118,9 +118,9 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
118
118
  */
119
119
  defaultUserAgentProvider?: Provider<__UserAgent>;
120
120
  /**
121
- * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
121
+ * The {@link __DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
122
122
  */
123
- defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
123
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
124
124
  }
125
125
  declare type SchedulerClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
126
126
  /**
@@ -25,12 +25,13 @@ import {
25
25
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
26
26
  import {
27
27
  Client as __Client,
28
- DefaultsMode,
28
+ DefaultsMode as __DefaultsMode,
29
29
  SmithyConfiguration as __SmithyConfiguration,
30
30
  SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
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,
@@ -125,7 +126,7 @@ export declare type ServiceOutputTypes =
125
126
  export interface ClientDefaults
126
127
  extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
127
128
  requestHandler?: __HttpHandler;
128
- sha256?: __HashConstructor;
129
+ sha256?: __ChecksumConstructor | __HashConstructor;
129
130
  urlParser?: __UrlParser;
130
131
  bodyLengthChecker?: __BodyLengthCalculator;
131
132
  streamCollector?: __StreamCollector;
@@ -144,7 +145,7 @@ export interface ClientDefaults
144
145
  region?: string | __Provider<string>;
145
146
  credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
146
147
  defaultUserAgentProvider?: Provider<__UserAgent>;
147
- defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
148
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
148
149
  }
149
150
  declare type SchedulerClientConfigType = Partial<
150
151
  __SmithyConfiguration<__HttpHandlerOptions>
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.252.0",
4
+ "version": "3.256.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": "2.0.0",
22
- "@aws-crypto/sha256-js": "2.0.0",
23
- "@aws-sdk/client-sts": "3.252.0",
24
- "@aws-sdk/config-resolver": "3.234.0",
25
- "@aws-sdk/credential-provider-node": "3.252.0",
26
- "@aws-sdk/fetch-http-handler": "3.226.0",
27
- "@aws-sdk/hash-node": "3.226.0",
28
- "@aws-sdk/invalid-dependency": "3.226.0",
29
- "@aws-sdk/middleware-content-length": "3.226.0",
30
- "@aws-sdk/middleware-endpoint": "3.226.0",
31
- "@aws-sdk/middleware-host-header": "3.226.0",
32
- "@aws-sdk/middleware-logger": "3.226.0",
33
- "@aws-sdk/middleware-recursion-detection": "3.226.0",
34
- "@aws-sdk/middleware-retry": "3.235.0",
35
- "@aws-sdk/middleware-serde": "3.226.0",
36
- "@aws-sdk/middleware-signing": "3.226.0",
37
- "@aws-sdk/middleware-stack": "3.226.0",
38
- "@aws-sdk/middleware-user-agent": "3.226.0",
39
- "@aws-sdk/node-config-provider": "3.226.0",
40
- "@aws-sdk/node-http-handler": "3.226.0",
41
- "@aws-sdk/protocol-http": "3.226.0",
42
- "@aws-sdk/smithy-client": "3.234.0",
43
- "@aws-sdk/types": "3.226.0",
44
- "@aws-sdk/url-parser": "3.226.0",
21
+ "@aws-crypto/sha256-browser": "3.0.0",
22
+ "@aws-crypto/sha256-js": "3.0.0",
23
+ "@aws-sdk/client-sts": "3.256.0",
24
+ "@aws-sdk/config-resolver": "3.254.0",
25
+ "@aws-sdk/credential-provider-node": "3.256.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.234.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.234.0",
50
- "@aws-sdk/util-endpoints": "3.245.0",
51
- "@aws-sdk/util-retry": "3.229.0",
52
- "@aws-sdk/util-user-agent-browser": "3.226.0",
53
- "@aws-sdk/util-user-agent-node": "3.226.0",
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",