@cdklabs/cdk-ecs-codedeploy 0.0.149 → 0.0.151

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.
Files changed (94) hide show
  1. package/.jsii +3 -3
  2. package/lib/api-canary/index.js +1 -1
  3. package/lib/ecs-appspec/index.js +1 -1
  4. package/lib/ecs-deployment/index.js +1 -1
  5. package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
  6. package/node_modules/@aws-sdk/abort-controller/package.json +2 -2
  7. package/node_modules/@aws-sdk/client-codedeploy/README.md +0 -3
  8. package/node_modules/@aws-sdk/client-codedeploy/package.json +30 -30
  9. package/node_modules/@aws-sdk/client-sso/README.md +0 -3
  10. package/node_modules/@aws-sdk/client-sso/package.json +26 -26
  11. package/node_modules/@aws-sdk/client-sso-oidc/README.md +0 -3
  12. package/node_modules/@aws-sdk/client-sso-oidc/package.json +26 -26
  13. package/node_modules/@aws-sdk/client-sts/README.md +1 -5
  14. package/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js +3 -3
  15. package/node_modules/@aws-sdk/client-sts/dist-es/endpoint/ruleset.js +3 -3
  16. package/node_modules/@aws-sdk/client-sts/dist-types/STS.d.ts +1 -2
  17. package/node_modules/@aws-sdk/client-sts/dist-types/STSClient.d.ts +1 -2
  18. package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleCommand.d.ts +4 -4
  19. package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithWebIdentityCommand.d.ts +2 -3
  20. package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetCallerIdentityCommand.d.ts +4 -6
  21. package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetFederationTokenCommand.d.ts +8 -11
  22. package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetSessionTokenCommand.d.ts +15 -17
  23. package/node_modules/@aws-sdk/client-sts/dist-types/models/models_0.d.ts +2 -2
  24. package/node_modules/@aws-sdk/client-sts/package.json +29 -29
  25. package/node_modules/@aws-sdk/config-resolver/package.json +4 -4
  26. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  27. package/node_modules/@aws-sdk/credential-provider-imds/package.json +5 -5
  28. package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  29. package/node_modules/@aws-sdk/credential-provider-node/package.json +10 -10
  30. package/node_modules/@aws-sdk/credential-provider-process/package.json +4 -4
  31. package/node_modules/@aws-sdk/credential-provider-sso/package.json +6 -6
  32. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  33. package/node_modules/@aws-sdk/fetch-http-handler/dist-cjs/fetch-http-handler.js +1 -1
  34. package/node_modules/@aws-sdk/fetch-http-handler/dist-es/fetch-http-handler.js +1 -1
  35. package/node_modules/@aws-sdk/fetch-http-handler/package.json +5 -5
  36. package/node_modules/@aws-sdk/hash-node/package.json +2 -2
  37. package/node_modules/@aws-sdk/invalid-dependency/package.json +2 -2
  38. package/node_modules/@aws-sdk/middleware-content-length/package.json +3 -3
  39. package/node_modules/@aws-sdk/middleware-endpoint/package.json +5 -5
  40. package/node_modules/@aws-sdk/middleware-host-header/package.json +3 -3
  41. package/node_modules/@aws-sdk/middleware-logger/package.json +2 -2
  42. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +3 -3
  43. package/node_modules/@aws-sdk/middleware-retry/dist-cjs/retryMiddleware.js +2 -2
  44. package/node_modules/@aws-sdk/middleware-retry/dist-es/retryMiddleware.js +2 -2
  45. package/node_modules/@aws-sdk/middleware-retry/package.json +7 -7
  46. package/node_modules/@aws-sdk/middleware-sdk-sts/package.json +3 -3
  47. package/node_modules/@aws-sdk/middleware-serde/package.json +4 -3
  48. package/node_modules/@aws-sdk/middleware-signing/package.json +8 -7
  49. package/node_modules/@aws-sdk/middleware-stack/package.json +4 -3
  50. package/node_modules/@aws-sdk/middleware-user-agent/package.json +6 -5
  51. package/node_modules/@aws-sdk/node-config-provider/package.json +4 -4
  52. package/node_modules/@aws-sdk/node-http-handler/package.json +5 -5
  53. package/node_modules/@aws-sdk/property-provider/package.json +2 -2
  54. package/node_modules/@aws-sdk/protocol-http/package.json +2 -2
  55. package/node_modules/@aws-sdk/querystring-builder/package.json +2 -2
  56. package/node_modules/@aws-sdk/querystring-parser/package.json +2 -2
  57. package/node_modules/@aws-sdk/service-error-classification/package.json +2 -2
  58. package/node_modules/@aws-sdk/shared-ini-file-loader/package.json +2 -2
  59. package/node_modules/@aws-sdk/signature-v4/package.json +4 -4
  60. package/node_modules/@aws-sdk/smithy-client/package.json +3 -3
  61. package/node_modules/@aws-sdk/token-providers/package.json +5 -5
  62. package/node_modules/@aws-sdk/types/dist-types/retry.d.ts +1 -1
  63. package/node_modules/@aws-sdk/types/package.json +1 -1
  64. package/node_modules/@aws-sdk/url-parser/package.json +3 -3
  65. package/node_modules/@aws-sdk/util-defaults-mode-browser/package.json +4 -4
  66. package/node_modules/@aws-sdk/util-defaults-mode-node/package.json +7 -7
  67. package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
  68. package/node_modules/@aws-sdk/util-middleware/package.json +2 -2
  69. package/node_modules/@aws-sdk/util-retry/README.md +54 -3
  70. package/node_modules/@aws-sdk/util-retry/dist-cjs/ConfiguredRetryStrategy.js +22 -0
  71. package/node_modules/@aws-sdk/util-retry/dist-cjs/StandardRetryStrategy.js +3 -3
  72. package/node_modules/@aws-sdk/util-retry/dist-cjs/config.js +1 -1
  73. package/node_modules/@aws-sdk/util-retry/dist-cjs/index.js +1 -0
  74. package/node_modules/@aws-sdk/util-retry/dist-es/ConfiguredRetryStrategy.js +18 -0
  75. package/node_modules/@aws-sdk/util-retry/dist-es/StandardRetryStrategy.js +3 -3
  76. package/node_modules/@aws-sdk/util-retry/dist-es/config.js +1 -1
  77. package/node_modules/@aws-sdk/util-retry/dist-es/index.js +1 -0
  78. package/node_modules/@aws-sdk/util-retry/dist-types/AdaptiveRetryStrategy.d.ts +2 -2
  79. package/node_modules/@aws-sdk/util-retry/dist-types/ConfiguredRetryStrategy.d.ts +32 -0
  80. package/node_modules/@aws-sdk/util-retry/dist-types/DefaultRateLimiter.d.ts +2 -2
  81. package/node_modules/@aws-sdk/util-retry/dist-types/StandardRetryStrategy.d.ts +5 -3
  82. package/node_modules/@aws-sdk/util-retry/dist-types/config.d.ts +4 -4
  83. package/node_modules/@aws-sdk/util-retry/dist-types/constants.d.ts +9 -9
  84. package/node_modules/@aws-sdk/util-retry/dist-types/defaultRetryToken.d.ts +1 -1
  85. package/node_modules/@aws-sdk/util-retry/dist-types/index.d.ts +1 -18
  86. package/node_modules/@aws-sdk/util-retry/dist-types/ts3.4/ConfiguredRetryStrategy.d.ts +24 -0
  87. package/node_modules/@aws-sdk/util-retry/dist-types/ts3.4/StandardRetryStrategy.d.ts +4 -2
  88. package/node_modules/@aws-sdk/util-retry/dist-types/ts3.4/config.d.ts +1 -1
  89. package/node_modules/@aws-sdk/util-retry/dist-types/ts3.4/index.d.ts +1 -0
  90. package/node_modules/@aws-sdk/util-retry/package.json +3 -3
  91. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +2 -2
  92. package/node_modules/@aws-sdk/util-user-agent-node/package.json +3 -3
  93. package/node_modules/@aws-sdk/util-waiter/package.json +3 -3
  94. package/package.json +4 -4
@@ -31,7 +31,7 @@ const retryMiddleware = (options) => (next, context) => async (args) => {
31
31
  return { response, output };
32
32
  }
33
33
  catch (e) {
34
- const retryErrorInfo = getRetyErrorInto(e);
34
+ const retryErrorInfo = getRetryErrorInfo(e);
35
35
  lastError = (0, util_1.asSdkError)(e);
36
36
  try {
37
37
  retryToken = await retryStrategy.refreshRetryTokenForRetry(retryToken, retryErrorInfo);
@@ -62,7 +62,7 @@ exports.retryMiddleware = retryMiddleware;
62
62
  const isRetryStrategyV2 = (retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" &&
63
63
  typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" &&
64
64
  typeof retryStrategy.recordSuccess !== "undefined";
65
- const getRetyErrorInto = (error) => {
65
+ const getRetryErrorInfo = (error) => {
66
66
  const errorInfo = {
67
67
  errorType: getRetryErrorType(error),
68
68
  };
@@ -28,7 +28,7 @@ export const retryMiddleware = (options) => (next, context) => async (args) => {
28
28
  return { response, output };
29
29
  }
30
30
  catch (e) {
31
- const retryErrorInfo = getRetyErrorInto(e);
31
+ const retryErrorInfo = getRetryErrorInfo(e);
32
32
  lastError = asSdkError(e);
33
33
  try {
34
34
  retryToken = await retryStrategy.refreshRetryTokenForRetry(retryToken, retryErrorInfo);
@@ -58,7 +58,7 @@ export const retryMiddleware = (options) => (next, context) => async (args) => {
58
58
  const isRetryStrategyV2 = (retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" &&
59
59
  typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" &&
60
60
  typeof retryStrategy.recordSuccess !== "undefined";
61
- const getRetyErrorInto = (error) => {
61
+ const getRetryErrorInfo = (error) => {
62
62
  const errorInfo = {
63
63
  errorType: getRetryErrorType(error),
64
64
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-retry",
3
- "version": "3.327.0",
3
+ "version": "3.329.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,16 +21,16 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@aws-sdk/protocol-http": "3.310.0",
25
- "@aws-sdk/service-error-classification": "3.327.0",
26
- "@aws-sdk/types": "3.310.0",
27
- "@aws-sdk/util-middleware": "3.310.0",
28
- "@aws-sdk/util-retry": "3.327.0",
24
+ "@aws-sdk/protocol-http": "3.329.0",
25
+ "@aws-sdk/service-error-classification": "3.329.0",
26
+ "@aws-sdk/types": "3.329.0",
27
+ "@aws-sdk/util-middleware": "3.329.0",
28
+ "@aws-sdk/util-retry": "3.329.0",
29
29
  "tslib": "^2.5.0",
30
30
  "uuid": "^8.3.2"
31
31
  },
32
32
  "devDependencies": {
33
- "@aws-sdk/node-config-provider": "3.310.0",
33
+ "@aws-sdk/node-config-provider": "3.329.0",
34
34
  "@tsconfig/recommended": "1.0.1",
35
35
  "@types/uuid": "^8.3.0",
36
36
  "concurrently": "7.0.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-sdk-sts",
3
- "version": "3.326.0",
3
+ "version": "3.329.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,8 +21,8 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@aws-sdk/middleware-signing": "3.325.0",
25
- "@aws-sdk/types": "3.310.0",
24
+ "@aws-sdk/middleware-signing": "3.329.0",
25
+ "@aws-sdk/types": "3.329.0",
26
26
  "tslib": "^2.5.0"
27
27
  },
28
28
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-serde",
3
- "version": "3.325.0",
3
+ "version": "3.329.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -9,7 +9,8 @@
9
9
  "build:types": "tsc -p tsconfig.types.json",
10
10
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
11
11
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
12
- "test": "jest"
12
+ "test": "jest",
13
+ "test:integration": "jest -c jest.config.integ.js"
13
14
  },
14
15
  "main": "./dist-cjs/index.js",
15
16
  "module": "./dist-es/index.js",
@@ -20,7 +21,7 @@
20
21
  },
21
22
  "license": "Apache-2.0",
22
23
  "dependencies": {
23
- "@aws-sdk/types": "3.310.0",
24
+ "@aws-sdk/types": "3.329.0",
24
25
  "tslib": "^2.5.0"
25
26
  },
26
27
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-signing",
3
- "version": "3.325.0",
3
+ "version": "3.329.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -9,7 +9,8 @@
9
9
  "build:types": "tsc -p tsconfig.types.json",
10
10
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
11
11
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
12
- "test": "jest --passWithNoTests"
12
+ "test": "jest --passWithNoTests",
13
+ "test:integration": "jest -c jest.config.integ.js"
13
14
  },
14
15
  "main": "./dist-cjs/index.js",
15
16
  "module": "./dist-es/index.js",
@@ -20,11 +21,11 @@
20
21
  },
21
22
  "license": "Apache-2.0",
22
23
  "dependencies": {
23
- "@aws-sdk/property-provider": "3.310.0",
24
- "@aws-sdk/protocol-http": "3.310.0",
25
- "@aws-sdk/signature-v4": "3.310.0",
26
- "@aws-sdk/types": "3.310.0",
27
- "@aws-sdk/util-middleware": "3.310.0",
24
+ "@aws-sdk/property-provider": "3.329.0",
25
+ "@aws-sdk/protocol-http": "3.329.0",
26
+ "@aws-sdk/signature-v4": "3.329.0",
27
+ "@aws-sdk/types": "3.329.0",
28
+ "@aws-sdk/util-middleware": "3.329.0",
28
29
  "tslib": "^2.5.0"
29
30
  },
30
31
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-stack",
3
- "version": "3.325.0",
3
+ "version": "3.329.0",
4
4
  "description": "Provides a means for composing multiple middleware functions into a single handler",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
@@ -10,7 +10,8 @@
10
10
  "build:types": "tsc -p tsconfig.types.json",
11
11
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
12
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
13
- "test": "jest"
13
+ "test": "jest",
14
+ "test:integration": "jest -c jest.config.integ.js --passWithNoTests"
14
15
  },
15
16
  "author": {
16
17
  "name": "AWS SDK for JavaScript Team",
@@ -25,7 +26,7 @@
25
26
  "tslib": "^2.5.0"
26
27
  },
27
28
  "devDependencies": {
28
- "@aws-sdk/types": "3.310.0",
29
+ "@aws-sdk/types": "3.329.0",
29
30
  "@tsconfig/recommended": "1.0.1",
30
31
  "concurrently": "7.0.0",
31
32
  "downlevel-dts": "0.10.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-user-agent",
3
- "version": "3.327.0",
3
+ "version": "3.329.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -9,7 +9,8 @@
9
9
  "build:types": "tsc -p tsconfig.types.json",
10
10
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
11
11
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
12
- "test": "jest --passWithNoTests"
12
+ "test": "jest --passWithNoTests",
13
+ "test:integration": "jest -c jest.config.integ.js"
13
14
  },
14
15
  "main": "./dist-cjs/index.js",
15
16
  "module": "./dist-es/index.js",
@@ -20,9 +21,9 @@
20
21
  },
21
22
  "license": "Apache-2.0",
22
23
  "dependencies": {
23
- "@aws-sdk/protocol-http": "3.310.0",
24
- "@aws-sdk/types": "3.310.0",
25
- "@aws-sdk/util-endpoints": "3.327.0",
24
+ "@aws-sdk/protocol-http": "3.329.0",
25
+ "@aws-sdk/types": "3.329.0",
26
+ "@aws-sdk/util-endpoints": "3.329.0",
26
27
  "tslib": "^2.5.0"
27
28
  },
28
29
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/node-config-provider",
3
- "version": "3.310.0",
3
+ "version": "3.329.0",
4
4
  "description": "Load config default values from ini config files and environmental variable",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
@@ -22,9 +22,9 @@
22
22
  "module": "./dist-es/index.js",
23
23
  "types": "./dist-types/index.d.ts",
24
24
  "dependencies": {
25
- "@aws-sdk/property-provider": "3.310.0",
26
- "@aws-sdk/shared-ini-file-loader": "3.310.0",
27
- "@aws-sdk/types": "3.310.0",
25
+ "@aws-sdk/property-provider": "3.329.0",
26
+ "@aws-sdk/shared-ini-file-loader": "3.329.0",
27
+ "@aws-sdk/types": "3.329.0",
28
28
  "tslib": "^2.5.0"
29
29
  },
30
30
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/node-http-handler",
3
- "version": "3.328.0",
3
+ "version": "3.329.0",
4
4
  "description": "Provides a way to make requests",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
@@ -22,10 +22,10 @@
22
22
  "module": "./dist-es/index.js",
23
23
  "types": "./dist-types/index.d.ts",
24
24
  "dependencies": {
25
- "@aws-sdk/abort-controller": "3.310.0",
26
- "@aws-sdk/protocol-http": "3.310.0",
27
- "@aws-sdk/querystring-builder": "3.310.0",
28
- "@aws-sdk/types": "3.310.0",
25
+ "@aws-sdk/abort-controller": "3.329.0",
26
+ "@aws-sdk/protocol-http": "3.329.0",
27
+ "@aws-sdk/querystring-builder": "3.329.0",
28
+ "@aws-sdk/types": "3.329.0",
29
29
  "tslib": "^2.5.0"
30
30
  },
31
31
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/property-provider",
3
- "version": "3.310.0",
3
+ "version": "3.329.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/types": "3.310.0",
23
+ "@aws-sdk/types": "3.329.0",
24
24
  "tslib": "^2.5.0"
25
25
  },
26
26
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/protocol-http",
3
- "version": "3.310.0",
3
+ "version": "3.329.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@aws-sdk/types": "3.310.0",
24
+ "@aws-sdk/types": "3.329.0",
25
25
  "tslib": "^2.5.0"
26
26
  },
27
27
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/querystring-builder",
3
- "version": "3.310.0",
3
+ "version": "3.329.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/types": "3.310.0",
23
+ "@aws-sdk/types": "3.329.0",
24
24
  "@aws-sdk/util-uri-escape": "3.310.0",
25
25
  "tslib": "^2.5.0"
26
26
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/querystring-parser",
3
- "version": "3.310.0",
3
+ "version": "3.329.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/types": "3.310.0",
23
+ "@aws-sdk/types": "3.329.0",
24
24
  "tslib": "^2.5.0"
25
25
  },
26
26
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/service-error-classification",
3
- "version": "3.327.0",
3
+ "version": "3.329.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "devDependencies": {
23
- "@aws-sdk/types": "3.310.0",
23
+ "@aws-sdk/types": "3.329.0",
24
24
  "@tsconfig/recommended": "1.0.1",
25
25
  "concurrently": "7.0.0",
26
26
  "downlevel-dts": "0.10.1",
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@aws-sdk/shared-ini-file-loader",
3
- "version": "3.310.0",
3
+ "version": "3.329.0",
4
4
  "dependencies": {
5
- "@aws-sdk/types": "3.310.0",
5
+ "@aws-sdk/types": "3.329.0",
6
6
  "tslib": "^2.5.0"
7
7
  },
8
8
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/signature-v4",
3
- "version": "3.310.0",
3
+ "version": "3.329.0",
4
4
  "description": "A standalone implementation of the AWS Signature V4 request signing algorithm",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -22,16 +22,16 @@
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
24
  "@aws-sdk/is-array-buffer": "3.310.0",
25
- "@aws-sdk/types": "3.310.0",
25
+ "@aws-sdk/types": "3.329.0",
26
26
  "@aws-sdk/util-hex-encoding": "3.310.0",
27
- "@aws-sdk/util-middleware": "3.310.0",
27
+ "@aws-sdk/util-middleware": "3.329.0",
28
28
  "@aws-sdk/util-uri-escape": "3.310.0",
29
29
  "@aws-sdk/util-utf8": "3.310.0",
30
30
  "tslib": "^2.5.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@aws-crypto/sha256-js": "3.0.0",
34
- "@aws-sdk/protocol-http": "3.310.0",
34
+ "@aws-sdk/protocol-http": "3.329.0",
35
35
  "@tsconfig/recommended": "1.0.1",
36
36
  "concurrently": "7.0.0",
37
37
  "downlevel-dts": "0.10.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/smithy-client",
3
- "version": "3.325.0",
3
+ "version": "3.329.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,8 +20,8 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/middleware-stack": "3.325.0",
24
- "@aws-sdk/types": "3.310.0",
23
+ "@aws-sdk/middleware-stack": "3.329.0",
24
+ "@aws-sdk/types": "3.329.0",
25
25
  "tslib": "^2.5.0"
26
26
  },
27
27
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/token-providers",
3
- "version": "3.328.0",
3
+ "version": "3.329.0",
4
4
  "description": "A collection of token providers",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -25,10 +25,10 @@
25
25
  },
26
26
  "license": "Apache-2.0",
27
27
  "dependencies": {
28
- "@aws-sdk/client-sso-oidc": "3.328.0",
29
- "@aws-sdk/property-provider": "3.310.0",
30
- "@aws-sdk/shared-ini-file-loader": "3.310.0",
31
- "@aws-sdk/types": "3.310.0",
28
+ "@aws-sdk/client-sso-oidc": "3.329.0",
29
+ "@aws-sdk/property-provider": "3.329.0",
30
+ "@aws-sdk/shared-ini-file-loader": "3.329.0",
31
+ "@aws-sdk/types": "3.329.0",
32
32
  "tslib": "^2.5.0"
33
33
  },
34
34
  "devDependencies": {
@@ -124,7 +124,7 @@ export interface RetryStrategyV2 {
124
124
  */
125
125
  refreshRetryTokenForRetry(tokenToRenew: RetryToken, errorInfo: RetryErrorInfo): Promise<RetryToken>;
126
126
  /**
127
- * Upon successful completion of the operation, a user calls this function
127
+ * Upon successful completion of the operation, this function is called
128
128
  * to record that the operation was successful.
129
129
  */
130
130
  recordSuccess(token: RetryToken): void;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/types",
3
- "version": "3.310.0",
3
+ "version": "3.329.0",
4
4
  "main": "./dist-cjs/index.js",
5
5
  "module": "./dist-es/index.js",
6
6
  "types": "./dist-types/index.d.ts",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/url-parser",
3
- "version": "3.310.0",
3
+ "version": "3.329.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,8 +20,8 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/querystring-parser": "3.310.0",
24
- "@aws-sdk/types": "3.310.0",
23
+ "@aws-sdk/querystring-parser": "3.329.0",
24
+ "@aws-sdk/types": "3.329.0",
25
25
  "tslib": "^2.5.0"
26
26
  },
27
27
  "typesVersions": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-defaults-mode-browser",
3
- "version": "3.325.0",
3
+ "version": "3.329.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,13 +19,13 @@
19
19
  },
20
20
  "license": "Apache-2.0",
21
21
  "dependencies": {
22
- "@aws-sdk/property-provider": "3.310.0",
23
- "@aws-sdk/types": "3.310.0",
22
+ "@aws-sdk/property-provider": "3.329.0",
23
+ "@aws-sdk/types": "3.329.0",
24
24
  "bowser": "^2.11.0",
25
25
  "tslib": "^2.5.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@aws-sdk/smithy-client": "3.325.0",
28
+ "@aws-sdk/smithy-client": "3.329.0",
29
29
  "@tsconfig/recommended": "1.0.1",
30
30
  "@types/node": "^14.14.31",
31
31
  "concurrently": "7.0.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-defaults-mode-node",
3
- "version": "3.325.0",
3
+ "version": "3.329.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,15 +19,15 @@
19
19
  },
20
20
  "license": "Apache-2.0",
21
21
  "dependencies": {
22
- "@aws-sdk/config-resolver": "3.310.0",
23
- "@aws-sdk/credential-provider-imds": "3.310.0",
24
- "@aws-sdk/node-config-provider": "3.310.0",
25
- "@aws-sdk/property-provider": "3.310.0",
26
- "@aws-sdk/types": "3.310.0",
22
+ "@aws-sdk/config-resolver": "3.329.0",
23
+ "@aws-sdk/credential-provider-imds": "3.329.0",
24
+ "@aws-sdk/node-config-provider": "3.329.0",
25
+ "@aws-sdk/property-provider": "3.329.0",
26
+ "@aws-sdk/types": "3.329.0",
27
27
  "tslib": "^2.5.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@aws-sdk/smithy-client": "3.325.0",
30
+ "@aws-sdk/smithy-client": "3.329.0",
31
31
  "@tsconfig/recommended": "1.0.1",
32
32
  "@types/node": "^14.14.31",
33
33
  "concurrently": "7.0.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-endpoints",
3
- "version": "3.327.0",
3
+ "version": "3.329.0",
4
4
  "description": "Utilities to help with endpoint resolution",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@aws-sdk/types": "3.310.0",
25
+ "@aws-sdk/types": "3.329.0",
26
26
  "tslib": "^2.5.0"
27
27
  },
28
28
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-middleware",
3
- "version": "3.310.0",
3
+ "version": "3.329.0",
4
4
  "description": "Shared utilities for to be used in middleware packages.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -27,7 +27,7 @@
27
27
  "tslib": "^2.5.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@aws-sdk/types": "3.310.0",
30
+ "@aws-sdk/types": "3.329.0",
31
31
  "@tsconfig/recommended": "1.0.1",
32
32
  "@types/node": "^14.14.31",
33
33
  "concurrently": "7.0.0",
@@ -3,10 +3,61 @@
3
3
  [![NPM version](https://img.shields.io/npm/v/@aws-sdk/util-retry/latest.svg)](https://www.npmjs.com/package/@aws-sdk/util-retry)
4
4
  [![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/util-retry.svg)](https://www.npmjs.com/package/@aws-sdk/util-retry)
5
5
 
6
- > An internal package
7
-
8
6
  This package provides shared utilities for retries.
9
7
 
10
8
  ## Usage
11
9
 
12
- You probably shouldn't, at least directly.
10
+ ### Default
11
+
12
+ By default, each client already has a default retry strategy. The default retry count is 3, and
13
+ only retryable errors will be retried.
14
+
15
+ [AWS Documentation: Retry behavior](https://docs.aws.amazon.com/sdkref/latest/guide/feature-retry-behavior.html).
16
+
17
+ ```js
18
+ import { S3Client } from "@aws-sdk/client-s3";
19
+
20
+ const client = new S3Client({}); // default retry strategy included.
21
+ ```
22
+
23
+ ### MaxAttempts
24
+
25
+ If you want to change the number of attempts, you can use the `StandardRetryStrategy` from `@aws-sdk/util-retry`.
26
+
27
+ ```js
28
+ import { S3Client } from "@aws-sdk/client-s3";
29
+ import { StandardRetryStrategy } from "@aws-sdk/util-retry";
30
+
31
+ const client = new S3Client({
32
+ // custom max number of attempts.
33
+ retryStrategy: new StandardRetryStrategy(4),
34
+ });
35
+ ```
36
+
37
+ This is recommended because the `StandardRetryStrategy` includes backoff calculation,
38
+ deciding whether an error should be retried, and a retry token counter.
39
+
40
+ ### MaxAttempts and BackoffComputation
41
+
42
+ If you want to change the number of attempts and use a custom delay
43
+ computation, you can use the `ConfiguredRetryStrategy` from `@aws-sdk/util-retry`.
44
+
45
+ ```js
46
+ import { S3Client } from "@aws-sdk/client-s3";
47
+ import { ConfiguredRetryStrategy } from "@aws-sdk/util-retry";
48
+
49
+ const client = new S3Client({
50
+ retryStrategy: new ConfiguredRetryStrategy(
51
+ 4, // max attempts.
52
+ (attempt: number) => 100 + attempt * 1000 // backoff function.
53
+ ),
54
+ });
55
+ ```
56
+
57
+ This example sets the backoff at 100ms plus 1s per attempt.
58
+
59
+ ### Further customization
60
+
61
+ You can implement the `RetryStrategyV2` interface.
62
+
63
+ https://github.com/aws/aws-sdk-js-v3/blob/main/packages/types/src/retry.ts
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConfiguredRetryStrategy = void 0;
4
+ const constants_1 = require("./constants");
5
+ const StandardRetryStrategy_1 = require("./StandardRetryStrategy");
6
+ class ConfiguredRetryStrategy extends StandardRetryStrategy_1.StandardRetryStrategy {
7
+ constructor(maxAttempts, computeNextBackoffDelay = constants_1.DEFAULT_RETRY_DELAY_BASE) {
8
+ super(typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts);
9
+ if (typeof computeNextBackoffDelay === "number") {
10
+ this.computeNextBackoffDelay = () => computeNextBackoffDelay;
11
+ }
12
+ else {
13
+ this.computeNextBackoffDelay = computeNextBackoffDelay;
14
+ }
15
+ }
16
+ async refreshRetryTokenForRetry(tokenToRenew, errorInfo) {
17
+ const token = await super.refreshRetryTokenForRetry(tokenToRenew, errorInfo);
18
+ token.getRetryDelay = () => this.computeNextBackoffDelay(token.getRetryCount());
19
+ return token;
20
+ }
21
+ }
22
+ exports.ConfiguredRetryStrategy = ConfiguredRetryStrategy;