@aws-sdk/client-dynamodb-streams 3.1025.0 → 3.1026.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.
@@ -6,6 +6,7 @@ const protocols_1 = require("@aws-sdk/core/protocols");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  const url_parser_1 = require("@smithy/url-parser");
8
8
  const util_base64_1 = require("@smithy/util-base64");
9
+ const util_retry_1 = require("@smithy/util-retry");
9
10
  const util_utf8_1 = require("@smithy/util-utf8");
10
11
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
11
12
  const endpointResolver_1 = require("./endpoint/endpointResolver");
@@ -35,6 +36,12 @@ const getRuntimeConfig = (config) => {
35
36
  version: "2012-08-10",
36
37
  serviceTarget: "DynamoDBStreams_20120810",
37
38
  },
39
+ retryStrategy: config?.retryStrategy ?? (config?.maxAttempts == null && config?.retryMode == null && util_retry_1.Retry.v2026
40
+ ? new util_retry_1.StandardRetryStrategy({
41
+ maxAttempts: 4,
42
+ baseDelay: 25,
43
+ })
44
+ : undefined),
38
45
  serviceId: config?.serviceId ?? "DynamoDB Streams",
39
46
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
40
47
  utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
@@ -3,6 +3,7 @@ import { AwsJson1_0Protocol } from "@aws-sdk/core/protocols";
3
3
  import { NoOpLogger } from "@smithy/smithy-client";
4
4
  import { parseUrl } from "@smithy/url-parser";
5
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
6
+ import { Retry, StandardRetryStrategy } from "@smithy/util-retry";
6
7
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
8
  import { defaultDynamoDBStreamsHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
8
9
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
@@ -32,6 +33,12 @@ export const getRuntimeConfig = (config) => {
32
33
  version: "2012-08-10",
33
34
  serviceTarget: "DynamoDBStreams_20120810",
34
35
  },
36
+ retryStrategy: config?.retryStrategy ?? (config?.maxAttempts == null && config?.retryMode == null && Retry.v2026
37
+ ? new StandardRetryStrategy({
38
+ maxAttempts: 4,
39
+ baseDelay: 25,
40
+ })
41
+ : undefined),
35
42
  serviceId: config?.serviceId ?? "DynamoDB Streams",
36
43
  urlParser: config?.urlParser ?? parseUrl,
37
44
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
@@ -36,7 +36,7 @@ export declare const getRuntimeConfig: (config: DynamoDBStreamsClientConfig) =>
36
36
  extensions: import("./runtimeExtensions").RuntimeExtension[];
37
37
  customUserAgent?: string | import("@smithy/types").UserAgent;
38
38
  userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
39
- retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
39
+ retryStrategy: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
40
40
  endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
41
41
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
42
42
  logger?: import("@smithy/types").Logger;
@@ -37,7 +37,7 @@ export declare const getRuntimeConfig: (config: DynamoDBStreamsClientConfig) =>
37
37
  logger: import("@smithy/types").Logger;
38
38
  extensions: import("./runtimeExtensions").RuntimeExtension[];
39
39
  customUserAgent?: string | import("@smithy/types").UserAgent;
40
- retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
40
+ retryStrategy: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
41
41
  endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
42
42
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
43
43
  logger?: import("@smithy/types").Logger;
@@ -35,7 +35,7 @@ export declare const getRuntimeConfig: (config: DynamoDBStreamsClientConfig) =>
35
35
  defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
36
36
  customUserAgent?: string | import("@smithy/types").UserAgent;
37
37
  userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
38
- retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
38
+ retryStrategy: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
39
39
  endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
40
40
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
41
41
  logger?: import("@smithy/types").Logger;
@@ -20,6 +20,7 @@ export declare const getRuntimeConfig: (config: DynamoDBStreamsClientConfig) =>
20
20
  [setting: string]: unknown;
21
21
  defaultNamespace?: string;
22
22
  };
23
+ retryStrategy: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
23
24
  serviceId: string;
24
25
  urlParser: import("@smithy/types").UrlParser;
25
26
  utf8Decoder: import("@smithy/types").Decoder;
@@ -53,7 +53,7 @@ export declare const getRuntimeConfig: (
53
53
  | string
54
54
  | undefined
55
55
  | import("@smithy/types").Provider<string | undefined>;
56
- retryStrategy?:
56
+ retryStrategy:
57
57
  | import("@smithy/types").RetryStrategy
58
58
  | import("@smithy/types").RetryStrategyV2;
59
59
  endpoint?:
@@ -49,7 +49,7 @@ export declare const getRuntimeConfig: (
49
49
  logger: import("@smithy/types").Logger;
50
50
  extensions: import("./runtimeExtensions").RuntimeExtension[];
51
51
  customUserAgent?: string | import("@smithy/types").UserAgent;
52
- retryStrategy?:
52
+ retryStrategy:
53
53
  | import("@smithy/types").RetryStrategy
54
54
  | import("@smithy/types").RetryStrategyV2;
55
55
  endpoint?:
@@ -57,7 +57,7 @@ export declare const getRuntimeConfig: (
57
57
  | string
58
58
  | undefined
59
59
  | import("@smithy/types").Provider<string | undefined>;
60
- retryStrategy?:
60
+ retryStrategy:
61
61
  | import("@smithy/types").RetryStrategy
62
62
  | import("@smithy/types").RetryStrategyV2;
63
63
  endpoint?:
@@ -25,6 +25,10 @@ export declare const getRuntimeConfig: (
25
25
  [setting: string]: unknown;
26
26
  defaultNamespace?: string;
27
27
  };
28
+ retryStrategy:
29
+ | import("@smithy/types").RetryStrategy
30
+ | import("@smithy/types").RetryStrategyV2
31
+ | undefined;
28
32
  serviceId: string;
29
33
  urlParser: import("@smithy/types").UrlParser;
30
34
  utf8Decoder: import("@smithy/types").Decoder;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-dynamodb-streams",
3
3
  "description": "AWS SDK for JavaScript Dynamodb Streams Client for Node.js, Browser and React Native",
4
- "version": "3.1025.0",
4
+ "version": "3.1026.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-dynamodb-streams",
@@ -27,46 +27,46 @@
27
27
  "dependencies": {
28
28
  "@aws-crypto/sha256-browser": "5.2.0",
29
29
  "@aws-crypto/sha256-js": "5.2.0",
30
- "@aws-sdk/core": "^3.973.26",
31
- "@aws-sdk/credential-provider-node": "^3.972.29",
32
- "@aws-sdk/middleware-host-header": "^3.972.8",
33
- "@aws-sdk/middleware-logger": "^3.972.8",
34
- "@aws-sdk/middleware-recursion-detection": "^3.972.9",
35
- "@aws-sdk/middleware-user-agent": "^3.972.28",
36
- "@aws-sdk/region-config-resolver": "^3.972.10",
37
- "@aws-sdk/types": "^3.973.6",
38
- "@aws-sdk/util-endpoints": "^3.996.5",
39
- "@aws-sdk/util-user-agent-browser": "^3.972.8",
40
- "@aws-sdk/util-user-agent-node": "^3.973.14",
41
- "@smithy/config-resolver": "^4.4.13",
42
- "@smithy/core": "^3.23.13",
43
- "@smithy/fetch-http-handler": "^5.3.15",
44
- "@smithy/hash-node": "^4.2.12",
45
- "@smithy/invalid-dependency": "^4.2.12",
46
- "@smithy/middleware-content-length": "^4.2.12",
47
- "@smithy/middleware-endpoint": "^4.4.28",
48
- "@smithy/middleware-retry": "^4.4.46",
49
- "@smithy/middleware-serde": "^4.2.16",
50
- "@smithy/middleware-stack": "^4.2.12",
51
- "@smithy/node-config-provider": "^4.3.12",
52
- "@smithy/node-http-handler": "^4.5.1",
53
- "@smithy/protocol-http": "^5.3.12",
54
- "@smithy/smithy-client": "^4.12.8",
55
- "@smithy/types": "^4.13.1",
56
- "@smithy/url-parser": "^4.2.12",
30
+ "@aws-sdk/core": "^3.973.27",
31
+ "@aws-sdk/credential-provider-node": "^3.972.30",
32
+ "@aws-sdk/middleware-host-header": "^3.972.9",
33
+ "@aws-sdk/middleware-logger": "^3.972.9",
34
+ "@aws-sdk/middleware-recursion-detection": "^3.972.10",
35
+ "@aws-sdk/middleware-user-agent": "^3.972.29",
36
+ "@aws-sdk/region-config-resolver": "^3.972.11",
37
+ "@aws-sdk/types": "^3.973.7",
38
+ "@aws-sdk/util-endpoints": "^3.996.6",
39
+ "@aws-sdk/util-user-agent-browser": "^3.972.9",
40
+ "@aws-sdk/util-user-agent-node": "^3.973.15",
41
+ "@smithy/config-resolver": "^4.4.14",
42
+ "@smithy/core": "^3.23.14",
43
+ "@smithy/fetch-http-handler": "^5.3.16",
44
+ "@smithy/hash-node": "^4.2.13",
45
+ "@smithy/invalid-dependency": "^4.2.13",
46
+ "@smithy/middleware-content-length": "^4.2.13",
47
+ "@smithy/middleware-endpoint": "^4.4.29",
48
+ "@smithy/middleware-retry": "^4.5.0",
49
+ "@smithy/middleware-serde": "^4.2.17",
50
+ "@smithy/middleware-stack": "^4.2.13",
51
+ "@smithy/node-config-provider": "^4.3.13",
52
+ "@smithy/node-http-handler": "^4.5.2",
53
+ "@smithy/protocol-http": "^5.3.13",
54
+ "@smithy/smithy-client": "^4.12.9",
55
+ "@smithy/types": "^4.14.0",
56
+ "@smithy/url-parser": "^4.2.13",
57
57
  "@smithy/util-base64": "^4.3.2",
58
58
  "@smithy/util-body-length-browser": "^4.2.2",
59
59
  "@smithy/util-body-length-node": "^4.2.3",
60
- "@smithy/util-defaults-mode-browser": "^4.3.44",
61
- "@smithy/util-defaults-mode-node": "^4.2.48",
62
- "@smithy/util-endpoints": "^3.3.3",
63
- "@smithy/util-middleware": "^4.2.12",
64
- "@smithy/util-retry": "^4.2.13",
60
+ "@smithy/util-defaults-mode-browser": "^4.3.45",
61
+ "@smithy/util-defaults-mode-node": "^4.2.49",
62
+ "@smithy/util-endpoints": "^3.3.4",
63
+ "@smithy/util-middleware": "^4.2.13",
64
+ "@smithy/util-retry": "^4.3.0",
65
65
  "@smithy/util-utf8": "^4.2.2",
66
66
  "tslib": "^2.6.2"
67
67
  },
68
68
  "devDependencies": {
69
- "@smithy/snapshot-testing": "^2.0.4",
69
+ "@smithy/snapshot-testing": "^2.0.5",
70
70
  "@tsconfig/node20": "20.1.8",
71
71
  "@types/node": "^20.14.8",
72
72
  "concurrently": "7.0.0",