@depup/aws-sdk__client-dynamodb 3.1005.0-depup.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 (290) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +31 -0
  3. package/dist-cjs/auth/httpAuthSchemeProvider.js +46 -0
  4. package/dist-cjs/endpoint/endpointResolver.js +27 -0
  5. package/dist-cjs/endpoint/ruleset.js +7 -0
  6. package/dist-cjs/index.js +1667 -0
  7. package/dist-cjs/models/DynamoDBServiceException.js +12 -0
  8. package/dist-cjs/models/errors.js +478 -0
  9. package/dist-cjs/runtimeConfig.browser.js +41 -0
  10. package/dist-cjs/runtimeConfig.js +57 -0
  11. package/dist-cjs/runtimeConfig.native.js +15 -0
  12. package/dist-cjs/runtimeConfig.shared.js +46 -0
  13. package/dist-cjs/schemas/schemas_0.js +2390 -0
  14. package/dist-es/DynamoDB.js +149 -0
  15. package/dist-es/DynamoDBClient.js +55 -0
  16. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  17. package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
  18. package/dist-es/commands/BatchExecuteStatementCommand.js +16 -0
  19. package/dist-es/commands/BatchGetItemCommand.js +19 -0
  20. package/dist-es/commands/BatchWriteItemCommand.js +19 -0
  21. package/dist-es/commands/CreateBackupCommand.js +19 -0
  22. package/dist-es/commands/CreateGlobalTableCommand.js +19 -0
  23. package/dist-es/commands/CreateTableCommand.js +19 -0
  24. package/dist-es/commands/DeleteBackupCommand.js +19 -0
  25. package/dist-es/commands/DeleteItemCommand.js +19 -0
  26. package/dist-es/commands/DeleteResourcePolicyCommand.js +19 -0
  27. package/dist-es/commands/DeleteTableCommand.js +19 -0
  28. package/dist-es/commands/DescribeBackupCommand.js +19 -0
  29. package/dist-es/commands/DescribeContinuousBackupsCommand.js +19 -0
  30. package/dist-es/commands/DescribeContributorInsightsCommand.js +19 -0
  31. package/dist-es/commands/DescribeEndpointsCommand.js +16 -0
  32. package/dist-es/commands/DescribeExportCommand.js +19 -0
  33. package/dist-es/commands/DescribeGlobalTableCommand.js +19 -0
  34. package/dist-es/commands/DescribeGlobalTableSettingsCommand.js +19 -0
  35. package/dist-es/commands/DescribeImportCommand.js +19 -0
  36. package/dist-es/commands/DescribeKinesisStreamingDestinationCommand.js +19 -0
  37. package/dist-es/commands/DescribeLimitsCommand.js +16 -0
  38. package/dist-es/commands/DescribeTableCommand.js +19 -0
  39. package/dist-es/commands/DescribeTableReplicaAutoScalingCommand.js +19 -0
  40. package/dist-es/commands/DescribeTimeToLiveCommand.js +19 -0
  41. package/dist-es/commands/DisableKinesisStreamingDestinationCommand.js +19 -0
  42. package/dist-es/commands/EnableKinesisStreamingDestinationCommand.js +19 -0
  43. package/dist-es/commands/ExecuteStatementCommand.js +16 -0
  44. package/dist-es/commands/ExecuteTransactionCommand.js +16 -0
  45. package/dist-es/commands/ExportTableToPointInTimeCommand.js +19 -0
  46. package/dist-es/commands/GetItemCommand.js +19 -0
  47. package/dist-es/commands/GetResourcePolicyCommand.js +19 -0
  48. package/dist-es/commands/ImportTableCommand.js +19 -0
  49. package/dist-es/commands/ListBackupsCommand.js +19 -0
  50. package/dist-es/commands/ListContributorInsightsCommand.js +19 -0
  51. package/dist-es/commands/ListExportsCommand.js +19 -0
  52. package/dist-es/commands/ListGlobalTablesCommand.js +16 -0
  53. package/dist-es/commands/ListImportsCommand.js +19 -0
  54. package/dist-es/commands/ListTablesCommand.js +16 -0
  55. package/dist-es/commands/ListTagsOfResourceCommand.js +19 -0
  56. package/dist-es/commands/PutItemCommand.js +19 -0
  57. package/dist-es/commands/PutResourcePolicyCommand.js +19 -0
  58. package/dist-es/commands/QueryCommand.js +19 -0
  59. package/dist-es/commands/RestoreTableFromBackupCommand.js +19 -0
  60. package/dist-es/commands/RestoreTableToPointInTimeCommand.js +19 -0
  61. package/dist-es/commands/ScanCommand.js +19 -0
  62. package/dist-es/commands/TagResourceCommand.js +19 -0
  63. package/dist-es/commands/TransactGetItemsCommand.js +19 -0
  64. package/dist-es/commands/TransactWriteItemsCommand.js +19 -0
  65. package/dist-es/commands/UntagResourceCommand.js +19 -0
  66. package/dist-es/commands/UpdateContinuousBackupsCommand.js +19 -0
  67. package/dist-es/commands/UpdateContributorInsightsCommand.js +19 -0
  68. package/dist-es/commands/UpdateGlobalTableCommand.js +19 -0
  69. package/dist-es/commands/UpdateGlobalTableSettingsCommand.js +19 -0
  70. package/dist-es/commands/UpdateItemCommand.js +19 -0
  71. package/dist-es/commands/UpdateKinesisStreamingDestinationCommand.js +19 -0
  72. package/dist-es/commands/UpdateTableCommand.js +19 -0
  73. package/dist-es/commands/UpdateTableReplicaAutoScalingCommand.js +19 -0
  74. package/dist-es/commands/UpdateTimeToLiveCommand.js +19 -0
  75. package/dist-es/commands/index.js +57 -0
  76. package/dist-es/endpoint/EndpointParameters.js +15 -0
  77. package/dist-es/endpoint/endpointResolver.js +23 -0
  78. package/dist-es/endpoint/ruleset.js +4 -0
  79. package/dist-es/extensionConfiguration.js +1 -0
  80. package/dist-es/index.js +10 -0
  81. package/dist-es/models/DynamoDBServiceException.js +8 -0
  82. package/dist-es/models/enums.js +245 -0
  83. package/dist-es/models/errors.js +440 -0
  84. package/dist-es/models/models_0.js +1 -0
  85. package/dist-es/pagination/Interfaces.js +1 -0
  86. package/dist-es/pagination/ListContributorInsightsPaginator.js +4 -0
  87. package/dist-es/pagination/ListExportsPaginator.js +4 -0
  88. package/dist-es/pagination/ListImportsPaginator.js +4 -0
  89. package/dist-es/pagination/ListTablesPaginator.js +4 -0
  90. package/dist-es/pagination/QueryPaginator.js +4 -0
  91. package/dist-es/pagination/ScanPaginator.js +4 -0
  92. package/dist-es/pagination/index.js +7 -0
  93. package/dist-es/runtimeConfig.browser.js +36 -0
  94. package/dist-es/runtimeConfig.js +52 -0
  95. package/dist-es/runtimeConfig.native.js +11 -0
  96. package/dist-es/runtimeConfig.shared.js +42 -0
  97. package/dist-es/runtimeExtensions.js +9 -0
  98. package/dist-es/schemas/schemas_0.js +2381 -0
  99. package/dist-es/waiters/index.js +6 -0
  100. package/dist-es/waiters/waitForContributorInsightsEnabled.js +40 -0
  101. package/dist-es/waiters/waitForExportCompleted.js +40 -0
  102. package/dist-es/waiters/waitForImportCompleted.js +49 -0
  103. package/dist-es/waiters/waitForKinesisStreamingDestinationActive.js +49 -0
  104. package/dist-es/waiters/waitForTableExists.js +34 -0
  105. package/dist-es/waiters/waitForTableNotExists.js +25 -0
  106. package/dist-types/DynamoDB.d.ts +512 -0
  107. package/dist-types/DynamoDBClient.d.ts +272 -0
  108. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  109. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  110. package/dist-types/commands/BatchExecuteStatementCommand.d.ts +234 -0
  111. package/dist-types/commands/BatchGetItemCommand.d.ts +366 -0
  112. package/dist-types/commands/BatchWriteItemCommand.d.ts +414 -0
  113. package/dist-types/commands/CreateBackupCommand.d.ts +151 -0
  114. package/dist-types/commands/CreateGlobalTableCommand.d.ts +211 -0
  115. package/dist-types/commands/CreateTableCommand.d.ts +394 -0
  116. package/dist-types/commands/DeleteBackupCommand.d.ts +197 -0
  117. package/dist-types/commands/DeleteItemCommand.d.ts +296 -0
  118. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +145 -0
  119. package/dist-types/commands/DeleteTableCommand.d.ts +338 -0
  120. package/dist-types/commands/DescribeBackupCommand.d.ts +175 -0
  121. package/dist-types/commands/DescribeContinuousBackupsCommand.d.ts +104 -0
  122. package/dist-types/commands/DescribeContributorInsightsCommand.d.ts +94 -0
  123. package/dist-types/commands/DescribeEndpointsCommand.d.ts +78 -0
  124. package/dist-types/commands/DescribeExportCommand.d.ts +124 -0
  125. package/dist-types/commands/DescribeGlobalTableCommand.d.ts +133 -0
  126. package/dist-types/commands/DescribeGlobalTableSettingsCommand.d.ts +178 -0
  127. package/dist-types/commands/DescribeImportCommand.d.ts +165 -0
  128. package/dist-types/commands/DescribeKinesisStreamingDestinationCommand.d.ts +91 -0
  129. package/dist-types/commands/DescribeLimitsCommand.d.ts +165 -0
  130. package/dist-types/commands/DescribeTableCommand.d.ts +269 -0
  131. package/dist-types/commands/DescribeTableReplicaAutoScalingCommand.d.ts +164 -0
  132. package/dist-types/commands/DescribeTimeToLiveCommand.d.ts +86 -0
  133. package/dist-types/commands/DisableKinesisStreamingDestinationCommand.d.ts +128 -0
  134. package/dist-types/commands/EnableKinesisStreamingDestinationCommand.d.ts +130 -0
  135. package/dist-types/commands/ExecuteStatementCommand.d.ts +251 -0
  136. package/dist-types/commands/ExecuteTransactionCommand.d.ts +534 -0
  137. package/dist-types/commands/ExportTableToPointInTimeCommand.d.ts +152 -0
  138. package/dist-types/commands/GetItemCommand.d.ts +264 -0
  139. package/dist-types/commands/GetResourcePolicyCommand.d.ts +124 -0
  140. package/dist-types/commands/ImportTableCommand.d.ts +275 -0
  141. package/dist-types/commands/ListBackupsCommand.d.ts +109 -0
  142. package/dist-types/commands/ListContributorInsightsCommand.d.ts +92 -0
  143. package/dist-types/commands/ListExportsCommand.d.ts +104 -0
  144. package/dist-types/commands/ListGlobalTablesCommand.d.ts +95 -0
  145. package/dist-types/commands/ListImportsCommand.d.ts +110 -0
  146. package/dist-types/commands/ListTablesCommand.d.ts +103 -0
  147. package/dist-types/commands/ListTagsOfResourceCommand.d.ts +93 -0
  148. package/dist-types/commands/PutItemCommand.d.ts +315 -0
  149. package/dist-types/commands/PutResourcePolicyCommand.d.ts +147 -0
  150. package/dist-types/commands/QueryCommand.d.ts +338 -0
  151. package/dist-types/commands/RestoreTableFromBackupCommand.d.ts +373 -0
  152. package/dist-types/commands/RestoreTableToPointInTimeCommand.d.ts +407 -0
  153. package/dist-types/commands/ScanCommand.d.ts +337 -0
  154. package/dist-types/commands/TagResourceCommand.d.ts +145 -0
  155. package/dist-types/commands/TransactGetItemsCommand.d.ts +496 -0
  156. package/dist-types/commands/TransactWriteItemsCommand.d.ts +659 -0
  157. package/dist-types/commands/UntagResourceCommand.d.ts +140 -0
  158. package/dist-types/commands/UpdateContinuousBackupsCommand.d.ts +111 -0
  159. package/dist-types/commands/UpdateContributorInsightsCommand.d.ts +93 -0
  160. package/dist-types/commands/UpdateGlobalTableCommand.d.ts +179 -0
  161. package/dist-types/commands/UpdateGlobalTableSettingsCommand.d.ts +286 -0
  162. package/dist-types/commands/UpdateItemCommand.d.ts +323 -0
  163. package/dist-types/commands/UpdateKinesisStreamingDestinationCommand.d.ts +127 -0
  164. package/dist-types/commands/UpdateTableCommand.d.ts +458 -0
  165. package/dist-types/commands/UpdateTableReplicaAutoScalingCommand.d.ts +246 -0
  166. package/dist-types/commands/UpdateTimeToLiveCommand.d.ts +149 -0
  167. package/dist-types/commands/index.d.ts +57 -0
  168. package/dist-types/endpoint/EndpointParameters.d.ts +64 -0
  169. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  170. package/dist-types/endpoint/ruleset.d.ts +2 -0
  171. package/dist-types/extensionConfiguration.d.ts +9 -0
  172. package/dist-types/index.d.ts +34 -0
  173. package/dist-types/models/DynamoDBServiceException.d.ts +14 -0
  174. package/dist-types/models/enums.d.ts +589 -0
  175. package/dist-types/models/errors.d.ts +803 -0
  176. package/dist-types/models/models_0.d.ts +10010 -0
  177. package/dist-types/pagination/Interfaces.d.ts +8 -0
  178. package/dist-types/pagination/ListContributorInsightsPaginator.d.ts +7 -0
  179. package/dist-types/pagination/ListExportsPaginator.d.ts +7 -0
  180. package/dist-types/pagination/ListImportsPaginator.d.ts +7 -0
  181. package/dist-types/pagination/ListTablesPaginator.d.ts +7 -0
  182. package/dist-types/pagination/QueryPaginator.d.ts +7 -0
  183. package/dist-types/pagination/ScanPaginator.d.ts +7 -0
  184. package/dist-types/pagination/index.d.ts +7 -0
  185. package/dist-types/runtimeConfig.browser.d.ts +60 -0
  186. package/dist-types/runtimeConfig.d.ts +60 -0
  187. package/dist-types/runtimeConfig.native.d.ts +59 -0
  188. package/dist-types/runtimeConfig.shared.d.ts +27 -0
  189. package/dist-types/runtimeExtensions.d.ts +17 -0
  190. package/dist-types/schemas/schemas_0.d.ts +325 -0
  191. package/dist-types/ts3.4/DynamoDB.d.ts +1102 -0
  192. package/dist-types/ts3.4/DynamoDBClient.d.ts +472 -0
  193. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  194. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
  195. package/dist-types/ts3.4/commands/BatchExecuteStatementCommand.d.ts +51 -0
  196. package/dist-types/ts3.4/commands/BatchGetItemCommand.d.ts +47 -0
  197. package/dist-types/ts3.4/commands/BatchWriteItemCommand.d.ts +47 -0
  198. package/dist-types/ts3.4/commands/CreateBackupCommand.d.ts +47 -0
  199. package/dist-types/ts3.4/commands/CreateGlobalTableCommand.d.ts +50 -0
  200. package/dist-types/ts3.4/commands/CreateTableCommand.d.ts +47 -0
  201. package/dist-types/ts3.4/commands/DeleteBackupCommand.d.ts +47 -0
  202. package/dist-types/ts3.4/commands/DeleteItemCommand.d.ts +47 -0
  203. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +51 -0
  204. package/dist-types/ts3.4/commands/DeleteTableCommand.d.ts +47 -0
  205. package/dist-types/ts3.4/commands/DescribeBackupCommand.d.ts +47 -0
  206. package/dist-types/ts3.4/commands/DescribeContinuousBackupsCommand.d.ts +51 -0
  207. package/dist-types/ts3.4/commands/DescribeContributorInsightsCommand.d.ts +51 -0
  208. package/dist-types/ts3.4/commands/DescribeEndpointsCommand.d.ts +51 -0
  209. package/dist-types/ts3.4/commands/DescribeExportCommand.d.ts +47 -0
  210. package/dist-types/ts3.4/commands/DescribeGlobalTableCommand.d.ts +51 -0
  211. package/dist-types/ts3.4/commands/DescribeGlobalTableSettingsCommand.d.ts +51 -0
  212. package/dist-types/ts3.4/commands/DescribeImportCommand.d.ts +47 -0
  213. package/dist-types/ts3.4/commands/DescribeKinesisStreamingDestinationCommand.d.ts +51 -0
  214. package/dist-types/ts3.4/commands/DescribeLimitsCommand.d.ts +47 -0
  215. package/dist-types/ts3.4/commands/DescribeTableCommand.d.ts +47 -0
  216. package/dist-types/ts3.4/commands/DescribeTableReplicaAutoScalingCommand.d.ts +51 -0
  217. package/dist-types/ts3.4/commands/DescribeTimeToLiveCommand.d.ts +51 -0
  218. package/dist-types/ts3.4/commands/DisableKinesisStreamingDestinationCommand.d.ts +51 -0
  219. package/dist-types/ts3.4/commands/EnableKinesisStreamingDestinationCommand.d.ts +51 -0
  220. package/dist-types/ts3.4/commands/ExecuteStatementCommand.d.ts +50 -0
  221. package/dist-types/ts3.4/commands/ExecuteTransactionCommand.d.ts +51 -0
  222. package/dist-types/ts3.4/commands/ExportTableToPointInTimeCommand.d.ts +51 -0
  223. package/dist-types/ts3.4/commands/GetItemCommand.d.ts +41 -0
  224. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +50 -0
  225. package/dist-types/ts3.4/commands/ImportTableCommand.d.ts +47 -0
  226. package/dist-types/ts3.4/commands/ListBackupsCommand.d.ts +47 -0
  227. package/dist-types/ts3.4/commands/ListContributorInsightsCommand.d.ts +51 -0
  228. package/dist-types/ts3.4/commands/ListExportsCommand.d.ts +47 -0
  229. package/dist-types/ts3.4/commands/ListGlobalTablesCommand.d.ts +50 -0
  230. package/dist-types/ts3.4/commands/ListImportsCommand.d.ts +47 -0
  231. package/dist-types/ts3.4/commands/ListTablesCommand.d.ts +47 -0
  232. package/dist-types/ts3.4/commands/ListTagsOfResourceCommand.d.ts +51 -0
  233. package/dist-types/ts3.4/commands/PutItemCommand.d.ts +41 -0
  234. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +50 -0
  235. package/dist-types/ts3.4/commands/QueryCommand.d.ts +41 -0
  236. package/dist-types/ts3.4/commands/RestoreTableFromBackupCommand.d.ts +51 -0
  237. package/dist-types/ts3.4/commands/RestoreTableToPointInTimeCommand.d.ts +51 -0
  238. package/dist-types/ts3.4/commands/ScanCommand.d.ts +41 -0
  239. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +45 -0
  240. package/dist-types/ts3.4/commands/TransactGetItemsCommand.d.ts +50 -0
  241. package/dist-types/ts3.4/commands/TransactWriteItemsCommand.d.ts +51 -0
  242. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +45 -0
  243. package/dist-types/ts3.4/commands/UpdateContinuousBackupsCommand.d.ts +51 -0
  244. package/dist-types/ts3.4/commands/UpdateContributorInsightsCommand.d.ts +51 -0
  245. package/dist-types/ts3.4/commands/UpdateGlobalTableCommand.d.ts +50 -0
  246. package/dist-types/ts3.4/commands/UpdateGlobalTableSettingsCommand.d.ts +51 -0
  247. package/dist-types/ts3.4/commands/UpdateItemCommand.d.ts +47 -0
  248. package/dist-types/ts3.4/commands/UpdateKinesisStreamingDestinationCommand.d.ts +51 -0
  249. package/dist-types/ts3.4/commands/UpdateTableCommand.d.ts +47 -0
  250. package/dist-types/ts3.4/commands/UpdateTableReplicaAutoScalingCommand.d.ts +51 -0
  251. package/dist-types/ts3.4/commands/UpdateTimeToLiveCommand.d.ts +50 -0
  252. package/dist-types/ts3.4/commands/index.d.ts +57 -0
  253. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +65 -0
  254. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  255. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  256. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  257. package/dist-types/ts3.4/index.d.ts +13 -0
  258. package/dist-types/ts3.4/models/DynamoDBServiceException.d.ts +9 -0
  259. package/dist-types/ts3.4/models/enums.d.ts +313 -0
  260. package/dist-types/ts3.4/models/errors.d.ts +286 -0
  261. package/dist-types/ts3.4/models/models_0.d.ts +1557 -0
  262. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  263. package/dist-types/ts3.4/pagination/ListContributorInsightsPaginator.d.ts +11 -0
  264. package/dist-types/ts3.4/pagination/ListExportsPaginator.d.ts +11 -0
  265. package/dist-types/ts3.4/pagination/ListImportsPaginator.d.ts +11 -0
  266. package/dist-types/ts3.4/pagination/ListTablesPaginator.d.ts +11 -0
  267. package/dist-types/ts3.4/pagination/QueryPaginator.d.ts +11 -0
  268. package/dist-types/ts3.4/pagination/ScanPaginator.d.ts +8 -0
  269. package/dist-types/ts3.4/pagination/index.d.ts +7 -0
  270. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +114 -0
  271. package/dist-types/ts3.4/runtimeConfig.d.ts +111 -0
  272. package/dist-types/ts3.4/runtimeConfig.native.d.ts +118 -0
  273. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +30 -0
  274. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  275. package/dist-types/ts3.4/schemas/schemas_0.d.ts +325 -0
  276. package/dist-types/ts3.4/waiters/index.d.ts +6 -0
  277. package/dist-types/ts3.4/waiters/waitForContributorInsightsEnabled.d.ts +11 -0
  278. package/dist-types/ts3.4/waiters/waitForExportCompleted.d.ts +11 -0
  279. package/dist-types/ts3.4/waiters/waitForImportCompleted.d.ts +11 -0
  280. package/dist-types/ts3.4/waiters/waitForKinesisStreamingDestinationActive.d.ts +11 -0
  281. package/dist-types/ts3.4/waiters/waitForTableExists.d.ts +11 -0
  282. package/dist-types/ts3.4/waiters/waitForTableNotExists.d.ts +11 -0
  283. package/dist-types/waiters/index.d.ts +6 -0
  284. package/dist-types/waiters/waitForContributorInsightsEnabled.d.ts +14 -0
  285. package/dist-types/waiters/waitForExportCompleted.d.ts +14 -0
  286. package/dist-types/waiters/waitForImportCompleted.d.ts +14 -0
  287. package/dist-types/waiters/waitForKinesisStreamingDestinationActive.d.ts +14 -0
  288. package/dist-types/waiters/waitForTableExists.d.ts +14 -0
  289. package/dist-types/waiters/waitForTableNotExists.d.ts +14 -0
  290. package/package.json +130 -0
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DynamoDBServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class DynamoDBServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, DynamoDBServiceException.prototype);
10
+ }
11
+ }
12
+ exports.DynamoDBServiceException = DynamoDBServiceException;
@@ -0,0 +1,478 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransactionCanceledException = exports.ConditionalCheckFailedException = exports.IndexNotFoundException = exports.ReplicaNotFoundException = exports.ReplicaAlreadyExistsException = exports.InvalidRestoreTimeException = exports.TableAlreadyExistsException = exports.ImportConflictException = exports.PointInTimeRecoveryUnavailableException = exports.InvalidExportTimeException = exports.ExportConflictException = exports.TransactionInProgressException = exports.IdempotentParameterMismatchException = exports.DuplicateItemException = exports.ImportNotFoundException = exports.GlobalTableNotFoundException = exports.ExportNotFoundException = exports.PolicyNotFoundException = exports.TransactionConflictException = exports.ResourceInUseException = exports.GlobalTableAlreadyExistsException = exports.TableNotFoundException = exports.TableInUseException = exports.LimitExceededException = exports.ContinuousBackupsUnavailableException = exports.ReplicatedWriteConflictException = exports.ItemCollectionSizeLimitExceededException = exports.ResourceNotFoundException = exports.ProvisionedThroughputExceededException = exports.InvalidEndpointException = exports.ThrottlingException = exports.RequestLimitExceeded = exports.InternalServerError = exports.BackupNotFoundException = exports.BackupInUseException = void 0;
4
+ const DynamoDBServiceException_1 = require("./DynamoDBServiceException");
5
+ class BackupInUseException extends DynamoDBServiceException_1.DynamoDBServiceException {
6
+ name = "BackupInUseException";
7
+ $fault = "client";
8
+ constructor(opts) {
9
+ super({
10
+ name: "BackupInUseException",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ Object.setPrototypeOf(this, BackupInUseException.prototype);
15
+ }
16
+ }
17
+ exports.BackupInUseException = BackupInUseException;
18
+ class BackupNotFoundException extends DynamoDBServiceException_1.DynamoDBServiceException {
19
+ name = "BackupNotFoundException";
20
+ $fault = "client";
21
+ constructor(opts) {
22
+ super({
23
+ name: "BackupNotFoundException",
24
+ $fault: "client",
25
+ ...opts,
26
+ });
27
+ Object.setPrototypeOf(this, BackupNotFoundException.prototype);
28
+ }
29
+ }
30
+ exports.BackupNotFoundException = BackupNotFoundException;
31
+ class InternalServerError extends DynamoDBServiceException_1.DynamoDBServiceException {
32
+ name = "InternalServerError";
33
+ $fault = "server";
34
+ constructor(opts) {
35
+ super({
36
+ name: "InternalServerError",
37
+ $fault: "server",
38
+ ...opts,
39
+ });
40
+ Object.setPrototypeOf(this, InternalServerError.prototype);
41
+ }
42
+ }
43
+ exports.InternalServerError = InternalServerError;
44
+ class RequestLimitExceeded extends DynamoDBServiceException_1.DynamoDBServiceException {
45
+ name = "RequestLimitExceeded";
46
+ $fault = "client";
47
+ ThrottlingReasons;
48
+ constructor(opts) {
49
+ super({
50
+ name: "RequestLimitExceeded",
51
+ $fault: "client",
52
+ ...opts,
53
+ });
54
+ Object.setPrototypeOf(this, RequestLimitExceeded.prototype);
55
+ this.ThrottlingReasons = opts.ThrottlingReasons;
56
+ }
57
+ }
58
+ exports.RequestLimitExceeded = RequestLimitExceeded;
59
+ class ThrottlingException extends DynamoDBServiceException_1.DynamoDBServiceException {
60
+ name = "ThrottlingException";
61
+ $fault = "client";
62
+ throttlingReasons;
63
+ constructor(opts) {
64
+ super({
65
+ name: "ThrottlingException",
66
+ $fault: "client",
67
+ ...opts,
68
+ });
69
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
70
+ this.throttlingReasons = opts.throttlingReasons;
71
+ }
72
+ }
73
+ exports.ThrottlingException = ThrottlingException;
74
+ class InvalidEndpointException extends DynamoDBServiceException_1.DynamoDBServiceException {
75
+ name = "InvalidEndpointException";
76
+ $fault = "client";
77
+ Message;
78
+ constructor(opts) {
79
+ super({
80
+ name: "InvalidEndpointException",
81
+ $fault: "client",
82
+ ...opts,
83
+ });
84
+ Object.setPrototypeOf(this, InvalidEndpointException.prototype);
85
+ this.Message = opts.Message;
86
+ }
87
+ }
88
+ exports.InvalidEndpointException = InvalidEndpointException;
89
+ class ProvisionedThroughputExceededException extends DynamoDBServiceException_1.DynamoDBServiceException {
90
+ name = "ProvisionedThroughputExceededException";
91
+ $fault = "client";
92
+ ThrottlingReasons;
93
+ constructor(opts) {
94
+ super({
95
+ name: "ProvisionedThroughputExceededException",
96
+ $fault: "client",
97
+ ...opts,
98
+ });
99
+ Object.setPrototypeOf(this, ProvisionedThroughputExceededException.prototype);
100
+ this.ThrottlingReasons = opts.ThrottlingReasons;
101
+ }
102
+ }
103
+ exports.ProvisionedThroughputExceededException = ProvisionedThroughputExceededException;
104
+ class ResourceNotFoundException extends DynamoDBServiceException_1.DynamoDBServiceException {
105
+ name = "ResourceNotFoundException";
106
+ $fault = "client";
107
+ constructor(opts) {
108
+ super({
109
+ name: "ResourceNotFoundException",
110
+ $fault: "client",
111
+ ...opts,
112
+ });
113
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
114
+ }
115
+ }
116
+ exports.ResourceNotFoundException = ResourceNotFoundException;
117
+ class ItemCollectionSizeLimitExceededException extends DynamoDBServiceException_1.DynamoDBServiceException {
118
+ name = "ItemCollectionSizeLimitExceededException";
119
+ $fault = "client";
120
+ constructor(opts) {
121
+ super({
122
+ name: "ItemCollectionSizeLimitExceededException",
123
+ $fault: "client",
124
+ ...opts,
125
+ });
126
+ Object.setPrototypeOf(this, ItemCollectionSizeLimitExceededException.prototype);
127
+ }
128
+ }
129
+ exports.ItemCollectionSizeLimitExceededException = ItemCollectionSizeLimitExceededException;
130
+ class ReplicatedWriteConflictException extends DynamoDBServiceException_1.DynamoDBServiceException {
131
+ name = "ReplicatedWriteConflictException";
132
+ $fault = "client";
133
+ $retryable = {};
134
+ constructor(opts) {
135
+ super({
136
+ name: "ReplicatedWriteConflictException",
137
+ $fault: "client",
138
+ ...opts,
139
+ });
140
+ Object.setPrototypeOf(this, ReplicatedWriteConflictException.prototype);
141
+ }
142
+ }
143
+ exports.ReplicatedWriteConflictException = ReplicatedWriteConflictException;
144
+ class ContinuousBackupsUnavailableException extends DynamoDBServiceException_1.DynamoDBServiceException {
145
+ name = "ContinuousBackupsUnavailableException";
146
+ $fault = "client";
147
+ constructor(opts) {
148
+ super({
149
+ name: "ContinuousBackupsUnavailableException",
150
+ $fault: "client",
151
+ ...opts,
152
+ });
153
+ Object.setPrototypeOf(this, ContinuousBackupsUnavailableException.prototype);
154
+ }
155
+ }
156
+ exports.ContinuousBackupsUnavailableException = ContinuousBackupsUnavailableException;
157
+ class LimitExceededException extends DynamoDBServiceException_1.DynamoDBServiceException {
158
+ name = "LimitExceededException";
159
+ $fault = "client";
160
+ constructor(opts) {
161
+ super({
162
+ name: "LimitExceededException",
163
+ $fault: "client",
164
+ ...opts,
165
+ });
166
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
167
+ }
168
+ }
169
+ exports.LimitExceededException = LimitExceededException;
170
+ class TableInUseException extends DynamoDBServiceException_1.DynamoDBServiceException {
171
+ name = "TableInUseException";
172
+ $fault = "client";
173
+ constructor(opts) {
174
+ super({
175
+ name: "TableInUseException",
176
+ $fault: "client",
177
+ ...opts,
178
+ });
179
+ Object.setPrototypeOf(this, TableInUseException.prototype);
180
+ }
181
+ }
182
+ exports.TableInUseException = TableInUseException;
183
+ class TableNotFoundException extends DynamoDBServiceException_1.DynamoDBServiceException {
184
+ name = "TableNotFoundException";
185
+ $fault = "client";
186
+ constructor(opts) {
187
+ super({
188
+ name: "TableNotFoundException",
189
+ $fault: "client",
190
+ ...opts,
191
+ });
192
+ Object.setPrototypeOf(this, TableNotFoundException.prototype);
193
+ }
194
+ }
195
+ exports.TableNotFoundException = TableNotFoundException;
196
+ class GlobalTableAlreadyExistsException extends DynamoDBServiceException_1.DynamoDBServiceException {
197
+ name = "GlobalTableAlreadyExistsException";
198
+ $fault = "client";
199
+ constructor(opts) {
200
+ super({
201
+ name: "GlobalTableAlreadyExistsException",
202
+ $fault: "client",
203
+ ...opts,
204
+ });
205
+ Object.setPrototypeOf(this, GlobalTableAlreadyExistsException.prototype);
206
+ }
207
+ }
208
+ exports.GlobalTableAlreadyExistsException = GlobalTableAlreadyExistsException;
209
+ class ResourceInUseException extends DynamoDBServiceException_1.DynamoDBServiceException {
210
+ name = "ResourceInUseException";
211
+ $fault = "client";
212
+ constructor(opts) {
213
+ super({
214
+ name: "ResourceInUseException",
215
+ $fault: "client",
216
+ ...opts,
217
+ });
218
+ Object.setPrototypeOf(this, ResourceInUseException.prototype);
219
+ }
220
+ }
221
+ exports.ResourceInUseException = ResourceInUseException;
222
+ class TransactionConflictException extends DynamoDBServiceException_1.DynamoDBServiceException {
223
+ name = "TransactionConflictException";
224
+ $fault = "client";
225
+ constructor(opts) {
226
+ super({
227
+ name: "TransactionConflictException",
228
+ $fault: "client",
229
+ ...opts,
230
+ });
231
+ Object.setPrototypeOf(this, TransactionConflictException.prototype);
232
+ }
233
+ }
234
+ exports.TransactionConflictException = TransactionConflictException;
235
+ class PolicyNotFoundException extends DynamoDBServiceException_1.DynamoDBServiceException {
236
+ name = "PolicyNotFoundException";
237
+ $fault = "client";
238
+ constructor(opts) {
239
+ super({
240
+ name: "PolicyNotFoundException",
241
+ $fault: "client",
242
+ ...opts,
243
+ });
244
+ Object.setPrototypeOf(this, PolicyNotFoundException.prototype);
245
+ }
246
+ }
247
+ exports.PolicyNotFoundException = PolicyNotFoundException;
248
+ class ExportNotFoundException extends DynamoDBServiceException_1.DynamoDBServiceException {
249
+ name = "ExportNotFoundException";
250
+ $fault = "client";
251
+ constructor(opts) {
252
+ super({
253
+ name: "ExportNotFoundException",
254
+ $fault: "client",
255
+ ...opts,
256
+ });
257
+ Object.setPrototypeOf(this, ExportNotFoundException.prototype);
258
+ }
259
+ }
260
+ exports.ExportNotFoundException = ExportNotFoundException;
261
+ class GlobalTableNotFoundException extends DynamoDBServiceException_1.DynamoDBServiceException {
262
+ name = "GlobalTableNotFoundException";
263
+ $fault = "client";
264
+ constructor(opts) {
265
+ super({
266
+ name: "GlobalTableNotFoundException",
267
+ $fault: "client",
268
+ ...opts,
269
+ });
270
+ Object.setPrototypeOf(this, GlobalTableNotFoundException.prototype);
271
+ }
272
+ }
273
+ exports.GlobalTableNotFoundException = GlobalTableNotFoundException;
274
+ class ImportNotFoundException extends DynamoDBServiceException_1.DynamoDBServiceException {
275
+ name = "ImportNotFoundException";
276
+ $fault = "client";
277
+ constructor(opts) {
278
+ super({
279
+ name: "ImportNotFoundException",
280
+ $fault: "client",
281
+ ...opts,
282
+ });
283
+ Object.setPrototypeOf(this, ImportNotFoundException.prototype);
284
+ }
285
+ }
286
+ exports.ImportNotFoundException = ImportNotFoundException;
287
+ class DuplicateItemException extends DynamoDBServiceException_1.DynamoDBServiceException {
288
+ name = "DuplicateItemException";
289
+ $fault = "client";
290
+ constructor(opts) {
291
+ super({
292
+ name: "DuplicateItemException",
293
+ $fault: "client",
294
+ ...opts,
295
+ });
296
+ Object.setPrototypeOf(this, DuplicateItemException.prototype);
297
+ }
298
+ }
299
+ exports.DuplicateItemException = DuplicateItemException;
300
+ class IdempotentParameterMismatchException extends DynamoDBServiceException_1.DynamoDBServiceException {
301
+ name = "IdempotentParameterMismatchException";
302
+ $fault = "client";
303
+ Message;
304
+ constructor(opts) {
305
+ super({
306
+ name: "IdempotentParameterMismatchException",
307
+ $fault: "client",
308
+ ...opts,
309
+ });
310
+ Object.setPrototypeOf(this, IdempotentParameterMismatchException.prototype);
311
+ this.Message = opts.Message;
312
+ }
313
+ }
314
+ exports.IdempotentParameterMismatchException = IdempotentParameterMismatchException;
315
+ class TransactionInProgressException extends DynamoDBServiceException_1.DynamoDBServiceException {
316
+ name = "TransactionInProgressException";
317
+ $fault = "client";
318
+ Message;
319
+ constructor(opts) {
320
+ super({
321
+ name: "TransactionInProgressException",
322
+ $fault: "client",
323
+ ...opts,
324
+ });
325
+ Object.setPrototypeOf(this, TransactionInProgressException.prototype);
326
+ this.Message = opts.Message;
327
+ }
328
+ }
329
+ exports.TransactionInProgressException = TransactionInProgressException;
330
+ class ExportConflictException extends DynamoDBServiceException_1.DynamoDBServiceException {
331
+ name = "ExportConflictException";
332
+ $fault = "client";
333
+ constructor(opts) {
334
+ super({
335
+ name: "ExportConflictException",
336
+ $fault: "client",
337
+ ...opts,
338
+ });
339
+ Object.setPrototypeOf(this, ExportConflictException.prototype);
340
+ }
341
+ }
342
+ exports.ExportConflictException = ExportConflictException;
343
+ class InvalidExportTimeException extends DynamoDBServiceException_1.DynamoDBServiceException {
344
+ name = "InvalidExportTimeException";
345
+ $fault = "client";
346
+ constructor(opts) {
347
+ super({
348
+ name: "InvalidExportTimeException",
349
+ $fault: "client",
350
+ ...opts,
351
+ });
352
+ Object.setPrototypeOf(this, InvalidExportTimeException.prototype);
353
+ }
354
+ }
355
+ exports.InvalidExportTimeException = InvalidExportTimeException;
356
+ class PointInTimeRecoveryUnavailableException extends DynamoDBServiceException_1.DynamoDBServiceException {
357
+ name = "PointInTimeRecoveryUnavailableException";
358
+ $fault = "client";
359
+ constructor(opts) {
360
+ super({
361
+ name: "PointInTimeRecoveryUnavailableException",
362
+ $fault: "client",
363
+ ...opts,
364
+ });
365
+ Object.setPrototypeOf(this, PointInTimeRecoveryUnavailableException.prototype);
366
+ }
367
+ }
368
+ exports.PointInTimeRecoveryUnavailableException = PointInTimeRecoveryUnavailableException;
369
+ class ImportConflictException extends DynamoDBServiceException_1.DynamoDBServiceException {
370
+ name = "ImportConflictException";
371
+ $fault = "client";
372
+ constructor(opts) {
373
+ super({
374
+ name: "ImportConflictException",
375
+ $fault: "client",
376
+ ...opts,
377
+ });
378
+ Object.setPrototypeOf(this, ImportConflictException.prototype);
379
+ }
380
+ }
381
+ exports.ImportConflictException = ImportConflictException;
382
+ class TableAlreadyExistsException extends DynamoDBServiceException_1.DynamoDBServiceException {
383
+ name = "TableAlreadyExistsException";
384
+ $fault = "client";
385
+ constructor(opts) {
386
+ super({
387
+ name: "TableAlreadyExistsException",
388
+ $fault: "client",
389
+ ...opts,
390
+ });
391
+ Object.setPrototypeOf(this, TableAlreadyExistsException.prototype);
392
+ }
393
+ }
394
+ exports.TableAlreadyExistsException = TableAlreadyExistsException;
395
+ class InvalidRestoreTimeException extends DynamoDBServiceException_1.DynamoDBServiceException {
396
+ name = "InvalidRestoreTimeException";
397
+ $fault = "client";
398
+ constructor(opts) {
399
+ super({
400
+ name: "InvalidRestoreTimeException",
401
+ $fault: "client",
402
+ ...opts,
403
+ });
404
+ Object.setPrototypeOf(this, InvalidRestoreTimeException.prototype);
405
+ }
406
+ }
407
+ exports.InvalidRestoreTimeException = InvalidRestoreTimeException;
408
+ class ReplicaAlreadyExistsException extends DynamoDBServiceException_1.DynamoDBServiceException {
409
+ name = "ReplicaAlreadyExistsException";
410
+ $fault = "client";
411
+ constructor(opts) {
412
+ super({
413
+ name: "ReplicaAlreadyExistsException",
414
+ $fault: "client",
415
+ ...opts,
416
+ });
417
+ Object.setPrototypeOf(this, ReplicaAlreadyExistsException.prototype);
418
+ }
419
+ }
420
+ exports.ReplicaAlreadyExistsException = ReplicaAlreadyExistsException;
421
+ class ReplicaNotFoundException extends DynamoDBServiceException_1.DynamoDBServiceException {
422
+ name = "ReplicaNotFoundException";
423
+ $fault = "client";
424
+ constructor(opts) {
425
+ super({
426
+ name: "ReplicaNotFoundException",
427
+ $fault: "client",
428
+ ...opts,
429
+ });
430
+ Object.setPrototypeOf(this, ReplicaNotFoundException.prototype);
431
+ }
432
+ }
433
+ exports.ReplicaNotFoundException = ReplicaNotFoundException;
434
+ class IndexNotFoundException extends DynamoDBServiceException_1.DynamoDBServiceException {
435
+ name = "IndexNotFoundException";
436
+ $fault = "client";
437
+ constructor(opts) {
438
+ super({
439
+ name: "IndexNotFoundException",
440
+ $fault: "client",
441
+ ...opts,
442
+ });
443
+ Object.setPrototypeOf(this, IndexNotFoundException.prototype);
444
+ }
445
+ }
446
+ exports.IndexNotFoundException = IndexNotFoundException;
447
+ class ConditionalCheckFailedException extends DynamoDBServiceException_1.DynamoDBServiceException {
448
+ name = "ConditionalCheckFailedException";
449
+ $fault = "client";
450
+ Item;
451
+ constructor(opts) {
452
+ super({
453
+ name: "ConditionalCheckFailedException",
454
+ $fault: "client",
455
+ ...opts,
456
+ });
457
+ Object.setPrototypeOf(this, ConditionalCheckFailedException.prototype);
458
+ this.Item = opts.Item;
459
+ }
460
+ }
461
+ exports.ConditionalCheckFailedException = ConditionalCheckFailedException;
462
+ class TransactionCanceledException extends DynamoDBServiceException_1.DynamoDBServiceException {
463
+ name = "TransactionCanceledException";
464
+ $fault = "client";
465
+ Message;
466
+ CancellationReasons;
467
+ constructor(opts) {
468
+ super({
469
+ name: "TransactionCanceledException",
470
+ $fault: "client",
471
+ ...opts,
472
+ });
473
+ Object.setPrototypeOf(this, TransactionCanceledException.prototype);
474
+ this.Message = opts.Message;
475
+ this.CancellationReasons = opts.CancellationReasons;
476
+ }
477
+ }
478
+ exports.TransactionCanceledException = TransactionCanceledException;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
+ const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
+ const account_id_endpoint_1 = require("@aws-sdk/core/account-id-endpoint");
8
+ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
9
+ const config_resolver_1 = require("@smithy/config-resolver");
10
+ const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
11
+ const invalid_dependency_1 = require("@smithy/invalid-dependency");
12
+ const smithy_client_1 = require("@smithy/smithy-client");
13
+ const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
14
+ const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
15
+ const util_retry_1 = require("@smithy/util-retry");
16
+ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
17
+ const getRuntimeConfig = (config) => {
18
+ const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
19
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
20
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
21
+ return {
22
+ ...clientSharedValues,
23
+ ...config,
24
+ runtime: "browser",
25
+ defaultsMode,
26
+ accountIdEndpointMode: config?.accountIdEndpointMode ?? (() => Promise.resolve(account_id_endpoint_1.DEFAULT_ACCOUNT_ID_ENDPOINT_MODE)),
27
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
28
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
29
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
30
+ endpointDiscoveryEnabledProvider: config?.endpointDiscoveryEnabledProvider ?? (() => Promise.resolve(undefined)),
31
+ maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
32
+ region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
33
+ requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
34
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
35
+ sha256: config?.sha256 ?? sha256_browser_1.Sha256,
36
+ streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
37
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
38
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
39
+ };
40
+ };
41
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
+ const core_1 = require("@aws-sdk/core");
7
+ const account_id_endpoint_1 = require("@aws-sdk/core/account-id-endpoint");
8
+ const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
9
+ const middleware_endpoint_discovery_1 = require("@aws-sdk/middleware-endpoint-discovery");
10
+ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
11
+ const config_resolver_1 = require("@smithy/config-resolver");
12
+ const hash_node_1 = require("@smithy/hash-node");
13
+ const middleware_retry_1 = require("@smithy/middleware-retry");
14
+ const node_config_provider_1 = require("@smithy/node-config-provider");
15
+ const node_http_handler_1 = require("@smithy/node-http-handler");
16
+ const smithy_client_1 = require("@smithy/smithy-client");
17
+ const util_body_length_node_1 = require("@smithy/util-body-length-node");
18
+ const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
19
+ const util_retry_1 = require("@smithy/util-retry");
20
+ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
21
+ const getRuntimeConfig = (config) => {
22
+ (0, smithy_client_1.emitWarningIfUnsupportedVersion)(process.version);
23
+ const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
24
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
25
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
26
+ (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
27
+ const loaderConfig = {
28
+ profile: config?.profile,
29
+ logger: clientSharedValues.logger,
30
+ };
31
+ return {
32
+ ...clientSharedValues,
33
+ ...config,
34
+ runtime: "node",
35
+ defaultsMode,
36
+ accountIdEndpointMode: config?.accountIdEndpointMode ?? (0, node_config_provider_1.loadConfig)(account_id_endpoint_1.NODE_ACCOUNT_ID_ENDPOINT_MODE_CONFIG_OPTIONS, loaderConfig),
37
+ authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
38
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
39
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
40
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
41
+ endpointDiscoveryEnabledProvider: config?.endpointDiscoveryEnabledProvider ?? (0, node_config_provider_1.loadConfig)(middleware_endpoint_discovery_1.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS, loaderConfig),
42
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
43
+ region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
44
+ requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
45
+ retryMode: config?.retryMode ??
46
+ (0, node_config_provider_1.loadConfig)({
47
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
48
+ default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
49
+ }, config),
50
+ sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
51
+ streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
52
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
53
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
54
+ userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
55
+ };
56
+ };
57
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const sha256_js_1 = require("@aws-crypto/sha256-js");
5
+ const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
+ const getRuntimeConfig = (config) => {
7
+ const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
8
+ return {
9
+ ...browserDefaults,
10
+ ...config,
11
+ runtime: "react-native",
12
+ sha256: config?.sha256 ?? sha256_js_1.Sha256,
13
+ };
14
+ };
15
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const core_1 = require("@aws-sdk/core");
5
+ const protocols_1 = require("@aws-sdk/core/protocols");
6
+ const dynamodb_codec_1 = require("@aws-sdk/dynamodb-codec");
7
+ const smithy_client_1 = require("@smithy/smithy-client");
8
+ const url_parser_1 = require("@smithy/url-parser");
9
+ const util_base64_1 = require("@smithy/util-base64");
10
+ const util_utf8_1 = require("@smithy/util-utf8");
11
+ const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
12
+ const endpointResolver_1 = require("./endpoint/endpointResolver");
13
+ const schemas_0_1 = require("./schemas/schemas_0");
14
+ const getRuntimeConfig = (config) => {
15
+ return {
16
+ apiVersion: "2012-08-10",
17
+ base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
18
+ base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
19
+ disableHostPrefix: config?.disableHostPrefix ?? false,
20
+ endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
21
+ extensions: config?.extensions ?? [],
22
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultDynamoDBHttpAuthSchemeProvider,
23
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
24
+ {
25
+ schemeId: "aws.auth#sigv4",
26
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
27
+ signer: new core_1.AwsSdkSigV4Signer(),
28
+ },
29
+ ],
30
+ logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
31
+ protocol: config?.protocol ?? protocols_1.AwsJson1_0Protocol,
32
+ protocolSettings: config?.protocolSettings ?? {
33
+ defaultNamespace: "com.amazonaws.dynamodb",
34
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
35
+ xmlNamespace: "http://dynamodb.amazonaws.com/doc/2012-08-10/",
36
+ version: "2012-08-10",
37
+ serviceTarget: "DynamoDB_20120810",
38
+ jsonCodec: new dynamodb_codec_1.DynamoDBJsonCodec(),
39
+ },
40
+ serviceId: config?.serviceId ?? "DynamoDB",
41
+ urlParser: config?.urlParser ?? url_parser_1.parseUrl,
42
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
43
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
44
+ };
45
+ };
46
+ exports.getRuntimeConfig = getRuntimeConfig;