@aws-amplify/graphql-api-construct 1.16.1-ai-next.0 → 1.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (190) hide show
  1. package/.jsii +160 -87
  2. package/API.md +11 -1
  3. package/CHANGELOG.md +6 -2
  4. package/lib/amplify-dynamodb-table-wrapper.js +1 -1
  5. package/lib/amplify-graphql-api.js +14 -2
  6. package/lib/amplify-graphql-definition.js +1 -1
  7. package/lib/model-datasource-strategy-types.d.ts +21 -1
  8. package/lib/model-datasource-strategy-types.js +1 -1
  9. package/lib/sql-model-datasource-strategy.js +1 -1
  10. package/lib/types.d.ts +1 -1
  11. package/lib/types.js +1 -1
  12. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/bedrock_converse_adapter.d.ts +3 -4
  13. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/bedrock_converse_adapter.js +174 -212
  14. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_message_history_retriever.d.ts +10 -0
  15. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_message_history_retriever.js +65 -2
  16. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_executor.d.ts +4 -2
  17. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_executor.js +29 -7
  18. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_response_sender.d.ts +11 -8
  19. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_response_sender.js +33 -25
  20. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/errors.d.ts +10 -0
  21. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/errors.js +17 -0
  22. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/lazy.d.ts +16 -0
  23. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/lazy.js +37 -0
  24. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/types.d.ts +0 -19
  25. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/types.js +1 -1
  26. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/README.md +9 -0
  27. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/amplify_function.d.ts +4 -0
  28. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/amplify_function.js +3 -0
  29. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/auth_resources.d.ts +66 -0
  30. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/auth_resources.js +3 -0
  31. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/aws_client_provider.d.ts +5 -0
  32. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/aws_client_provider.js +3 -0
  33. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_identifier.d.ts +56 -0
  34. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_identifier.js +3 -0
  35. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_output.d.ts +6 -0
  36. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_output.js +3 -0
  37. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_secret_resolver.d.ts +22 -0
  38. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_secret_resolver.js +3 -0
  39. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_stack_creator.d.ts +8 -0
  40. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_stack_creator.js +3 -0
  41. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_stack_resolver.d.ts +7 -0
  42. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_stack_resolver.js +3 -0
  43. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/construct_container.d.ts +35 -0
  44. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/construct_container.js +3 -0
  45. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/construct_factory.d.ts +24 -0
  46. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/construct_factory.js +3 -0
  47. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/deep_partial.d.ts +17 -0
  48. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/deep_partial.js +3 -0
  49. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/deployment_type.d.ts +8 -0
  50. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/deployment_type.js +3 -0
  51. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/function_resources.d.ts +8 -0
  52. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/function_resources.js +3 -0
  53. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/import_path_verifier.d.ts +14 -0
  54. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/import_path_verifier.js +3 -0
  55. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/index.d.ts +24 -0
  56. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/index.js +40 -0
  57. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/output_retrieval_strategy.d.ts +11 -0
  58. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/output_retrieval_strategy.js +3 -0
  59. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/output_storage_strategy.d.ts +10 -0
  60. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/output_storage_strategy.js +3 -0
  61. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/package_manager_controller.d.ts +16 -0
  62. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/package_manager_controller.js +3 -0
  63. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_access_acceptor.d.ts +27 -0
  64. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_access_acceptor.js +3 -0
  65. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_name_validator.d.ts +10 -0
  66. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_name_validator.js +3 -0
  67. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_provider.d.ts +10 -0
  68. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_provider.js +3 -0
  69. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/ssm_environment_entries_generator.d.ts +5 -0
  70. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/ssm_environment_entries_generator.js +3 -0
  71. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/stable_backend_identifiers.d.ts +4 -0
  72. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/stable_backend_identifiers.js +3 -0
  73. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/stack_provider.d.ts +5 -0
  74. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/stack_provider.js +3 -0
  75. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/package.json +24 -0
  76. package/node_modules/@aws-amplify/ai-constructs/package.json +4 -4
  77. package/node_modules/@aws-amplify/graphql-auth-transformer/CHANGELOG.md +1 -1
  78. package/node_modules/@aws-amplify/graphql-auth-transformer/package.json +13 -13
  79. package/node_modules/@aws-amplify/graphql-conversation-transformer/CHANGELOG.md +6 -2
  80. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/message-model.js +1 -1
  81. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/message-model.js.map +1 -1
  82. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/templates/assistant-streaming-mutation-resolver-fn.template.js +0 -2
  83. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-field-handler.d.ts.map +1 -1
  84. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-field-handler.js.map +1 -1
  85. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.d.ts +1 -1
  86. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.d.ts.map +1 -1
  87. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.js +10 -10
  88. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.js.map +1 -1
  89. package/node_modules/@aws-amplify/graphql-conversation-transformer/package.json +11 -11
  90. package/node_modules/@aws-amplify/graphql-default-value-transformer/CHANGELOG.md +1 -1
  91. package/node_modules/@aws-amplify/graphql-default-value-transformer/package.json +8 -8
  92. package/node_modules/@aws-amplify/graphql-directives/CHANGELOG.md +6 -0
  93. package/node_modules/@aws-amplify/graphql-directives/LICENSE +201 -0
  94. package/node_modules/@aws-amplify/graphql-directives/lib/directives/belongs-to.d.ts.map +1 -1
  95. package/node_modules/@aws-amplify/graphql-directives/lib/directives/belongs-to.js +1 -1
  96. package/node_modules/@aws-amplify/graphql-directives/lib/directives/belongs-to.js.map +1 -1
  97. package/node_modules/@aws-amplify/graphql-directives/package.json +3 -2
  98. package/node_modules/@aws-amplify/graphql-function-transformer/CHANGELOG.md +1 -1
  99. package/node_modules/@aws-amplify/graphql-function-transformer/package.json +7 -7
  100. package/node_modules/@aws-amplify/graphql-generation-transformer/CHANGELOG.md +1 -1
  101. package/node_modules/@aws-amplify/graphql-generation-transformer/package.json +7 -7
  102. package/node_modules/@aws-amplify/graphql-http-transformer/CHANGELOG.md +1 -1
  103. package/node_modules/@aws-amplify/graphql-http-transformer/package.json +7 -7
  104. package/node_modules/@aws-amplify/graphql-index-transformer/CHANGELOG.md +1 -1
  105. package/node_modules/@aws-amplify/graphql-index-transformer/package.json +8 -8
  106. package/node_modules/@aws-amplify/graphql-maps-to-transformer/CHANGELOG.md +1 -1
  107. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/assets/mapping-lambda.zip +0 -0
  108. package/node_modules/@aws-amplify/graphql-maps-to-transformer/package.json +11 -11
  109. package/node_modules/@aws-amplify/graphql-model-transformer/CHANGELOG.md +4 -2
  110. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.d.ts.map +1 -1
  111. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.js +7 -2
  112. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.js.map +1 -1
  113. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-lambda.zip +0 -0
  114. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-notification-lambda.zip +0 -0
  115. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-patching-lambda.zip +0 -0
  116. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamo-model-resource-generator.d.ts.map +1 -1
  117. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamo-model-resource-generator.js +12 -3
  118. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamo-model-resource-generator.js.map +1 -1
  119. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamodb-table-construct/index.d.ts +2 -0
  120. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamodb-table-construct/index.d.ts.map +1 -1
  121. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamodb-table-construct/index.js +4 -2
  122. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamodb-table-construct/index.js.map +1 -1
  123. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/amplify-table-manager-handler.d.ts.map +1 -1
  124. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/amplify-table-manager-handler.js +6 -1
  125. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/amplify-table-manager-handler.js.map +1 -1
  126. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/import-table.d.ts +7 -0
  127. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/import-table.d.ts.map +1 -0
  128. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/import-table.js +205 -0
  129. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/import-table.js.map +1 -0
  130. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/node_modules/.package-lock.json +13 -0
  131. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/node_modules/lodash.isequal/LICENSE +47 -0
  132. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/node_modules/lodash.isequal/README.md +18 -0
  133. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/node_modules/lodash.isequal/index.js +1848 -0
  134. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/node_modules/lodash.isequal/package.json +16 -0
  135. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/package-lock.json +21 -0
  136. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/package.json +11 -0
  137. package/node_modules/@aws-amplify/graphql-model-transformer/package.json +12 -9
  138. package/node_modules/@aws-amplify/graphql-predictions-transformer/CHANGELOG.md +1 -1
  139. package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/predictionsLambdaFunction.zip +0 -0
  140. package/node_modules/@aws-amplify/graphql-predictions-transformer/package.json +7 -7
  141. package/node_modules/@aws-amplify/graphql-relational-transformer/CHANGELOG.md +4 -2
  142. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.d.ts.map +1 -1
  143. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.js +6 -0
  144. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.js.map +1 -1
  145. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-references-transformer.d.ts.map +1 -1
  146. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-references-transformer.js +7 -1
  147. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-references-transformer.js.map +1 -1
  148. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-references-transformer.d.ts.map +1 -1
  149. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-references-transformer.js +7 -1
  150. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-references-transformer.js.map +1 -1
  151. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/types.d.ts +1 -0
  152. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/types.d.ts.map +1 -1
  153. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.d.ts +1 -0
  154. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.d.ts.map +1 -1
  155. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.js +9 -1
  156. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.js.map +1 -1
  157. package/node_modules/@aws-amplify/graphql-relational-transformer/package.json +9 -9
  158. package/node_modules/@aws-amplify/graphql-searchable-transformer/CHANGELOG.md +1 -1
  159. package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/streaming-lambda.zip +0 -0
  160. package/node_modules/@aws-amplify/graphql-searchable-transformer/package.json +8 -8
  161. package/node_modules/@aws-amplify/graphql-sql-transformer/CHANGELOG.md +1 -1
  162. package/node_modules/@aws-amplify/graphql-sql-transformer/package.json +8 -8
  163. package/node_modules/@aws-amplify/graphql-transformer/CHANGELOG.md +1 -1
  164. package/node_modules/@aws-amplify/graphql-transformer/package.json +18 -18
  165. package/node_modules/@aws-amplify/graphql-transformer-core/API.md +4 -0
  166. package/node_modules/@aws-amplify/graphql-transformer-core/CHANGELOG.md +4 -2
  167. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts +1 -1
  168. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts.map +1 -1
  169. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js +3 -2
  170. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js.map +1 -1
  171. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.d.ts +2 -1
  172. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.d.ts.map +1 -1
  173. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.js +9 -1
  174. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.js.map +1 -1
  175. package/node_modules/@aws-amplify/graphql-transformer-core/package.json +5 -5
  176. package/node_modules/@aws-amplify/graphql-transformer-interfaces/API.md +11 -1
  177. package/node_modules/@aws-amplify/graphql-transformer-interfaces/CHANGELOG.md +6 -0
  178. package/node_modules/@aws-amplify/graphql-transformer-interfaces/LICENSE +201 -0
  179. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.d.ts +6 -1
  180. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.d.ts.map +1 -1
  181. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.js.map +1 -1
  182. package/node_modules/@aws-amplify/graphql-transformer-interfaces/package.json +3 -2
  183. package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/model-datasource/types.ts +15 -0
  184. package/node_modules/@aws-amplify/graphql-transformer-interfaces/tsconfig.tsbuildinfo +1 -1
  185. package/node_modules/graphql-transformer-common/CHANGELOG.md +1 -1
  186. package/node_modules/graphql-transformer-common/package.json +2 -2
  187. package/package.json +22 -22
  188. package/src/amplify-graphql-api.ts +16 -1
  189. package/src/model-datasource-strategy-types.ts +25 -0
  190. package/src/types.ts +1 -1
@@ -0,0 +1,205 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.getImportedTableComparisonProperties = exports.getExpectedTableProperties = exports.validateImportedTableProperties = exports.importTable = void 0;
7
+ const lodash_isequal_1 = __importDefault(require("lodash.isequal"));
8
+ const client_dynamodb_1 = require("@aws-sdk/client-dynamodb");
9
+ const importTable = async (createTableInput) => {
10
+ const ddbClient = new client_dynamodb_1.DynamoDB();
11
+ console.log('Initiating table import process');
12
+ console.log(`Fetching current state of table ${createTableInput.TableName}`);
13
+ const describeTableResult = await ddbClient.describeTable({ TableName: createTableInput.TableName });
14
+ if (!describeTableResult.Table) {
15
+ throw new Error(`Could not find ${createTableInput.TableName} to update`);
16
+ }
17
+ console.log('Current table state: ', describeTableResult);
18
+ const expectedTableProperties = (0, exports.getExpectedTableProperties)(createTableInput);
19
+ const importedTableProperties = (0, exports.getImportedTableComparisonProperties)(describeTableResult.Table);
20
+ (0, exports.validateImportedTableProperties)(importedTableProperties, expectedTableProperties);
21
+ const result = {
22
+ PhysicalResourceId: describeTableResult.Table.TableName,
23
+ Data: {
24
+ TableArn: describeTableResult.Table.TableArn,
25
+ TableStreamArn: describeTableResult.Table.LatestStreamArn,
26
+ TableName: describeTableResult.Table.TableName,
27
+ },
28
+ };
29
+ console.log('Returning result: ', result);
30
+ return result;
31
+ };
32
+ exports.importTable = importTable;
33
+ const validateImportedTableProperties = (importedTableProperties, expectedTableProperties) => {
34
+ const errors = [];
35
+ const assertEqual = (propertyName, imported, expected) => {
36
+ if (!(0, lodash_isequal_1.default)(imported, expected)) {
37
+ errors.push(`${propertyName} does not match the expected value.\nActual: ${JSON.stringify(imported)}\nExpected: ${JSON.stringify(expected)}`);
38
+ }
39
+ };
40
+ const sanitizedImportedTableProperties = JSON.parse(JSON.stringify(importedTableProperties));
41
+ const sanitizedExpectedTableProperties = JSON.parse(JSON.stringify(expectedTableProperties));
42
+ assertEqual('AttributeDefinitions', sanitizedImportedTableProperties.AttributeDefinitions, sanitizedExpectedTableProperties.AttributeDefinitions);
43
+ assertEqual('KeySchema', sanitizedImportedTableProperties.KeySchema, sanitizedExpectedTableProperties.KeySchema);
44
+ assertEqual('GlobalSecondaryIndexes', sanitizedImportedTableProperties.GlobalSecondaryIndexes, sanitizedExpectedTableProperties.GlobalSecondaryIndexes);
45
+ assertEqual('BillingModeSummary', sanitizedImportedTableProperties.BillingModeSummary, sanitizedExpectedTableProperties.BillingModeSummary);
46
+ assertEqual('ProvisionedThroughput', sanitizedImportedTableProperties.ProvisionedThroughput, sanitizedExpectedTableProperties.ProvisionedThroughput);
47
+ assertEqual('StreamSpecification', sanitizedImportedTableProperties.StreamSpecification, sanitizedExpectedTableProperties.StreamSpecification);
48
+ assertEqual('SSEDescription', sanitizedImportedTableProperties.SSEDescription, sanitizedExpectedTableProperties.SSEDescription);
49
+ assertEqual('DeletionProtectionEnabled', sanitizedImportedTableProperties.DeletionProtectionEnabled, sanitizedExpectedTableProperties.DeletionProtectionEnabled);
50
+ if (errors.length > 0) {
51
+ throw new Error(`Imported table properties did not match the expected table properties.\n${errors.join('\n')}`);
52
+ }
53
+ };
54
+ exports.validateImportedTableProperties = validateImportedTableProperties;
55
+ const getExpectedTableProperties = (createTableInput) => {
56
+ return {
57
+ AttributeDefinitions: getExpectedAttributeDefinitions(createTableInput),
58
+ KeySchema: getExpectedKeySchema(createTableInput),
59
+ GlobalSecondaryIndexes: getExpectedGlobalSecondaryIndexes(createTableInput),
60
+ BillingModeSummary: getExpectedBillingModeSummary(createTableInput),
61
+ ProvisionedThroughput: getExpectedProvisionedThroughput(createTableInput),
62
+ StreamSpecification: getExpectedStreamSpecification(createTableInput),
63
+ SSEDescription: getExpectedSSEDescription(createTableInput),
64
+ DeletionProtectionEnabled: getExpectedDeletionProtectionEnabled(createTableInput),
65
+ };
66
+ };
67
+ exports.getExpectedTableProperties = getExpectedTableProperties;
68
+ const getExpectedAttributeDefinitions = (createTableInput) => {
69
+ return createTableInput.AttributeDefinitions;
70
+ };
71
+ const getExpectedKeySchema = (createTableInput) => {
72
+ return createTableInput.KeySchema;
73
+ };
74
+ const getExpectedGlobalSecondaryIndexes = (createTableInput) => {
75
+ var _a;
76
+ return (_a = createTableInput.GlobalSecondaryIndexes) === null || _a === void 0 ? void 0 : _a.map((gsi) => {
77
+ if (createTableInput.BillingMode === 'PAY_PER_REQUEST') {
78
+ return {
79
+ ...gsi,
80
+ ProvisionedThroughput: gsi.ProvisionedThroughput
81
+ ? {
82
+ ReadCapacityUnits: 0,
83
+ WriteCapacityUnits: 0,
84
+ }
85
+ : undefined,
86
+ };
87
+ }
88
+ return gsi;
89
+ });
90
+ };
91
+ const getExpectedBillingModeSummary = (createTableInput) => {
92
+ return {
93
+ BillingMode: createTableInput.BillingMode,
94
+ };
95
+ };
96
+ const getExpectedStreamSpecification = (createTableInput) => {
97
+ return createTableInput.StreamSpecification;
98
+ };
99
+ const getExpectedProvisionedThroughput = (createTableInput) => {
100
+ return createTableInput.ProvisionedThroughput || { ReadCapacityUnits: 0, WriteCapacityUnits: 0 };
101
+ };
102
+ const getExpectedSSEDescription = (createTableInput) => {
103
+ return createTableInput.SSESpecification && createTableInput.SSESpecification.Enabled
104
+ ? {
105
+ SSEType: createTableInput.SSESpecification.SSEType || 'KMS',
106
+ Status: 'ENABLED',
107
+ }
108
+ : undefined;
109
+ };
110
+ const getExpectedDeletionProtectionEnabled = (createTableInput) => {
111
+ return createTableInput.DeletionProtectionEnabled || false;
112
+ };
113
+ const getImportedTableComparisonProperties = (importedTable) => {
114
+ return {
115
+ AttributeDefinitions: getAttributeDefinitionsForComparison(importedTable),
116
+ KeySchema: getKeySchemaForComparison(importedTable),
117
+ GlobalSecondaryIndexes: getGlobalSecondaryIndexesForComparison(importedTable),
118
+ BillingModeSummary: getBillingModeSummaryForComparison(importedTable),
119
+ ProvisionedThroughput: getProvisionedThroughputForComparison(importedTable),
120
+ StreamSpecification: getStreamSpecificationForComparison(importedTable),
121
+ SSEDescription: getSSEDescriptionForComparison(importedTable),
122
+ DeletionProtectionEnabled: getDeletionProtectionEnabledForComparison(importedTable),
123
+ };
124
+ };
125
+ exports.getImportedTableComparisonProperties = getImportedTableComparisonProperties;
126
+ const getAttributeDefinitionsForComparison = (importedTable) => {
127
+ var _a;
128
+ return (_a = importedTable.AttributeDefinitions) === null || _a === void 0 ? void 0 : _a.map((attributeDefinition) => ({
129
+ AttributeName: attributeDefinition.AttributeName,
130
+ AttributeType: attributeDefinition.AttributeType,
131
+ }));
132
+ };
133
+ const getKeySchemaForComparison = (importedTable) => {
134
+ var _a;
135
+ return (_a = importedTable.KeySchema) === null || _a === void 0 ? void 0 : _a.map((key) => ({
136
+ AttributeName: key.AttributeName,
137
+ KeyType: key.KeyType,
138
+ }));
139
+ };
140
+ const getGlobalSecondaryIndexesForComparison = (importedTable) => {
141
+ var _a;
142
+ return (_a = importedTable.GlobalSecondaryIndexes) === null || _a === void 0 ? void 0 : _a.map((gsi) => {
143
+ var _a;
144
+ return ({
145
+ IndexName: gsi.IndexName,
146
+ KeySchema: (_a = gsi.KeySchema) === null || _a === void 0 ? void 0 : _a.map((key) => ({
147
+ AttributeName: key.AttributeName,
148
+ KeyType: key.KeyType,
149
+ })),
150
+ OnDemandThroughput: gsi.OnDemandThroughput
151
+ ? {
152
+ MaxReadRequestUnits: gsi.OnDemandThroughput.MaxReadRequestUnits,
153
+ MaxWriteRequestUnits: gsi.OnDemandThroughput.MaxWriteRequestUnits,
154
+ }
155
+ : undefined,
156
+ Projection: gsi.Projection
157
+ ? {
158
+ NonKeyAttributes: gsi.Projection.NonKeyAttributes,
159
+ ProjectionType: gsi.Projection.ProjectionType,
160
+ }
161
+ : undefined,
162
+ ProvisionedThroughput: gsi.ProvisionedThroughput
163
+ ? {
164
+ ReadCapacityUnits: gsi.ProvisionedThroughput.ReadCapacityUnits,
165
+ WriteCapacityUnits: gsi.ProvisionedThroughput.WriteCapacityUnits,
166
+ }
167
+ : undefined,
168
+ });
169
+ });
170
+ };
171
+ const getBillingModeSummaryForComparison = (importedTable) => {
172
+ return importedTable.BillingModeSummary
173
+ ? {
174
+ BillingMode: importedTable.BillingModeSummary.BillingMode,
175
+ }
176
+ : undefined;
177
+ };
178
+ const getProvisionedThroughputForComparison = (importedTable) => {
179
+ return importedTable.ProvisionedThroughput
180
+ ? {
181
+ ReadCapacityUnits: importedTable.ProvisionedThroughput.ReadCapacityUnits,
182
+ WriteCapacityUnits: importedTable.ProvisionedThroughput.WriteCapacityUnits,
183
+ }
184
+ : undefined;
185
+ };
186
+ const getStreamSpecificationForComparison = (importedTable) => {
187
+ var _a, _b;
188
+ return importedTable.StreamSpecification
189
+ ? {
190
+ StreamEnabled: (_a = importedTable.StreamSpecification) === null || _a === void 0 ? void 0 : _a.StreamEnabled,
191
+ StreamViewType: (_b = importedTable.StreamSpecification) === null || _b === void 0 ? void 0 : _b.StreamViewType,
192
+ }
193
+ : undefined;
194
+ };
195
+ const getSSEDescriptionForComparison = (importedTable) => {
196
+ return importedTable.SSEDescription
197
+ ? {
198
+ SSEType: importedTable.SSEDescription.SSEType,
199
+ }
200
+ : undefined;
201
+ };
202
+ const getDeletionProtectionEnabledForComparison = (importedTable) => {
203
+ return importedTable.DeletionProtectionEnabled;
204
+ };
205
+ //# sourceMappingURL=import-table.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"import-table.js","sourceRoot":"","sources":["../../../../src/resources/amplify-dynamodb-table/amplify-table-manager-lambda/import-table.ts"],"names":[],"mappings":";;;;;;AAAA,oEAAqC;AACrC,8DAA+F;AAOxF,MAAM,WAAW,GAAG,KAAK,EAAE,gBAAyC,EAAsD,EAAE;IACjI,MAAM,SAAS,GAAG,IAAI,0BAAQ,EAAE,CAAC;IACjC,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,mCAAmC,gBAAgB,CAAC,SAAS,EAAE,CAAC,CAAC;IAC7E,MAAM,mBAAmB,GAAG,MAAM,SAAS,CAAC,aAAa,CAAC,EAAE,SAAS,EAAE,gBAAgB,CAAC,SAAS,EAAE,CAAC,CAAC;IACrG,IAAI,CAAC,mBAAmB,CAAC,KAAK,EAAE;QAC9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D,aAA+B,EACyB,EAAE;IAC1D,OAAO,aAAa,CAAC,yBAAyB,CAAC;AACjD,CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "amplify-table-manager-lambda",
3
+ "version": "1.0.0",
4
+ "lockfileVersion": 3,
5
+ "requires": true,
6
+ "packages": {
7
+ "node_modules/lodash.isequal": {
8
+ "version": "4.5.0",
9
+ "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz",
10
+ "integrity": "sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ=="
11
+ }
12
+ }
13
+ }
@@ -0,0 +1,47 @@
1
+ Copyright JS Foundation and other contributors <https://js.foundation/>
2
+
3
+ Based on Underscore.js, copyright Jeremy Ashkenas,
4
+ DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
5
+
6
+ This software consists of voluntary contributions made by many
7
+ individuals. For exact contribution history, see the revision history
8
+ available at https://github.com/lodash/lodash
9
+
10
+ The following license applies to all parts of this software except as
11
+ documented below:
12
+
13
+ ====
14
+
15
+ Permission is hereby granted, free of charge, to any person obtaining
16
+ a copy of this software and associated documentation files (the
17
+ "Software"), to deal in the Software without restriction, including
18
+ without limitation the rights to use, copy, modify, merge, publish,
19
+ distribute, sublicense, and/or sell copies of the Software, and to
20
+ permit persons to whom the Software is furnished to do so, subject to
21
+ the following conditions:
22
+
23
+ The above copyright notice and this permission notice shall be
24
+ included in all copies or substantial portions of the Software.
25
+
26
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
27
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
28
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
29
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
30
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
31
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
32
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33
+
34
+ ====
35
+
36
+ Copyright and related rights for sample code are waived via CC0. Sample
37
+ code is defined as all source code displayed within the prose of the
38
+ documentation.
39
+
40
+ CC0: http://creativecommons.org/publicdomain/zero/1.0/
41
+
42
+ ====
43
+
44
+ Files located in the node_modules and vendor directories are externally
45
+ maintained libraries used by this software which have their own
46
+ licenses; we recommend you read them, as their terms may differ from the
47
+ terms above.
@@ -0,0 +1,18 @@
1
+ # lodash.isequal v4.5.0
2
+
3
+ The [Lodash](https://lodash.com/) method `_.isEqual` exported as a [Node.js](https://nodejs.org/) module.
4
+
5
+ ## Installation
6
+
7
+ Using npm:
8
+ ```bash
9
+ $ {sudo -H} npm i -g npm
10
+ $ npm i --save lodash.isequal
11
+ ```
12
+
13
+ In Node.js:
14
+ ```js
15
+ var isEqual = require('lodash.isequal');
16
+ ```
17
+
18
+ See the [documentation](https://lodash.com/docs#isEqual) or [package source](https://github.com/lodash/lodash/blob/4.5.0-npm-packages/lodash.isequal) for more details.