@aws-sdk/client-dynamodb 3.648.0 → 3.650.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.
Files changed (67) hide show
  1. package/dist-cjs/endpoint/endpointResolver.js +6 -2
  2. package/dist-cjs/index.js +57 -171
  3. package/dist-es/commands/BatchExecuteStatementCommand.js +1 -3
  4. package/dist-es/commands/BatchGetItemCommand.js +1 -3
  5. package/dist-es/commands/BatchWriteItemCommand.js +1 -3
  6. package/dist-es/commands/CreateBackupCommand.js +1 -3
  7. package/dist-es/commands/CreateGlobalTableCommand.js +1 -3
  8. package/dist-es/commands/CreateTableCommand.js +1 -3
  9. package/dist-es/commands/DeleteBackupCommand.js +1 -3
  10. package/dist-es/commands/DeleteItemCommand.js +1 -3
  11. package/dist-es/commands/DeleteResourcePolicyCommand.js +1 -3
  12. package/dist-es/commands/DeleteTableCommand.js +1 -3
  13. package/dist-es/commands/DescribeBackupCommand.js +1 -3
  14. package/dist-es/commands/DescribeContinuousBackupsCommand.js +1 -3
  15. package/dist-es/commands/DescribeContributorInsightsCommand.js +1 -3
  16. package/dist-es/commands/DescribeEndpointsCommand.js +1 -3
  17. package/dist-es/commands/DescribeExportCommand.js +1 -3
  18. package/dist-es/commands/DescribeGlobalTableCommand.js +1 -3
  19. package/dist-es/commands/DescribeGlobalTableSettingsCommand.js +1 -3
  20. package/dist-es/commands/DescribeImportCommand.js +1 -3
  21. package/dist-es/commands/DescribeKinesisStreamingDestinationCommand.js +1 -3
  22. package/dist-es/commands/DescribeLimitsCommand.js +1 -3
  23. package/dist-es/commands/DescribeTableCommand.js +1 -3
  24. package/dist-es/commands/DescribeTableReplicaAutoScalingCommand.js +1 -3
  25. package/dist-es/commands/DescribeTimeToLiveCommand.js +1 -3
  26. package/dist-es/commands/DisableKinesisStreamingDestinationCommand.js +1 -3
  27. package/dist-es/commands/EnableKinesisStreamingDestinationCommand.js +1 -3
  28. package/dist-es/commands/ExecuteStatementCommand.js +1 -3
  29. package/dist-es/commands/ExecuteTransactionCommand.js +1 -3
  30. package/dist-es/commands/ExportTableToPointInTimeCommand.js +1 -3
  31. package/dist-es/commands/GetItemCommand.js +1 -3
  32. package/dist-es/commands/GetResourcePolicyCommand.js +1 -3
  33. package/dist-es/commands/ImportTableCommand.js +1 -3
  34. package/dist-es/commands/ListBackupsCommand.js +1 -3
  35. package/dist-es/commands/ListContributorInsightsCommand.js +1 -3
  36. package/dist-es/commands/ListExportsCommand.js +1 -3
  37. package/dist-es/commands/ListGlobalTablesCommand.js +1 -3
  38. package/dist-es/commands/ListImportsCommand.js +1 -3
  39. package/dist-es/commands/ListTablesCommand.js +1 -3
  40. package/dist-es/commands/ListTagsOfResourceCommand.js +1 -3
  41. package/dist-es/commands/PutItemCommand.js +1 -3
  42. package/dist-es/commands/PutResourcePolicyCommand.js +1 -3
  43. package/dist-es/commands/QueryCommand.js +1 -3
  44. package/dist-es/commands/RestoreTableFromBackupCommand.js +1 -3
  45. package/dist-es/commands/RestoreTableToPointInTimeCommand.js +1 -3
  46. package/dist-es/commands/ScanCommand.js +1 -3
  47. package/dist-es/commands/TagResourceCommand.js +1 -3
  48. package/dist-es/commands/TransactGetItemsCommand.js +1 -3
  49. package/dist-es/commands/TransactWriteItemsCommand.js +1 -3
  50. package/dist-es/commands/UntagResourceCommand.js +1 -3
  51. package/dist-es/commands/UpdateContinuousBackupsCommand.js +1 -3
  52. package/dist-es/commands/UpdateContributorInsightsCommand.js +1 -3
  53. package/dist-es/commands/UpdateGlobalTableCommand.js +1 -3
  54. package/dist-es/commands/UpdateGlobalTableSettingsCommand.js +1 -3
  55. package/dist-es/commands/UpdateItemCommand.js +1 -3
  56. package/dist-es/commands/UpdateKinesisStreamingDestinationCommand.js +1 -3
  57. package/dist-es/commands/UpdateTableCommand.js +1 -3
  58. package/dist-es/commands/UpdateTableReplicaAutoScalingCommand.js +1 -3
  59. package/dist-es/commands/UpdateTimeToLiveCommand.js +1 -3
  60. package/dist-es/endpoint/endpointResolver.js +7 -3
  61. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  62. package/dist-types/runtimeConfig.d.ts +2 -0
  63. package/dist-types/runtimeConfig.native.d.ts +2 -0
  64. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  65. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  66. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  67. package/package.json +37 -37
@@ -6,9 +6,7 @@ import { de_UpdateTableReplicaAutoScalingCommand, se_UpdateTableReplicaAutoScali
6
6
  export { $Command };
7
7
  export class UpdateTableReplicaAutoScalingCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_UpdateTimeToLiveCommand, se_UpdateTimeToLiveCommand } from "../proto
6
6
  export { $Command };
7
7
  export class UpdateTimeToLiveCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -1,10 +1,14 @@
1
1
  import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
- import { customEndpointFunctions, resolveEndpoint } from "@smithy/util-endpoints";
2
+ import { customEndpointFunctions, EndpointCache, resolveEndpoint } from "@smithy/util-endpoints";
3
3
  import { ruleSet } from "./ruleset";
4
+ const cache = new EndpointCache({
5
+ size: 50,
6
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
7
+ });
4
8
  export const defaultEndpointResolver = (endpointParams, context = {}) => {
5
- return resolveEndpoint(ruleSet, {
9
+ return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
6
10
  endpointParams: endpointParams,
7
11
  logger: context.logger,
8
- });
12
+ }));
9
13
  };
10
14
  customEndpointFunctions.aws = awsEndpointFunctions;
@@ -19,6 +19,7 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
19
19
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
20
20
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
21
  apiVersion: string;
22
+ cacheMiddleware?: boolean | undefined;
22
23
  urlParser: import("@smithy/types").UrlParser;
23
24
  base64Decoder: import("@smithy/types").Decoder;
24
25
  base64Encoder: (_input: string | Uint8Array) => string;
@@ -35,6 +36,7 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
35
36
  logger?: import("@smithy/types").Logger | undefined;
36
37
  }) => import("@smithy/types").EndpointV2;
37
38
  tls?: boolean | undefined;
39
+ serviceConfiguredEndpoint?: undefined;
38
40
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
39
41
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").DynamoDBHttpAuthSchemeProvider;
40
42
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -19,6 +19,7 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
19
19
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
20
20
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
21
  apiVersion: string;
22
+ cacheMiddleware?: boolean | undefined;
22
23
  urlParser: import("@smithy/types").UrlParser;
23
24
  base64Decoder: import("@smithy/types").Decoder;
24
25
  base64Encoder: (_input: string | Uint8Array) => string;
@@ -35,6 +36,7 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
35
36
  logger?: import("@smithy/types").Logger | undefined;
36
37
  }) => import("@smithy/types").EndpointV2;
37
38
  tls?: boolean | undefined;
39
+ serviceConfiguredEndpoint?: undefined;
38
40
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
39
41
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").DynamoDBHttpAuthSchemeProvider;
40
42
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -7,6 +7,7 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
7
7
  sha256: import("@smithy/types").HashConstructor;
8
8
  requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
9
9
  apiVersion: string;
10
+ cacheMiddleware?: boolean | undefined;
10
11
  urlParser: import("@smithy/types").UrlParser;
11
12
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
12
13
  streamCollector: import("@smithy/types").StreamCollector;
@@ -34,6 +35,7 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
34
35
  logger?: import("@smithy/types").Logger | undefined;
35
36
  }) => import("@smithy/types").EndpointV2;
36
37
  tls?: boolean | undefined;
38
+ serviceConfiguredEndpoint?: undefined;
37
39
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
38
40
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").DynamoDBHttpAuthSchemeProvider;
39
41
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -26,6 +26,7 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
26
26
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
27
27
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
28
28
  apiVersion: string;
29
+ cacheMiddleware?: boolean | undefined;
29
30
  urlParser: import("@smithy/types").UrlParser;
30
31
  base64Decoder: import("@smithy/types").Decoder;
31
32
  base64Encoder: (_input: string | Uint8Array) => string;
@@ -64,6 +65,7 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
64
65
  }
65
66
  ) => import("@smithy/types").EndpointV2;
66
67
  tls?: boolean | undefined;
68
+ serviceConfiguredEndpoint?: undefined;
67
69
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
68
70
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").DynamoDBHttpAuthSchemeProvider;
69
71
  credentials?:
@@ -30,6 +30,7 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
30
30
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
31
31
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
32
32
  apiVersion: string;
33
+ cacheMiddleware?: boolean | undefined;
33
34
  urlParser: import("@smithy/types").UrlParser;
34
35
  base64Decoder: import("@smithy/types").Decoder;
35
36
  base64Encoder: (_input: string | Uint8Array) => string;
@@ -68,6 +69,7 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
68
69
  }
69
70
  ) => import("@smithy/types").EndpointV2;
70
71
  tls?: boolean | undefined;
72
+ serviceConfiguredEndpoint?: undefined;
71
73
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
72
74
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").DynamoDBHttpAuthSchemeProvider;
73
75
  credentials?:
@@ -9,6 +9,7 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
9
9
  | import("@smithy/protocol-http").HttpHandler<any>
10
10
  | import("@smithy/fetch-http-handler").FetchHttpHandler;
11
11
  apiVersion: string;
12
+ cacheMiddleware?: boolean | undefined;
12
13
  urlParser: import("@smithy/types").UrlParser;
13
14
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
14
15
  streamCollector: import("@smithy/types").StreamCollector;
@@ -58,6 +59,7 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
58
59
  }
59
60
  ) => import("@smithy/types").EndpointV2;
60
61
  tls?: boolean | undefined;
62
+ serviceConfiguredEndpoint?: undefined;
61
63
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
62
64
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").DynamoDBHttpAuthSchemeProvider;
63
65
  credentials?:
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.648.0",
4
+ "version": "3.650.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-dynamodb",
@@ -20,46 +20,46 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.645.0",
24
- "@aws-sdk/client-sts": "3.645.0",
25
- "@aws-sdk/core": "3.635.0",
26
- "@aws-sdk/credential-provider-node": "3.645.0",
27
- "@aws-sdk/middleware-endpoint-discovery": "3.620.0",
28
- "@aws-sdk/middleware-host-header": "3.620.0",
29
- "@aws-sdk/middleware-logger": "3.609.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.620.0",
31
- "@aws-sdk/middleware-user-agent": "3.645.0",
32
- "@aws-sdk/region-config-resolver": "3.614.0",
33
- "@aws-sdk/types": "3.609.0",
34
- "@aws-sdk/util-endpoints": "3.645.0",
35
- "@aws-sdk/util-user-agent-browser": "3.609.0",
36
- "@aws-sdk/util-user-agent-node": "3.614.0",
37
- "@smithy/config-resolver": "^3.0.5",
38
- "@smithy/core": "^2.4.0",
39
- "@smithy/fetch-http-handler": "^3.2.4",
40
- "@smithy/hash-node": "^3.0.3",
41
- "@smithy/invalid-dependency": "^3.0.3",
42
- "@smithy/middleware-content-length": "^3.0.5",
43
- "@smithy/middleware-endpoint": "^3.1.0",
44
- "@smithy/middleware-retry": "^3.0.15",
45
- "@smithy/middleware-serde": "^3.0.3",
46
- "@smithy/middleware-stack": "^3.0.3",
47
- "@smithy/node-config-provider": "^3.1.4",
48
- "@smithy/node-http-handler": "^3.1.4",
49
- "@smithy/protocol-http": "^4.1.0",
50
- "@smithy/smithy-client": "^3.2.0",
51
- "@smithy/types": "^3.3.0",
52
- "@smithy/url-parser": "^3.0.3",
23
+ "@aws-sdk/client-sso-oidc": "3.650.0",
24
+ "@aws-sdk/client-sts": "3.650.0",
25
+ "@aws-sdk/core": "3.649.0",
26
+ "@aws-sdk/credential-provider-node": "3.650.0",
27
+ "@aws-sdk/middleware-endpoint-discovery": "3.649.0",
28
+ "@aws-sdk/middleware-host-header": "3.649.0",
29
+ "@aws-sdk/middleware-logger": "3.649.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.649.0",
31
+ "@aws-sdk/middleware-user-agent": "3.649.0",
32
+ "@aws-sdk/region-config-resolver": "3.649.0",
33
+ "@aws-sdk/types": "3.649.0",
34
+ "@aws-sdk/util-endpoints": "3.649.0",
35
+ "@aws-sdk/util-user-agent-browser": "3.649.0",
36
+ "@aws-sdk/util-user-agent-node": "3.649.0",
37
+ "@smithy/config-resolver": "^3.0.6",
38
+ "@smithy/core": "^2.4.1",
39
+ "@smithy/fetch-http-handler": "^3.2.5",
40
+ "@smithy/hash-node": "^3.0.4",
41
+ "@smithy/invalid-dependency": "^3.0.4",
42
+ "@smithy/middleware-content-length": "^3.0.6",
43
+ "@smithy/middleware-endpoint": "^3.1.1",
44
+ "@smithy/middleware-retry": "^3.0.16",
45
+ "@smithy/middleware-serde": "^3.0.4",
46
+ "@smithy/middleware-stack": "^3.0.4",
47
+ "@smithy/node-config-provider": "^3.1.5",
48
+ "@smithy/node-http-handler": "^3.2.0",
49
+ "@smithy/protocol-http": "^4.1.1",
50
+ "@smithy/smithy-client": "^3.3.0",
51
+ "@smithy/types": "^3.4.0",
52
+ "@smithy/url-parser": "^3.0.4",
53
53
  "@smithy/util-base64": "^3.0.0",
54
54
  "@smithy/util-body-length-browser": "^3.0.0",
55
55
  "@smithy/util-body-length-node": "^3.0.0",
56
- "@smithy/util-defaults-mode-browser": "^3.0.15",
57
- "@smithy/util-defaults-mode-node": "^3.0.15",
58
- "@smithy/util-endpoints": "^2.0.5",
59
- "@smithy/util-middleware": "^3.0.3",
60
- "@smithy/util-retry": "^3.0.3",
56
+ "@smithy/util-defaults-mode-browser": "^3.0.16",
57
+ "@smithy/util-defaults-mode-node": "^3.0.16",
58
+ "@smithy/util-endpoints": "^2.1.0",
59
+ "@smithy/util-middleware": "^3.0.4",
60
+ "@smithy/util-retry": "^3.0.4",
61
61
  "@smithy/util-utf8": "^3.0.0",
62
- "@smithy/util-waiter": "^3.1.2",
62
+ "@smithy/util-waiter": "^3.1.3",
63
63
  "tslib": "^2.6.2",
64
64
  "uuid": "^9.0.1"
65
65
  },