@aws-sdk/client-dynamodb 3.36.0 → 3.39.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 (144) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist-cjs/DynamoDB.js +0 -21
  3. package/dist-cjs/DynamoDBClient.js +0 -26
  4. package/dist-cjs/commands/BatchExecuteStatementCommand.js +0 -26
  5. package/dist-cjs/commands/BatchGetItemCommand.js +0 -69
  6. package/dist-cjs/commands/BatchWriteItemCommand.js +0 -98
  7. package/dist-cjs/commands/CreateBackupCommand.js +0 -53
  8. package/dist-cjs/commands/CreateGlobalTableCommand.js +0 -91
  9. package/dist-cjs/commands/CreateTableCommand.js +0 -36
  10. package/dist-cjs/commands/DeleteBackupCommand.js +0 -25
  11. package/dist-cjs/commands/DeleteItemCommand.js +0 -29
  12. package/dist-cjs/commands/DeleteTableCommand.js +0 -40
  13. package/dist-cjs/commands/DescribeBackupCommand.js +0 -25
  14. package/dist-cjs/commands/DescribeContinuousBackupsCommand.js +0 -34
  15. package/dist-cjs/commands/DescribeContributorInsightsCommand.js +0 -24
  16. package/dist-cjs/commands/DescribeEndpointsCommand.js +0 -24
  17. package/dist-cjs/commands/DescribeExportCommand.js +0 -24
  18. package/dist-cjs/commands/DescribeGlobalTableCommand.js +0 -28
  19. package/dist-cjs/commands/DescribeGlobalTableSettingsCommand.js +0 -27
  20. package/dist-cjs/commands/DescribeKinesisStreamingDestinationCommand.js +0 -24
  21. package/dist-cjs/commands/DescribeLimitsCommand.js +0 -87
  22. package/dist-cjs/commands/DescribeTableCommand.js +0 -30
  23. package/dist-cjs/commands/DescribeTableReplicaAutoScalingCommand.js +0 -27
  24. package/dist-cjs/commands/DescribeTimeToLiveCommand.js +0 -24
  25. package/dist-cjs/commands/DisableKinesisStreamingDestinationCommand.js +0 -25
  26. package/dist-cjs/commands/EnableKinesisStreamingDestinationCommand.js +0 -27
  27. package/dist-cjs/commands/ExecuteStatementCommand.js +0 -26
  28. package/dist-cjs/commands/ExecuteTransactionCommand.js +0 -26
  29. package/dist-cjs/commands/ExportTableToPointInTimeCommand.js +0 -26
  30. package/dist-cjs/commands/GetItemCommand.js +0 -30
  31. package/dist-cjs/commands/ListBackupsCommand.js +0 -30
  32. package/dist-cjs/commands/ListContributorInsightsCommand.js +0 -24
  33. package/dist-cjs/commands/ListExportsCommand.js +0 -24
  34. package/dist-cjs/commands/ListGlobalTablesCommand.js +0 -27
  35. package/dist-cjs/commands/ListTablesCommand.js +0 -26
  36. package/dist-cjs/commands/ListTagsOfResourceCommand.js +0 -27
  37. package/dist-cjs/commands/PutItemCommand.js +0 -91
  38. package/dist-cjs/commands/QueryCommand.js +0 -79
  39. package/dist-cjs/commands/RestoreTableFromBackupCommand.js +0 -48
  40. package/dist-cjs/commands/RestoreTableToPointInTimeCommand.js +0 -79
  41. package/dist-cjs/commands/ScanCommand.js +0 -48
  42. package/dist-cjs/commands/TagResourceCommand.js +0 -30
  43. package/dist-cjs/commands/TransactGetItemsCommand.js +0 -49
  44. package/dist-cjs/commands/TransactWriteItemsCommand.js +0 -97
  45. package/dist-cjs/commands/UntagResourceCommand.js +0 -28
  46. package/dist-cjs/commands/UpdateContinuousBackupsCommand.js +0 -35
  47. package/dist-cjs/commands/UpdateContributorInsightsCommand.js +0 -24
  48. package/dist-cjs/commands/UpdateGlobalTableCommand.js +0 -52
  49. package/dist-cjs/commands/UpdateGlobalTableSettingsCommand.js +0 -24
  50. package/dist-cjs/commands/UpdateItemCommand.js +0 -26
  51. package/dist-cjs/commands/UpdateTableCommand.js +0 -46
  52. package/dist-cjs/commands/UpdateTableReplicaAutoScalingCommand.js +0 -27
  53. package/dist-cjs/commands/UpdateTimeToLiveCommand.js +0 -48
  54. package/dist-cjs/commands/index.js +53 -0
  55. package/dist-cjs/endpoints.js +6 -1
  56. package/dist-cjs/index.js +5 -60
  57. package/dist-cjs/models/models_0.js +0 -660
  58. package/dist-cjs/pagination/ListContributorInsightsPaginator.js +0 -10
  59. package/dist-cjs/pagination/ListExportsPaginator.js +0 -10
  60. package/dist-cjs/pagination/ListTablesPaginator.js +0 -10
  61. package/dist-cjs/pagination/QueryPaginator.js +0 -10
  62. package/dist-cjs/pagination/ScanPaginator.js +0 -10
  63. package/dist-cjs/pagination/index.js +9 -0
  64. package/dist-cjs/protocols/Aws_json1_0.js +0 -5
  65. package/dist-cjs/runtimeConfig.browser.js +1 -5
  66. package/dist-cjs/runtimeConfig.js +1 -5
  67. package/dist-cjs/runtimeConfig.native.js +0 -3
  68. package/dist-cjs/runtimeConfig.shared.js +0 -3
  69. package/dist-cjs/waiters/index.js +5 -0
  70. package/dist-cjs/waiters/waitForTableExists.js +0 -9
  71. package/dist-cjs/waiters/waitForTableNotExists.js +0 -9
  72. package/dist-es/commands/index.js +50 -0
  73. package/dist-es/endpoints.js +6 -1
  74. package/dist-es/index.js +5 -60
  75. package/dist-es/pagination/index.js +6 -0
  76. package/dist-es/waiters/index.js +2 -0
  77. package/dist-types/commands/index.d.ts +50 -0
  78. package/dist-types/index.d.ts +5 -60
  79. package/dist-types/pagination/index.d.ts +6 -0
  80. package/dist-types/ts3.4/DynamoDB.d.ts +51 -965
  81. package/dist-types/ts3.4/DynamoDBClient.d.ts +25 -112
  82. package/dist-types/ts3.4/commands/BatchExecuteStatementCommand.d.ts +2 -22
  83. package/dist-types/ts3.4/commands/BatchGetItemCommand.d.ts +2 -65
  84. package/dist-types/ts3.4/commands/BatchWriteItemCommand.d.ts +2 -94
  85. package/dist-types/ts3.4/commands/CreateBackupCommand.d.ts +2 -49
  86. package/dist-types/ts3.4/commands/CreateGlobalTableCommand.d.ts +2 -87
  87. package/dist-types/ts3.4/commands/CreateTableCommand.d.ts +2 -32
  88. package/dist-types/ts3.4/commands/DeleteBackupCommand.d.ts +2 -21
  89. package/dist-types/ts3.4/commands/DeleteItemCommand.d.ts +2 -25
  90. package/dist-types/ts3.4/commands/DeleteTableCommand.d.ts +2 -36
  91. package/dist-types/ts3.4/commands/DescribeBackupCommand.d.ts +2 -21
  92. package/dist-types/ts3.4/commands/DescribeContinuousBackupsCommand.d.ts +2 -30
  93. package/dist-types/ts3.4/commands/DescribeContributorInsightsCommand.d.ts +2 -20
  94. package/dist-types/ts3.4/commands/DescribeEndpointsCommand.d.ts +2 -20
  95. package/dist-types/ts3.4/commands/DescribeExportCommand.d.ts +2 -20
  96. package/dist-types/ts3.4/commands/DescribeGlobalTableCommand.d.ts +2 -24
  97. package/dist-types/ts3.4/commands/DescribeGlobalTableSettingsCommand.d.ts +2 -23
  98. package/dist-types/ts3.4/commands/DescribeKinesisStreamingDestinationCommand.d.ts +2 -20
  99. package/dist-types/ts3.4/commands/DescribeLimitsCommand.d.ts +2 -83
  100. package/dist-types/ts3.4/commands/DescribeTableCommand.d.ts +2 -26
  101. package/dist-types/ts3.4/commands/DescribeTableReplicaAutoScalingCommand.d.ts +2 -23
  102. package/dist-types/ts3.4/commands/DescribeTimeToLiveCommand.d.ts +2 -20
  103. package/dist-types/ts3.4/commands/DisableKinesisStreamingDestinationCommand.d.ts +2 -21
  104. package/dist-types/ts3.4/commands/EnableKinesisStreamingDestinationCommand.d.ts +2 -23
  105. package/dist-types/ts3.4/commands/ExecuteStatementCommand.d.ts +2 -22
  106. package/dist-types/ts3.4/commands/ExecuteTransactionCommand.d.ts +2 -22
  107. package/dist-types/ts3.4/commands/ExportTableToPointInTimeCommand.d.ts +2 -22
  108. package/dist-types/ts3.4/commands/GetItemCommand.d.ts +2 -26
  109. package/dist-types/ts3.4/commands/ListBackupsCommand.d.ts +2 -26
  110. package/dist-types/ts3.4/commands/ListContributorInsightsCommand.d.ts +2 -20
  111. package/dist-types/ts3.4/commands/ListExportsCommand.d.ts +2 -20
  112. package/dist-types/ts3.4/commands/ListGlobalTablesCommand.d.ts +2 -23
  113. package/dist-types/ts3.4/commands/ListTablesCommand.d.ts +2 -22
  114. package/dist-types/ts3.4/commands/ListTagsOfResourceCommand.d.ts +2 -23
  115. package/dist-types/ts3.4/commands/PutItemCommand.d.ts +2 -87
  116. package/dist-types/ts3.4/commands/QueryCommand.d.ts +2 -75
  117. package/dist-types/ts3.4/commands/RestoreTableFromBackupCommand.d.ts +2 -44
  118. package/dist-types/ts3.4/commands/RestoreTableToPointInTimeCommand.d.ts +2 -75
  119. package/dist-types/ts3.4/commands/ScanCommand.d.ts +2 -44
  120. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -26
  121. package/dist-types/ts3.4/commands/TransactGetItemsCommand.d.ts +2 -45
  122. package/dist-types/ts3.4/commands/TransactWriteItemsCommand.d.ts +2 -93
  123. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -24
  124. package/dist-types/ts3.4/commands/UpdateContinuousBackupsCommand.d.ts +2 -31
  125. package/dist-types/ts3.4/commands/UpdateContributorInsightsCommand.d.ts +2 -20
  126. package/dist-types/ts3.4/commands/UpdateGlobalTableCommand.d.ts +2 -48
  127. package/dist-types/ts3.4/commands/UpdateGlobalTableSettingsCommand.d.ts +2 -20
  128. package/dist-types/ts3.4/commands/UpdateItemCommand.d.ts +2 -22
  129. package/dist-types/ts3.4/commands/UpdateTableCommand.d.ts +2 -42
  130. package/dist-types/ts3.4/commands/UpdateTableReplicaAutoScalingCommand.d.ts +2 -23
  131. package/dist-types/ts3.4/commands/UpdateTimeToLiveCommand.d.ts +2 -44
  132. package/dist-types/ts3.4/commands/index.d.ts +50 -0
  133. package/dist-types/ts3.4/index.d.ts +5 -60
  134. package/dist-types/ts3.4/models/models_0.d.ts +1022 -6658
  135. package/dist-types/ts3.4/pagination/index.d.ts +6 -0
  136. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  137. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  138. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  139. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  140. package/dist-types/ts3.4/waiters/index.d.ts +2 -0
  141. package/dist-types/ts3.4/waiters/waitForTableExists.d.ts +2 -9
  142. package/dist-types/ts3.4/waiters/waitForTableNotExists.d.ts +2 -9
  143. package/dist-types/waiters/index.d.ts +2 -0
  144. package/package.json +34 -34
@@ -4,22 +4,13 @@ exports.paginateListContributorInsights = void 0;
4
4
  const ListContributorInsightsCommand_1 = require("../commands/ListContributorInsightsCommand");
5
5
  const DynamoDB_1 = require("../DynamoDB");
6
6
  const DynamoDBClient_1 = require("../DynamoDBClient");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new ListContributorInsightsCommand_1.ListContributorInsightsCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.listContributorInsights(input, ...args);
20
12
  };
21
13
  async function* paginateListContributorInsights(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.NextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateListContributorInsights(config, input, ...additionalArgu
39
30
  token = page.NextToken;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateListContributorInsights = paginateListContributorInsights;
@@ -4,22 +4,13 @@ exports.paginateListExports = void 0;
4
4
  const ListExportsCommand_1 = require("../commands/ListExportsCommand");
5
5
  const DynamoDB_1 = require("../DynamoDB");
6
6
  const DynamoDBClient_1 = require("../DynamoDBClient");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new ListExportsCommand_1.ListExportsCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.listExports(input, ...args);
20
12
  };
21
13
  async function* paginateListExports(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.NextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateListExports(config, input, ...additionalArguments) {
39
30
  token = page.NextToken;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateListExports = paginateListExports;
@@ -4,22 +4,13 @@ exports.paginateListTables = void 0;
4
4
  const ListTablesCommand_1 = require("../commands/ListTablesCommand");
5
5
  const DynamoDB_1 = require("../DynamoDB");
6
6
  const DynamoDBClient_1 = require("../DynamoDBClient");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new ListTablesCommand_1.ListTablesCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.listTables(input, ...args);
20
12
  };
21
13
  async function* paginateListTables(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.ExclusiveStartTableName
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateListTables(config, input, ...additionalArguments) {
39
30
  token = page.LastEvaluatedTableName;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateListTables = paginateListTables;
@@ -4,22 +4,13 @@ exports.paginateQuery = void 0;
4
4
  const QueryCommand_1 = require("../commands/QueryCommand");
5
5
  const DynamoDB_1 = require("../DynamoDB");
6
6
  const DynamoDBClient_1 = require("../DynamoDBClient");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new QueryCommand_1.QueryCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.query(input, ...args);
20
12
  };
21
13
  async function* paginateQuery(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.ExclusiveStartKey
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateQuery(config, input, ...additionalArguments) {
39
30
  token = page.LastEvaluatedKey;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateQuery = paginateQuery;
@@ -4,22 +4,13 @@ exports.paginateScan = void 0;
4
4
  const ScanCommand_1 = require("../commands/ScanCommand");
5
5
  const DynamoDB_1 = require("../DynamoDB");
6
6
  const DynamoDBClient_1 = require("../DynamoDBClient");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new ScanCommand_1.ScanCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.scan(input, ...args);
20
12
  };
21
13
  async function* paginateScan(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.ExclusiveStartKey
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateScan(config, input, ...additionalArguments) {
39
30
  token = page.LastEvaluatedKey;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateScan = paginateScan;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./Interfaces"), exports);
5
+ tslib_1.__exportStar(require("./ListContributorInsightsPaginator"), exports);
6
+ tslib_1.__exportStar(require("./ListExportsPaginator"), exports);
7
+ tslib_1.__exportStar(require("./ListTablesPaginator"), exports);
8
+ tslib_1.__exportStar(require("./QueryPaginator"), exports);
9
+ tslib_1.__exportStar(require("./ScanPaginator"), exports);
@@ -7920,14 +7920,12 @@ const deserializeMetadata = (output) => {
7920
7920
  cfId: output.headers["x-amz-cf-id"],
7921
7921
  });
7922
7922
  };
7923
- // Collect low-level response body stream to Uint8Array.
7924
7923
  const collectBody = (streamBody = new Uint8Array(), context) => {
7925
7924
  if (streamBody instanceof Uint8Array) {
7926
7925
  return Promise.resolve(streamBody);
7927
7926
  }
7928
7927
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
7929
7928
  };
7930
- // Encode Uint8Array data into string with utf-8.
7931
7929
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
7932
7930
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
7933
7931
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
@@ -7953,9 +7951,6 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
7953
7951
  }
7954
7952
  return {};
7955
7953
  });
7956
- /**
7957
- * Load an error code for the aws.rest-json-1.1 protocol.
7958
- */
7959
7954
  const loadRestJsonErrorCode = (output, data) => {
7960
7955
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
7961
7956
  const sanitizeErrorCode = (rawValue) => {
@@ -2,8 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- // @ts-ignore: package.json will be imported from dist folders
6
- const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
7
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
8
7
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
9
8
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
@@ -13,9 +12,6 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
13
12
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
14
13
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
15
14
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
- /**
17
- * @internal
18
- */
19
15
  const getRuntimeConfig = (config) => {
20
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
21
17
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
@@ -2,8 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- // @ts-ignore: package.json will be imported from dist folders
6
- const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
7
6
  const client_sts_1 = require("@aws-sdk/client-sts");
8
7
  const config_resolver_1 = require("@aws-sdk/config-resolver");
9
8
  const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
@@ -18,9 +17,6 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
18
17
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
19
18
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
20
19
  const smithy_client_1 = require("@aws-sdk/smithy-client");
21
- /**
22
- * @internal
23
- */
24
20
  const getRuntimeConfig = (config) => {
25
21
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
26
22
  smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
- /**
7
- * @internal
8
- */
9
6
  const getRuntimeConfig = (config) => {
10
7
  var _a;
11
8
  const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const url_parser_1 = require("@aws-sdk/url-parser");
5
5
  const endpoints_1 = require("./endpoints");
6
- /**
7
- * @internal
8
- */
9
6
  const getRuntimeConfig = (config) => {
10
7
  var _a, _b, _c, _d, _e;
11
8
  return ({
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./waitForTableExists"), exports);
5
+ tslib_1.__exportStar(require("./waitForTableNotExists"), exports);
@@ -26,20 +26,11 @@ const checkState = async (client, input) => {
26
26
  }
27
27
  return { state: util_waiter_1.WaiterState.RETRY, reason };
28
28
  };
29
- /**
30
- *
31
- * @deprecated Use waitUntilTableExists instead. waitForTableExists does not throw error in non-success cases.
32
- */
33
29
  const waitForTableExists = async (params, input) => {
34
30
  const serviceDefaults = { minDelay: 20, maxDelay: 120 };
35
31
  return util_waiter_1.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
36
32
  };
37
33
  exports.waitForTableExists = waitForTableExists;
38
- /**
39
- *
40
- * @param params - Waiter configuration options.
41
- * @param input - The input to DescribeTableCommand for polling.
42
- */
43
34
  const waitUntilTableExists = async (params, input) => {
44
35
  const serviceDefaults = { minDelay: 20, maxDelay: 120 };
45
36
  const result = await util_waiter_1.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
@@ -17,20 +17,11 @@ const checkState = async (client, input) => {
17
17
  }
18
18
  return { state: util_waiter_1.WaiterState.RETRY, reason };
19
19
  };
20
- /**
21
- *
22
- * @deprecated Use waitUntilTableNotExists instead. waitForTableNotExists does not throw error in non-success cases.
23
- */
24
20
  const waitForTableNotExists = async (params, input) => {
25
21
  const serviceDefaults = { minDelay: 20, maxDelay: 120 };
26
22
  return util_waiter_1.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
27
23
  };
28
24
  exports.waitForTableNotExists = waitForTableNotExists;
29
- /**
30
- *
31
- * @param params - Waiter configuration options.
32
- * @param input - The input to DescribeTableCommand for polling.
33
- */
34
25
  const waitUntilTableNotExists = async (params, input) => {
35
26
  const serviceDefaults = { minDelay: 20, maxDelay: 120 };
36
27
  const result = await util_waiter_1.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
@@ -0,0 +1,50 @@
1
+ export * from "./BatchExecuteStatementCommand";
2
+ export * from "./BatchGetItemCommand";
3
+ export * from "./BatchWriteItemCommand";
4
+ export * from "./CreateBackupCommand";
5
+ export * from "./CreateGlobalTableCommand";
6
+ export * from "./CreateTableCommand";
7
+ export * from "./DeleteBackupCommand";
8
+ export * from "./DeleteItemCommand";
9
+ export * from "./DeleteTableCommand";
10
+ export * from "./DescribeBackupCommand";
11
+ export * from "./DescribeContinuousBackupsCommand";
12
+ export * from "./DescribeContributorInsightsCommand";
13
+ export * from "./DescribeEndpointsCommand";
14
+ export * from "./DescribeExportCommand";
15
+ export * from "./DescribeGlobalTableCommand";
16
+ export * from "./DescribeGlobalTableSettingsCommand";
17
+ export * from "./DescribeKinesisStreamingDestinationCommand";
18
+ export * from "./DescribeLimitsCommand";
19
+ export * from "./DescribeTableCommand";
20
+ export * from "./DescribeTableReplicaAutoScalingCommand";
21
+ export * from "./DescribeTimeToLiveCommand";
22
+ export * from "./DisableKinesisStreamingDestinationCommand";
23
+ export * from "./EnableKinesisStreamingDestinationCommand";
24
+ export * from "./ExecuteStatementCommand";
25
+ export * from "./ExecuteTransactionCommand";
26
+ export * from "./ExportTableToPointInTimeCommand";
27
+ export * from "./GetItemCommand";
28
+ export * from "./ListBackupsCommand";
29
+ export * from "./ListContributorInsightsCommand";
30
+ export * from "./ListExportsCommand";
31
+ export * from "./ListGlobalTablesCommand";
32
+ export * from "./ListTablesCommand";
33
+ export * from "./ListTagsOfResourceCommand";
34
+ export * from "./PutItemCommand";
35
+ export * from "./QueryCommand";
36
+ export * from "./RestoreTableFromBackupCommand";
37
+ export * from "./RestoreTableToPointInTimeCommand";
38
+ export * from "./ScanCommand";
39
+ export * from "./TagResourceCommand";
40
+ export * from "./TransactGetItemsCommand";
41
+ export * from "./TransactWriteItemsCommand";
42
+ export * from "./UntagResourceCommand";
43
+ export * from "./UpdateContinuousBackupsCommand";
44
+ export * from "./UpdateContributorInsightsCommand";
45
+ export * from "./UpdateGlobalTableCommand";
46
+ export * from "./UpdateGlobalTableSettingsCommand";
47
+ export * from "./UpdateItemCommand";
48
+ export * from "./UpdateTableCommand";
49
+ export * from "./UpdateTableReplicaAutoScalingCommand";
50
+ export * from "./UpdateTimeToLiveCommand";
@@ -65,22 +65,27 @@ var partitionHash = {
65
65
  "us-west-2",
66
66
  "us-west-2-fips",
67
67
  ],
68
+ regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
68
69
  hostname: "dynamodb.{region}.amazonaws.com",
69
70
  },
70
71
  "aws-cn": {
71
72
  regions: ["cn-north-1", "cn-northwest-1"],
73
+ regionRegex: "^cn\\-\\w+\\-\\d+$",
72
74
  hostname: "dynamodb.{region}.amazonaws.com.cn",
73
75
  },
74
76
  "aws-iso": {
75
- regions: ["us-iso-east-1"],
77
+ regions: ["us-iso-east-1", "us-iso-west-1"],
78
+ regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
76
79
  hostname: "dynamodb.{region}.c2s.ic.gov",
77
80
  },
78
81
  "aws-iso-b": {
79
82
  regions: ["us-isob-east-1"],
83
+ regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
80
84
  hostname: "dynamodb.{region}.sc2s.sgov.gov",
81
85
  },
82
86
  "aws-us-gov": {
83
87
  regions: ["us-gov-east-1", "us-gov-east-1-fips", "us-gov-west-1", "us-gov-west-1-fips"],
88
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
84
89
  hostname: "dynamodb.{region}.amazonaws.com",
85
90
  },
86
91
  };
package/dist-es/index.js CHANGED
@@ -1,61 +1,6 @@
1
- export * from "./DynamoDBClient";
2
1
  export * from "./DynamoDB";
3
- export * from "./commands/BatchExecuteStatementCommand";
4
- export * from "./commands/BatchGetItemCommand";
5
- export * from "./commands/BatchWriteItemCommand";
6
- export * from "./commands/CreateBackupCommand";
7
- export * from "./commands/CreateGlobalTableCommand";
8
- export * from "./commands/CreateTableCommand";
9
- export * from "./commands/DeleteBackupCommand";
10
- export * from "./commands/DeleteItemCommand";
11
- export * from "./commands/DeleteTableCommand";
12
- export * from "./commands/DescribeBackupCommand";
13
- export * from "./commands/DescribeContinuousBackupsCommand";
14
- export * from "./commands/DescribeContributorInsightsCommand";
15
- export * from "./commands/DescribeEndpointsCommand";
16
- export * from "./commands/DescribeExportCommand";
17
- export * from "./commands/DescribeGlobalTableCommand";
18
- export * from "./commands/DescribeGlobalTableSettingsCommand";
19
- export * from "./commands/DescribeKinesisStreamingDestinationCommand";
20
- export * from "./commands/DescribeLimitsCommand";
21
- export * from "./commands/DescribeTableCommand";
22
- export * from "./waiters/waitForTableExists";
23
- export * from "./waiters/waitForTableNotExists";
24
- export * from "./commands/DescribeTableReplicaAutoScalingCommand";
25
- export * from "./commands/DescribeTimeToLiveCommand";
26
- export * from "./commands/DisableKinesisStreamingDestinationCommand";
27
- export * from "./commands/EnableKinesisStreamingDestinationCommand";
28
- export * from "./commands/ExecuteStatementCommand";
29
- export * from "./commands/ExecuteTransactionCommand";
30
- export * from "./commands/ExportTableToPointInTimeCommand";
31
- export * from "./commands/GetItemCommand";
32
- export * from "./commands/ListBackupsCommand";
33
- export * from "./commands/ListContributorInsightsCommand";
34
- export * from "./pagination/ListContributorInsightsPaginator";
35
- export * from "./commands/ListExportsCommand";
36
- export * from "./pagination/ListExportsPaginator";
37
- export * from "./commands/ListGlobalTablesCommand";
38
- export * from "./commands/ListTablesCommand";
39
- export * from "./pagination/ListTablesPaginator";
40
- export * from "./commands/ListTagsOfResourceCommand";
41
- export * from "./commands/PutItemCommand";
42
- export * from "./commands/QueryCommand";
43
- export * from "./pagination/QueryPaginator";
44
- export * from "./commands/RestoreTableFromBackupCommand";
45
- export * from "./commands/RestoreTableToPointInTimeCommand";
46
- export * from "./commands/ScanCommand";
47
- export * from "./pagination/ScanPaginator";
48
- export * from "./commands/TagResourceCommand";
49
- export * from "./commands/TransactGetItemsCommand";
50
- export * from "./commands/TransactWriteItemsCommand";
51
- export * from "./commands/UntagResourceCommand";
52
- export * from "./commands/UpdateContinuousBackupsCommand";
53
- export * from "./commands/UpdateContributorInsightsCommand";
54
- export * from "./commands/UpdateGlobalTableCommand";
55
- export * from "./commands/UpdateGlobalTableSettingsCommand";
56
- export * from "./commands/UpdateItemCommand";
57
- export * from "./commands/UpdateTableCommand";
58
- export * from "./commands/UpdateTableReplicaAutoScalingCommand";
59
- export * from "./commands/UpdateTimeToLiveCommand";
60
- export * from "./pagination/Interfaces";
61
- export * from "./models/index";
2
+ export * from "./DynamoDBClient";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export * from "./pagination";
6
+ export * from "./waiters";
@@ -0,0 +1,6 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListContributorInsightsPaginator";
3
+ export * from "./ListExportsPaginator";
4
+ export * from "./ListTablesPaginator";
5
+ export * from "./QueryPaginator";
6
+ export * from "./ScanPaginator";
@@ -0,0 +1,2 @@
1
+ export * from "./waitForTableExists";
2
+ export * from "./waitForTableNotExists";
@@ -0,0 +1,50 @@
1
+ export * from "./BatchExecuteStatementCommand";
2
+ export * from "./BatchGetItemCommand";
3
+ export * from "./BatchWriteItemCommand";
4
+ export * from "./CreateBackupCommand";
5
+ export * from "./CreateGlobalTableCommand";
6
+ export * from "./CreateTableCommand";
7
+ export * from "./DeleteBackupCommand";
8
+ export * from "./DeleteItemCommand";
9
+ export * from "./DeleteTableCommand";
10
+ export * from "./DescribeBackupCommand";
11
+ export * from "./DescribeContinuousBackupsCommand";
12
+ export * from "./DescribeContributorInsightsCommand";
13
+ export * from "./DescribeEndpointsCommand";
14
+ export * from "./DescribeExportCommand";
15
+ export * from "./DescribeGlobalTableCommand";
16
+ export * from "./DescribeGlobalTableSettingsCommand";
17
+ export * from "./DescribeKinesisStreamingDestinationCommand";
18
+ export * from "./DescribeLimitsCommand";
19
+ export * from "./DescribeTableCommand";
20
+ export * from "./DescribeTableReplicaAutoScalingCommand";
21
+ export * from "./DescribeTimeToLiveCommand";
22
+ export * from "./DisableKinesisStreamingDestinationCommand";
23
+ export * from "./EnableKinesisStreamingDestinationCommand";
24
+ export * from "./ExecuteStatementCommand";
25
+ export * from "./ExecuteTransactionCommand";
26
+ export * from "./ExportTableToPointInTimeCommand";
27
+ export * from "./GetItemCommand";
28
+ export * from "./ListBackupsCommand";
29
+ export * from "./ListContributorInsightsCommand";
30
+ export * from "./ListExportsCommand";
31
+ export * from "./ListGlobalTablesCommand";
32
+ export * from "./ListTablesCommand";
33
+ export * from "./ListTagsOfResourceCommand";
34
+ export * from "./PutItemCommand";
35
+ export * from "./QueryCommand";
36
+ export * from "./RestoreTableFromBackupCommand";
37
+ export * from "./RestoreTableToPointInTimeCommand";
38
+ export * from "./ScanCommand";
39
+ export * from "./TagResourceCommand";
40
+ export * from "./TransactGetItemsCommand";
41
+ export * from "./TransactWriteItemsCommand";
42
+ export * from "./UntagResourceCommand";
43
+ export * from "./UpdateContinuousBackupsCommand";
44
+ export * from "./UpdateContributorInsightsCommand";
45
+ export * from "./UpdateGlobalTableCommand";
46
+ export * from "./UpdateGlobalTableSettingsCommand";
47
+ export * from "./UpdateItemCommand";
48
+ export * from "./UpdateTableCommand";
49
+ export * from "./UpdateTableReplicaAutoScalingCommand";
50
+ export * from "./UpdateTimeToLiveCommand";
@@ -1,61 +1,6 @@
1
- export * from "./DynamoDBClient";
2
1
  export * from "./DynamoDB";
3
- export * from "./commands/BatchExecuteStatementCommand";
4
- export * from "./commands/BatchGetItemCommand";
5
- export * from "./commands/BatchWriteItemCommand";
6
- export * from "./commands/CreateBackupCommand";
7
- export * from "./commands/CreateGlobalTableCommand";
8
- export * from "./commands/CreateTableCommand";
9
- export * from "./commands/DeleteBackupCommand";
10
- export * from "./commands/DeleteItemCommand";
11
- export * from "./commands/DeleteTableCommand";
12
- export * from "./commands/DescribeBackupCommand";
13
- export * from "./commands/DescribeContinuousBackupsCommand";
14
- export * from "./commands/DescribeContributorInsightsCommand";
15
- export * from "./commands/DescribeEndpointsCommand";
16
- export * from "./commands/DescribeExportCommand";
17
- export * from "./commands/DescribeGlobalTableCommand";
18
- export * from "./commands/DescribeGlobalTableSettingsCommand";
19
- export * from "./commands/DescribeKinesisStreamingDestinationCommand";
20
- export * from "./commands/DescribeLimitsCommand";
21
- export * from "./commands/DescribeTableCommand";
22
- export * from "./waiters/waitForTableExists";
23
- export * from "./waiters/waitForTableNotExists";
24
- export * from "./commands/DescribeTableReplicaAutoScalingCommand";
25
- export * from "./commands/DescribeTimeToLiveCommand";
26
- export * from "./commands/DisableKinesisStreamingDestinationCommand";
27
- export * from "./commands/EnableKinesisStreamingDestinationCommand";
28
- export * from "./commands/ExecuteStatementCommand";
29
- export * from "./commands/ExecuteTransactionCommand";
30
- export * from "./commands/ExportTableToPointInTimeCommand";
31
- export * from "./commands/GetItemCommand";
32
- export * from "./commands/ListBackupsCommand";
33
- export * from "./commands/ListContributorInsightsCommand";
34
- export * from "./pagination/ListContributorInsightsPaginator";
35
- export * from "./commands/ListExportsCommand";
36
- export * from "./pagination/ListExportsPaginator";
37
- export * from "./commands/ListGlobalTablesCommand";
38
- export * from "./commands/ListTablesCommand";
39
- export * from "./pagination/ListTablesPaginator";
40
- export * from "./commands/ListTagsOfResourceCommand";
41
- export * from "./commands/PutItemCommand";
42
- export * from "./commands/QueryCommand";
43
- export * from "./pagination/QueryPaginator";
44
- export * from "./commands/RestoreTableFromBackupCommand";
45
- export * from "./commands/RestoreTableToPointInTimeCommand";
46
- export * from "./commands/ScanCommand";
47
- export * from "./pagination/ScanPaginator";
48
- export * from "./commands/TagResourceCommand";
49
- export * from "./commands/TransactGetItemsCommand";
50
- export * from "./commands/TransactWriteItemsCommand";
51
- export * from "./commands/UntagResourceCommand";
52
- export * from "./commands/UpdateContinuousBackupsCommand";
53
- export * from "./commands/UpdateContributorInsightsCommand";
54
- export * from "./commands/UpdateGlobalTableCommand";
55
- export * from "./commands/UpdateGlobalTableSettingsCommand";
56
- export * from "./commands/UpdateItemCommand";
57
- export * from "./commands/UpdateTableCommand";
58
- export * from "./commands/UpdateTableReplicaAutoScalingCommand";
59
- export * from "./commands/UpdateTimeToLiveCommand";
60
- export * from "./pagination/Interfaces";
61
- export * from "./models/index";
2
+ export * from "./DynamoDBClient";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export * from "./pagination";
6
+ export * from "./waiters";
@@ -0,0 +1,6 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListContributorInsightsPaginator";
3
+ export * from "./ListExportsPaginator";
4
+ export * from "./ListTablesPaginator";
5
+ export * from "./QueryPaginator";
6
+ export * from "./ScanPaginator";