@aws-sdk/client-dynamodb 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.
@@ -3568,7 +3568,7 @@ const serializeAws_json1_0ExportTableToPointInTimeInput = (input, context) => {
3568
3568
  return {
3569
3569
  ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
3570
3570
  ...(input.ExportFormat != null && { ExportFormat: input.ExportFormat }),
3571
- ...(input.ExportTime != null && { ExportTime: Math.round(input.ExportTime.getTime() / 1000).toString() }),
3571
+ ...(input.ExportTime != null && { ExportTime: Math.round(input.ExportTime.getTime() / 1000) }),
3572
3572
  ...(input.S3Bucket != null && { S3Bucket: input.S3Bucket }),
3573
3573
  ...(input.S3BucketOwner != null && { S3BucketOwner: input.S3BucketOwner }),
3574
3574
  ...(input.S3Prefix != null && { S3Prefix: input.S3Prefix }),
@@ -3791,10 +3791,10 @@ const serializeAws_json1_0ListBackupsInput = (input, context) => {
3791
3791
  ...(input.Limit != null && { Limit: input.Limit }),
3792
3792
  ...(input.TableName != null && { TableName: input.TableName }),
3793
3793
  ...(input.TimeRangeLowerBound != null && {
3794
- TimeRangeLowerBound: Math.round(input.TimeRangeLowerBound.getTime() / 1000).toString(),
3794
+ TimeRangeLowerBound: Math.round(input.TimeRangeLowerBound.getTime() / 1000),
3795
3795
  }),
3796
3796
  ...(input.TimeRangeUpperBound != null && {
3797
- TimeRangeUpperBound: Math.round(input.TimeRangeUpperBound.getTime() / 1000).toString(),
3797
+ TimeRangeUpperBound: Math.round(input.TimeRangeUpperBound.getTime() / 1000),
3798
3798
  }),
3799
3799
  };
3800
3800
  };
@@ -4177,9 +4177,7 @@ const serializeAws_json1_0RestoreTableToPointInTimeInput = (input, context) => {
4177
4177
  ...(input.ProvisionedThroughputOverride != null && {
4178
4178
  ProvisionedThroughputOverride: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughputOverride, context),
4179
4179
  }),
4180
- ...(input.RestoreDateTime != null && {
4181
- RestoreDateTime: Math.round(input.RestoreDateTime.getTime() / 1000).toString(),
4182
- }),
4180
+ ...(input.RestoreDateTime != null && { RestoreDateTime: Math.round(input.RestoreDateTime.getTime() / 1000) }),
4183
4181
  ...(input.SSESpecificationOverride != null && {
4184
4182
  SSESpecificationOverride: serializeAws_json1_0SSESpecification(input.SSESpecificationOverride, context),
4185
4183
  }),
@@ -3457,7 +3457,7 @@ const serializeAws_json1_0ExportTableToPointInTimeInput = (input, context) => {
3457
3457
  return {
3458
3458
  ClientToken: input.ClientToken ?? generateIdempotencyToken(),
3459
3459
  ...(input.ExportFormat != null && { ExportFormat: input.ExportFormat }),
3460
- ...(input.ExportTime != null && { ExportTime: Math.round(input.ExportTime.getTime() / 1000).toString() }),
3460
+ ...(input.ExportTime != null && { ExportTime: Math.round(input.ExportTime.getTime() / 1000) }),
3461
3461
  ...(input.S3Bucket != null && { S3Bucket: input.S3Bucket }),
3462
3462
  ...(input.S3BucketOwner != null && { S3BucketOwner: input.S3BucketOwner }),
3463
3463
  ...(input.S3Prefix != null && { S3Prefix: input.S3Prefix }),
@@ -3680,10 +3680,10 @@ const serializeAws_json1_0ListBackupsInput = (input, context) => {
3680
3680
  ...(input.Limit != null && { Limit: input.Limit }),
3681
3681
  ...(input.TableName != null && { TableName: input.TableName }),
3682
3682
  ...(input.TimeRangeLowerBound != null && {
3683
- TimeRangeLowerBound: Math.round(input.TimeRangeLowerBound.getTime() / 1000).toString(),
3683
+ TimeRangeLowerBound: Math.round(input.TimeRangeLowerBound.getTime() / 1000),
3684
3684
  }),
3685
3685
  ...(input.TimeRangeUpperBound != null && {
3686
- TimeRangeUpperBound: Math.round(input.TimeRangeUpperBound.getTime() / 1000).toString(),
3686
+ TimeRangeUpperBound: Math.round(input.TimeRangeUpperBound.getTime() / 1000),
3687
3687
  }),
3688
3688
  };
3689
3689
  };
@@ -4066,9 +4066,7 @@ const serializeAws_json1_0RestoreTableToPointInTimeInput = (input, context) => {
4066
4066
  ...(input.ProvisionedThroughputOverride != null && {
4067
4067
  ProvisionedThroughputOverride: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughputOverride, context),
4068
4068
  }),
4069
- ...(input.RestoreDateTime != null && {
4070
- RestoreDateTime: Math.round(input.RestoreDateTime.getTime() / 1000).toString(),
4071
- }),
4069
+ ...(input.RestoreDateTime != null && { RestoreDateTime: Math.round(input.RestoreDateTime.getTime() / 1000) }),
4072
4070
  ...(input.SSESpecificationOverride != null && {
4073
4071
  SSESpecificationOverride: serializeAws_json1_0SSESpecification(input.SSESpecificationOverride, context),
4074
4072
  }),
@@ -6,8 +6,8 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
6
6
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
7
7
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
8
8
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
9
- import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
10
- 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 { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
10
+ 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";
11
11
  import { BatchExecuteStatementCommandInput, BatchExecuteStatementCommandOutput } from "./commands/BatchExecuteStatementCommand";
12
12
  import { BatchGetItemCommandInput, BatchGetItemCommandOutput } from "./commands/BatchGetItemCommand";
13
13
  import { BatchWriteItemCommandInput, BatchWriteItemCommandOutput } from "./commands/BatchWriteItemCommand";
@@ -70,11 +70,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
70
70
  */
71
71
  requestHandler?: __HttpHandler;
72
72
  /**
73
- * A constructor for a class implementing the {@link __Hash} interface
73
+ * A constructor for a class implementing the {@link __Checksum} interface
74
74
  * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
75
75
  * @internal
76
76
  */
77
- sha256?: __HashConstructor;
77
+ sha256?: __ChecksumConstructor | __HashConstructor;
78
78
  /**
79
79
  * The function that will be used to convert strings into HTTP endpoints.
80
80
  * @internal
@@ -166,9 +166,9 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
166
166
  */
167
167
  endpointDiscoveryEnabledProvider?: __Provider<boolean | undefined>;
168
168
  /**
169
- * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
169
+ * The {@link __DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
170
170
  */
171
- defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
171
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
172
172
  }
173
173
  declare type DynamoDBClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & EndpointDiscoveryInputConfig & ClientInputEndpointParameters;
174
174
  /**
@@ -29,12 +29,13 @@ import {
29
29
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
30
30
  import {
31
31
  Client as __Client,
32
- DefaultsMode,
32
+ DefaultsMode as __DefaultsMode,
33
33
  SmithyConfiguration as __SmithyConfiguration,
34
34
  SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
35
35
  } from "@aws-sdk/smithy-client";
36
36
  import {
37
37
  BodyLengthCalculator as __BodyLengthCalculator,
38
+ ChecksumConstructor as __ChecksumConstructor,
38
39
  Credentials as __Credentials,
39
40
  Decoder as __Decoder,
40
41
  Encoder as __Encoder,
@@ -369,7 +370,7 @@ export declare type ServiceOutputTypes =
369
370
  export interface ClientDefaults
370
371
  extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
371
372
  requestHandler?: __HttpHandler;
372
- sha256?: __HashConstructor;
373
+ sha256?: __ChecksumConstructor | __HashConstructor;
373
374
  urlParser?: __UrlParser;
374
375
  bodyLengthChecker?: __BodyLengthCalculator;
375
376
  streamCollector?: __StreamCollector;
@@ -389,7 +390,7 @@ export interface ClientDefaults
389
390
  credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
390
391
  defaultUserAgentProvider?: Provider<__UserAgent>;
391
392
  endpointDiscoveryEnabledProvider?: __Provider<boolean | undefined>;
392
- defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
393
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
393
394
  }
394
395
  declare type DynamoDBClientConfigType = Partial<
395
396
  __SmithyConfiguration<__HttpHandlerOptions>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-dynamodb",
3
3
  "description": "AWS SDK for JavaScript Dynamodb 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,43 +18,43 @@
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-endpoint-discovery": "3.234.0",
32
- "@aws-sdk/middleware-host-header": "3.226.0",
33
- "@aws-sdk/middleware-logger": "3.226.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.226.0",
35
- "@aws-sdk/middleware-retry": "3.235.0",
36
- "@aws-sdk/middleware-serde": "3.226.0",
37
- "@aws-sdk/middleware-signing": "3.226.0",
38
- "@aws-sdk/middleware-stack": "3.226.0",
39
- "@aws-sdk/middleware-user-agent": "3.226.0",
40
- "@aws-sdk/node-config-provider": "3.226.0",
41
- "@aws-sdk/node-http-handler": "3.226.0",
42
- "@aws-sdk/protocol-http": "3.226.0",
43
- "@aws-sdk/smithy-client": "3.234.0",
44
- "@aws-sdk/types": "3.226.0",
45
- "@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-endpoint-discovery": "3.254.0",
32
+ "@aws-sdk/middleware-host-header": "3.254.0",
33
+ "@aws-sdk/middleware-logger": "3.254.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.254.0",
35
+ "@aws-sdk/middleware-retry": "3.254.0",
36
+ "@aws-sdk/middleware-serde": "3.254.0",
37
+ "@aws-sdk/middleware-signing": "3.254.0",
38
+ "@aws-sdk/middleware-stack": "3.254.0",
39
+ "@aws-sdk/middleware-user-agent": "3.254.0",
40
+ "@aws-sdk/node-config-provider": "3.254.0",
41
+ "@aws-sdk/node-http-handler": "3.254.0",
42
+ "@aws-sdk/protocol-http": "3.254.0",
43
+ "@aws-sdk/smithy-client": "3.254.0",
44
+ "@aws-sdk/types": "3.254.0",
45
+ "@aws-sdk/url-parser": "3.254.0",
46
46
  "@aws-sdk/util-base64": "3.208.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.188.0",
48
48
  "@aws-sdk/util-body-length-node": "3.208.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.234.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.234.0",
51
- "@aws-sdk/util-endpoints": "3.245.0",
52
- "@aws-sdk/util-retry": "3.229.0",
53
- "@aws-sdk/util-user-agent-browser": "3.226.0",
54
- "@aws-sdk/util-user-agent-node": "3.226.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.254.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.254.0",
51
+ "@aws-sdk/util-endpoints": "3.254.0",
52
+ "@aws-sdk/util-retry": "3.254.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.254.0",
54
+ "@aws-sdk/util-user-agent-node": "3.254.0",
55
55
  "@aws-sdk/util-utf8-browser": "3.188.0",
56
56
  "@aws-sdk/util-utf8-node": "3.208.0",
57
- "@aws-sdk/util-waiter": "3.226.0",
57
+ "@aws-sdk/util-waiter": "3.254.0",
58
58
  "tslib": "^2.3.1",
59
59
  "uuid": "^8.3.2"
60
60
  },