@aws-amplify/graphql-api-construct 1.11.4 → 1.12.0-gen2-migration-0809.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (140) hide show
  1. package/.jsii +148 -75
  2. package/API.md +11 -1
  3. package/CHANGELOG.md +7 -0
  4. package/lib/amplify-dynamodb-table-wrapper.js +1 -1
  5. package/lib/amplify-graphql-api.js +6 -2
  6. package/lib/amplify-graphql-definition.js +1 -1
  7. package/lib/model-datasource-strategy-types.d.ts +19 -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/graphql-auth-transformer/CHANGELOG.md +4 -0
  13. package/node_modules/@aws-amplify/graphql-auth-transformer/LICENSE +201 -0
  14. package/node_modules/@aws-amplify/graphql-auth-transformer/package.json +14 -13
  15. package/node_modules/@aws-amplify/graphql-default-value-transformer/CHANGELOG.md +4 -0
  16. package/node_modules/@aws-amplify/graphql-default-value-transformer/LICENSE +201 -0
  17. package/node_modules/@aws-amplify/graphql-default-value-transformer/package.json +9 -8
  18. package/node_modules/@aws-amplify/graphql-directives/CHANGELOG.md +6 -0
  19. package/node_modules/@aws-amplify/graphql-directives/LICENSE +201 -0
  20. package/node_modules/@aws-amplify/graphql-directives/lib/directives/belongs-to.d.ts.map +1 -1
  21. package/node_modules/@aws-amplify/graphql-directives/lib/directives/belongs-to.js +1 -1
  22. package/node_modules/@aws-amplify/graphql-directives/lib/directives/belongs-to.js.map +1 -1
  23. package/node_modules/@aws-amplify/graphql-directives/package.json +3 -2
  24. package/node_modules/@aws-amplify/graphql-function-transformer/CHANGELOG.md +4 -0
  25. package/node_modules/@aws-amplify/graphql-function-transformer/LICENSE +201 -0
  26. package/node_modules/@aws-amplify/graphql-function-transformer/package.json +8 -7
  27. package/node_modules/@aws-amplify/graphql-http-transformer/CHANGELOG.md +4 -0
  28. package/node_modules/@aws-amplify/graphql-http-transformer/LICENSE +201 -0
  29. package/node_modules/@aws-amplify/graphql-http-transformer/package.json +8 -7
  30. package/node_modules/@aws-amplify/graphql-index-transformer/CHANGELOG.md +4 -0
  31. package/node_modules/@aws-amplify/graphql-index-transformer/LICENSE +201 -0
  32. package/node_modules/@aws-amplify/graphql-index-transformer/package.json +9 -8
  33. package/node_modules/@aws-amplify/graphql-maps-to-transformer/CHANGELOG.md +4 -0
  34. package/node_modules/@aws-amplify/graphql-maps-to-transformer/LICENSE +201 -0
  35. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/assets/mapping-lambda.zip +0 -0
  36. package/node_modules/@aws-amplify/graphql-maps-to-transformer/package.json +12 -11
  37. package/node_modules/@aws-amplify/graphql-model-transformer/CHANGELOG.md +12 -0
  38. package/node_modules/@aws-amplify/graphql-model-transformer/LICENSE +201 -0
  39. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.d.ts.map +1 -1
  40. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.js +47 -2
  41. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.js.map +1 -1
  42. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-lambda.zip +0 -0
  43. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-notification-lambda.zip +0 -0
  44. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-patching-lambda.zip +0 -0
  45. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamo-model-resource-generator.d.ts.map +1 -1
  46. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamo-model-resource-generator.js +12 -3
  47. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamo-model-resource-generator.js.map +1 -1
  48. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamodb-table-construct/index.d.ts +2 -0
  49. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamodb-table-construct/index.d.ts.map +1 -1
  50. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamodb-table-construct/index.js +4 -2
  51. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamodb-table-construct/index.js.map +1 -1
  52. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/amplify-table-manager-handler.d.ts +3 -0
  53. 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
  54. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/amplify-table-manager-handler.js +111 -1
  55. 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
  56. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/node_modules/.package-lock.json +13 -0
  57. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/node_modules/lodash.isequal/LICENSE +47 -0
  58. 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
  59. 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
  60. 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
  61. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/package-lock.json +21 -0
  62. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/package.json +11 -0
  63. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/dynamo-model-resource-generator.d.ts.map +1 -1
  64. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/dynamo-model-resource-generator.js +3 -1
  65. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/dynamo-model-resource-generator.js.map +1 -1
  66. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/model-resource-generator.d.ts +1 -0
  67. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/model-resource-generator.d.ts.map +1 -1
  68. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/model-resource-generator.js +3 -0
  69. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/model-resource-generator.js.map +1 -1
  70. package/node_modules/@aws-amplify/graphql-model-transformer/package.json +14 -11
  71. package/node_modules/@aws-amplify/graphql-predictions-transformer/CHANGELOG.md +4 -0
  72. package/node_modules/@aws-amplify/graphql-predictions-transformer/LICENSE +201 -0
  73. package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/predictionsLambdaFunction.zip +0 -0
  74. package/node_modules/@aws-amplify/graphql-predictions-transformer/package.json +8 -7
  75. package/node_modules/@aws-amplify/graphql-relational-transformer/CHANGELOG.md +6 -0
  76. package/node_modules/@aws-amplify/graphql-relational-transformer/LICENSE +201 -0
  77. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.js +3 -0
  78. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.js.map +1 -1
  79. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-references-transformer.d.ts.map +1 -1
  80. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-references-transformer.js +7 -1
  81. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-references-transformer.js.map +1 -1
  82. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-references-transformer.d.ts.map +1 -1
  83. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-references-transformer.js +7 -1
  84. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-references-transformer.js.map +1 -1
  85. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/types.d.ts +1 -0
  86. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/types.d.ts.map +1 -1
  87. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.d.ts +1 -0
  88. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.d.ts.map +1 -1
  89. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.js +9 -1
  90. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.js.map +1 -1
  91. package/node_modules/@aws-amplify/graphql-relational-transformer/package.json +10 -9
  92. package/node_modules/@aws-amplify/graphql-searchable-transformer/CHANGELOG.md +4 -0
  93. package/node_modules/@aws-amplify/graphql-searchable-transformer/LICENSE +201 -0
  94. package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/streaming-lambda.zip +0 -0
  95. package/node_modules/@aws-amplify/graphql-searchable-transformer/package.json +9 -8
  96. package/node_modules/@aws-amplify/graphql-sql-transformer/CHANGELOG.md +4 -0
  97. package/node_modules/@aws-amplify/graphql-sql-transformer/LICENSE +201 -0
  98. package/node_modules/@aws-amplify/graphql-sql-transformer/package.json +9 -8
  99. package/node_modules/@aws-amplify/graphql-transformer/CHANGELOG.md +6 -0
  100. package/node_modules/@aws-amplify/graphql-transformer/LICENSE +201 -0
  101. package/node_modules/@aws-amplify/graphql-transformer/package.json +16 -15
  102. package/node_modules/@aws-amplify/graphql-transformer-core/API.md +4 -0
  103. package/node_modules/@aws-amplify/graphql-transformer-core/CHANGELOG.md +7 -0
  104. package/node_modules/@aws-amplify/graphql-transformer-core/LICENSE +201 -0
  105. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts +1 -1
  106. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts.map +1 -1
  107. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js +3 -2
  108. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js.map +1 -1
  109. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/transform-parameters.d.ts.map +1 -1
  110. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/transform-parameters.js +1 -0
  111. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/transform-parameters.js.map +1 -1
  112. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.d.ts +2 -1
  113. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.d.ts.map +1 -1
  114. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.js +9 -1
  115. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.js.map +1 -1
  116. package/node_modules/@aws-amplify/graphql-transformer-core/package.json +6 -5
  117. package/node_modules/@aws-amplify/graphql-transformer-interfaces/API.md +12 -1
  118. package/node_modules/@aws-amplify/graphql-transformer-interfaces/CHANGELOG.md +7 -0
  119. package/node_modules/@aws-amplify/graphql-transformer-interfaces/LICENSE +201 -0
  120. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.d.ts +6 -1
  121. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.d.ts.map +1 -1
  122. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.js.map +1 -1
  123. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/transform-parameters.d.ts +1 -0
  124. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/transform-parameters.d.ts.map +1 -1
  125. package/node_modules/@aws-amplify/graphql-transformer-interfaces/package.json +3 -2
  126. package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/model-datasource/types.ts +10 -0
  127. package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/transformer-context/transform-parameters.ts +3 -0
  128. package/node_modules/@aws-amplify/graphql-transformer-interfaces/tsconfig.tsbuildinfo +1 -1
  129. package/node_modules/graphql-transformer-common/API.md +1 -0
  130. package/node_modules/graphql-transformer-common/CHANGELOG.md +6 -0
  131. package/node_modules/graphql-transformer-common/LICENSE +201 -0
  132. package/node_modules/graphql-transformer-common/lib/ResourceConstants.d.ts +1 -0
  133. package/node_modules/graphql-transformer-common/lib/ResourceConstants.d.ts.map +1 -1
  134. package/node_modules/graphql-transformer-common/lib/ResourceConstants.js +1 -0
  135. package/node_modules/graphql-transformer-common/lib/ResourceConstants.js.map +1 -1
  136. package/node_modules/graphql-transformer-common/package.json +3 -2
  137. package/package.json +19 -19
  138. package/src/amplify-graphql-api.ts +4 -0
  139. package/src/model-datasource-strategy-types.ts +21 -0
  140. package/src/types.ts +1 -1
package/.jsii CHANGED
@@ -8,21 +8,21 @@
8
8
  "bundled": {
9
9
  "@aws-amplify/backend-output-schemas": "^0.4.0",
10
10
  "@aws-amplify/backend-output-storage": "^0.2.2",
11
- "@aws-amplify/graphql-auth-transformer": "3.6.4",
12
- "@aws-amplify/graphql-default-value-transformer": "2.3.12",
13
- "@aws-amplify/graphql-directives": "1.1.0",
14
- "@aws-amplify/graphql-function-transformer": "2.1.26",
15
- "@aws-amplify/graphql-http-transformer": "2.1.26",
16
- "@aws-amplify/graphql-index-transformer": "2.4.8",
17
- "@aws-amplify/graphql-maps-to-transformer": "3.4.22",
18
- "@aws-amplify/graphql-model-transformer": "2.11.3",
19
- "@aws-amplify/graphql-predictions-transformer": "2.1.26",
20
- "@aws-amplify/graphql-relational-transformer": "2.5.10",
21
- "@aws-amplify/graphql-searchable-transformer": "2.7.8",
22
- "@aws-amplify/graphql-sql-transformer": "0.3.8",
23
- "@aws-amplify/graphql-transformer": "1.6.4",
24
- "@aws-amplify/graphql-transformer-core": "2.9.3",
25
- "@aws-amplify/graphql-transformer-interfaces": "3.10.1",
11
+ "@aws-amplify/graphql-auth-transformer": "3.6.5-gen2-migration-0809.0",
12
+ "@aws-amplify/graphql-default-value-transformer": "2.3.13-gen2-migration-0809.0",
13
+ "@aws-amplify/graphql-directives": "1.2.0-gen2-migration-0809.0",
14
+ "@aws-amplify/graphql-function-transformer": "2.1.27-gen2-migration-0809.0",
15
+ "@aws-amplify/graphql-http-transformer": "2.1.27-gen2-migration-0809.0",
16
+ "@aws-amplify/graphql-index-transformer": "2.4.9-gen2-migration-0809.0",
17
+ "@aws-amplify/graphql-maps-to-transformer": "3.4.23-gen2-migration-0809.0",
18
+ "@aws-amplify/graphql-model-transformer": "2.12.0-gen2-migration-0809.0",
19
+ "@aws-amplify/graphql-predictions-transformer": "2.1.27-gen2-migration-0809.0",
20
+ "@aws-amplify/graphql-relational-transformer": "2.6.0-gen2-migration-0809.0",
21
+ "@aws-amplify/graphql-searchable-transformer": "2.7.9-gen2-migration-0809.0",
22
+ "@aws-amplify/graphql-sql-transformer": "0.3.9-gen2-migration-0809.0",
23
+ "@aws-amplify/graphql-transformer": "1.7.0-gen2-migration-0809.0",
24
+ "@aws-amplify/graphql-transformer-core": "2.10.0-gen2-migration-0809.0",
25
+ "@aws-amplify/graphql-transformer-interfaces": "3.11.0-gen2-migration-0809.0",
26
26
  "@aws-amplify/platform-core": "^0.2.0",
27
27
  "@aws-amplify/plugin-types": "^0.4.1",
28
28
  "charenc": "^0.0.2",
@@ -31,7 +31,7 @@
31
31
  "graceful-fs": "^4.2.11",
32
32
  "graphql": "^15.5.0",
33
33
  "graphql-mapping-template": "4.20.16",
34
- "graphql-transformer-common": "4.31.1",
34
+ "graphql-transformer-common": "4.32.0-gen2-migration-0809.0",
35
35
  "hjson": "^3.2.2",
36
36
  "immer": "^9.0.12",
37
37
  "is-buffer": "^2.0.5",
@@ -3874,7 +3874,7 @@
3874
3874
  "kind": "interface",
3875
3875
  "locationInModule": {
3876
3876
  "filename": "src/model-datasource-strategy-types.ts",
3877
- "line": 38
3877
+ "line": 39
3878
3878
  },
3879
3879
  "name": "AmplifyDynamoDbModelDataSourceStrategy",
3880
3880
  "properties": [
@@ -3886,7 +3886,7 @@
3886
3886
  "immutable": true,
3887
3887
  "locationInModule": {
3888
3888
  "filename": "src/model-datasource-strategy-types.ts",
3889
- "line": 39
3889
+ "line": 40
3890
3890
  },
3891
3891
  "name": "dbType",
3892
3892
  "type": {
@@ -3901,7 +3901,7 @@
3901
3901
  "immutable": true,
3902
3902
  "locationInModule": {
3903
3903
  "filename": "src/model-datasource-strategy-types.ts",
3904
- "line": 40
3904
+ "line": 41
3905
3905
  },
3906
3906
  "name": "provisionStrategy",
3907
3907
  "type": {
@@ -4195,7 +4195,7 @@
4195
4195
  },
4196
4196
  "locationInModule": {
4197
4197
  "filename": "src/amplify-graphql-api.ts",
4198
- "line": 290
4198
+ "line": 294
4199
4199
  },
4200
4200
  "name": "addDynamoDbDataSource",
4201
4201
  "parameters": [
@@ -4244,7 +4244,7 @@
4244
4244
  },
4245
4245
  "locationInModule": {
4246
4246
  "filename": "src/amplify-graphql-api.ts",
4247
- "line": 302
4247
+ "line": 306
4248
4248
  },
4249
4249
  "name": "addElasticsearchDataSource",
4250
4250
  "parameters": [
@@ -4291,7 +4291,7 @@
4291
4291
  },
4292
4292
  "locationInModule": {
4293
4293
  "filename": "src/amplify-graphql-api.ts",
4294
- "line": 312
4294
+ "line": 316
4295
4295
  },
4296
4296
  "name": "addEventBridgeDataSource",
4297
4297
  "parameters": [
@@ -4338,7 +4338,7 @@
4338
4338
  },
4339
4339
  "locationInModule": {
4340
4340
  "filename": "src/amplify-graphql-api.ts",
4341
- "line": 394
4341
+ "line": 398
4342
4342
  },
4343
4343
  "name": "addFunction",
4344
4344
  "parameters": [
@@ -4373,7 +4373,7 @@
4373
4373
  },
4374
4374
  "locationInModule": {
4375
4375
  "filename": "src/amplify-graphql-api.ts",
4376
- "line": 323
4376
+ "line": 327
4377
4377
  },
4378
4378
  "name": "addHttpDataSource",
4379
4379
  "parameters": [
@@ -4421,7 +4421,7 @@
4421
4421
  },
4422
4422
  "locationInModule": {
4423
4423
  "filename": "src/amplify-graphql-api.ts",
4424
- "line": 334
4424
+ "line": 338
4425
4425
  },
4426
4426
  "name": "addLambdaDataSource",
4427
4427
  "parameters": [
@@ -4469,7 +4469,7 @@
4469
4469
  },
4470
4470
  "locationInModule": {
4471
4471
  "filename": "src/amplify-graphql-api.ts",
4472
- "line": 345
4472
+ "line": 349
4473
4473
  },
4474
4474
  "name": "addNoneDataSource",
4475
4475
  "parameters": [
@@ -4508,7 +4508,7 @@
4508
4508
  },
4509
4509
  "locationInModule": {
4510
4510
  "filename": "src/amplify-graphql-api.ts",
4511
- "line": 356
4511
+ "line": 360
4512
4512
  },
4513
4513
  "name": "addOpenSearchDataSource",
4514
4514
  "parameters": [
@@ -4556,7 +4556,7 @@
4556
4556
  },
4557
4557
  "locationInModule": {
4558
4558
  "filename": "src/amplify-graphql-api.ts",
4559
- "line": 369
4559
+ "line": 373
4560
4560
  },
4561
4561
  "name": "addRdsDataSource",
4562
4562
  "parameters": [
@@ -4623,7 +4623,7 @@
4623
4623
  },
4624
4624
  "locationInModule": {
4625
4625
  "filename": "src/amplify-graphql-api.ts",
4626
- "line": 385
4626
+ "line": 389
4627
4627
  },
4628
4628
  "name": "addResolver",
4629
4629
  "parameters": [
@@ -5174,7 +5174,7 @@
5174
5174
  {
5175
5175
  "abstract": true,
5176
5176
  "docs": {
5177
- "remarks": "If no outputStorageStrategey is provided a default strategy will be used.",
5177
+ "remarks": "If no outputStorageStrategy is provided a default strategy will be used.",
5178
5178
  "stability": "stable",
5179
5179
  "summary": "Strategy to store construct outputs."
5180
5180
  },
@@ -5543,6 +5543,9 @@
5543
5543
  {
5544
5544
  "fqn": "@aws-amplify/graphql-api-construct.AmplifyDynamoDbModelDataSourceStrategy"
5545
5545
  },
5546
+ {
5547
+ "fqn": "@aws-amplify/graphql-api-construct.ImportedAmplifyDynamoDbModelDataSourceStrategy"
5548
+ },
5546
5549
  {
5547
5550
  "fqn": "@aws-amplify/graphql-api-construct.SQLLambdaModelDataSourceStrategy"
5548
5551
  }
@@ -5595,6 +5598,9 @@
5595
5598
  {
5596
5599
  "fqn": "@aws-amplify/graphql-api-construct.AmplifyDynamoDbModelDataSourceStrategy"
5597
5600
  },
5601
+ {
5602
+ "fqn": "@aws-amplify/graphql-api-construct.ImportedAmplifyDynamoDbModelDataSourceStrategy"
5603
+ },
5598
5604
  {
5599
5605
  "fqn": "@aws-amplify/graphql-api-construct.SQLLambdaModelDataSourceStrategy"
5600
5606
  }
@@ -5990,7 +5996,7 @@
5990
5996
  "kind": "interface",
5991
5997
  "locationInModule": {
5992
5998
  "filename": "src/model-datasource-strategy-types.ts",
5993
- "line": 235
5999
+ "line": 256
5994
6000
  },
5995
6001
  "name": "CustomSqlDataSourceStrategy",
5996
6002
  "properties": [
@@ -6003,7 +6009,7 @@
6003
6009
  "immutable": true,
6004
6010
  "locationInModule": {
6005
6011
  "filename": "src/model-datasource-strategy-types.ts",
6006
- "line": 240
6012
+ "line": 261
6007
6013
  },
6008
6014
  "name": "fieldName",
6009
6015
  "type": {
@@ -6019,7 +6025,7 @@
6019
6025
  "immutable": true,
6020
6026
  "locationInModule": {
6021
6027
  "filename": "src/model-datasource-strategy-types.ts",
6022
- "line": 243
6028
+ "line": 264
6023
6029
  },
6024
6030
  "name": "strategy",
6025
6031
  "type": {
@@ -6035,7 +6041,7 @@
6035
6041
  "immutable": true,
6036
6042
  "locationInModule": {
6037
6043
  "filename": "src/model-datasource-strategy-types.ts",
6038
- "line": 237
6044
+ "line": 258
6039
6045
  },
6040
6046
  "name": "typeName",
6041
6047
  "type": {
@@ -6138,7 +6144,7 @@
6138
6144
  "kind": "interface",
6139
6145
  "locationInModule": {
6140
6146
  "filename": "src/model-datasource-strategy-types.ts",
6141
- "line": 30
6147
+ "line": 31
6142
6148
  },
6143
6149
  "name": "DefaultDynamoDbModelDataSourceStrategy",
6144
6150
  "properties": [
@@ -6150,7 +6156,7 @@
6150
6156
  "immutable": true,
6151
6157
  "locationInModule": {
6152
6158
  "filename": "src/model-datasource-strategy-types.ts",
6153
- "line": 31
6159
+ "line": 32
6154
6160
  },
6155
6161
  "name": "dbType",
6156
6162
  "type": {
@@ -6165,7 +6171,7 @@
6165
6171
  "immutable": true,
6166
6172
  "locationInModule": {
6167
6173
  "filename": "src/model-datasource-strategy-types.ts",
6168
- "line": 32
6174
+ "line": 33
6169
6175
  },
6170
6176
  "name": "provisionStrategy",
6171
6177
  "type": {
@@ -6463,6 +6469,9 @@
6463
6469
  {
6464
6470
  "fqn": "@aws-amplify/graphql-api-construct.AmplifyDynamoDbModelDataSourceStrategy"
6465
6471
  },
6472
+ {
6473
+ "fqn": "@aws-amplify/graphql-api-construct.ImportedAmplifyDynamoDbModelDataSourceStrategy"
6474
+ },
6466
6475
  {
6467
6476
  "fqn": "@aws-amplify/graphql-api-construct.SQLLambdaModelDataSourceStrategy"
6468
6477
  }
@@ -6744,6 +6753,70 @@
6744
6753
  ],
6745
6754
  "symbolId": "src/types:IdentityPoolAuthorizationConfig"
6746
6755
  },
6756
+ "@aws-amplify/graphql-api-construct.ImportedAmplifyDynamoDbModelDataSourceStrategy": {
6757
+ "assembly": "@aws-amplify/graphql-api-construct",
6758
+ "datatype": true,
6759
+ "docs": {
6760
+ "remarks": "Tables can be imported only if they meet the following criteria.\n1. The imported table must have been created with through an Amplify Gen 1 project.\n2. The imported table must be in the same account and region as this construct.\n3. The imported table properties must match the corresponding table properties specified in this construct.\n (AttributeDefinitions, KeySchema, GlobalSecondaryIndexes, BillingModeSummary, ProvisionedThroughput, StreamSpecification, SSEDescription, DeletionProtectionEnabled)\n\nThe imported tables will follow the auth rules defined in this construct.\nThe auth rules of the source Gen 1 project will not apply to the API created by this construct.\nEnsure the correct auth rules have been set to prevent data exposure.",
6761
+ "stability": "stable",
6762
+ "summary": "Use custom resource type 'Custom::ImportedAmplifyDynamoDBTable' to manage an imported table."
6763
+ },
6764
+ "fqn": "@aws-amplify/graphql-api-construct.ImportedAmplifyDynamoDbModelDataSourceStrategy",
6765
+ "kind": "interface",
6766
+ "locationInModule": {
6767
+ "filename": "src/model-datasource-strategy-types.ts",
6768
+ "line": 58
6769
+ },
6770
+ "name": "ImportedAmplifyDynamoDbModelDataSourceStrategy",
6771
+ "properties": [
6772
+ {
6773
+ "abstract": true,
6774
+ "docs": {
6775
+ "stability": "stable"
6776
+ },
6777
+ "immutable": true,
6778
+ "locationInModule": {
6779
+ "filename": "src/model-datasource-strategy-types.ts",
6780
+ "line": 59
6781
+ },
6782
+ "name": "dbType",
6783
+ "type": {
6784
+ "primitive": "string"
6785
+ }
6786
+ },
6787
+ {
6788
+ "abstract": true,
6789
+ "docs": {
6790
+ "stability": "stable"
6791
+ },
6792
+ "immutable": true,
6793
+ "locationInModule": {
6794
+ "filename": "src/model-datasource-strategy-types.ts",
6795
+ "line": 60
6796
+ },
6797
+ "name": "provisionStrategy",
6798
+ "type": {
6799
+ "primitive": "string"
6800
+ }
6801
+ },
6802
+ {
6803
+ "abstract": true,
6804
+ "docs": {
6805
+ "stability": "stable"
6806
+ },
6807
+ "immutable": true,
6808
+ "locationInModule": {
6809
+ "filename": "src/model-datasource-strategy-types.ts",
6810
+ "line": 61
6811
+ },
6812
+ "name": "tableName",
6813
+ "type": {
6814
+ "primitive": "string"
6815
+ }
6816
+ }
6817
+ ],
6818
+ "symbolId": "src/model-datasource-strategy-types:ImportedAmplifyDynamoDbModelDataSourceStrategy"
6819
+ },
6747
6820
  "@aws-amplify/graphql-api-construct.LambdaAuthorizationConfig": {
6748
6821
  "assembly": "@aws-amplify/graphql-api-construct",
6749
6822
  "datatype": true,
@@ -7283,7 +7356,7 @@
7283
7356
  "kind": "interface",
7284
7357
  "locationInModule": {
7285
7358
  "filename": "src/model-datasource-strategy-types.ts",
7286
- "line": 101
7359
+ "line": 122
7287
7360
  },
7288
7361
  "name": "ProvisionedConcurrencyConfig",
7289
7362
  "properties": [
@@ -7297,7 +7370,7 @@
7297
7370
  "immutable": true,
7298
7371
  "locationInModule": {
7299
7372
  "filename": "src/model-datasource-strategy-types.ts",
7300
- "line": 103
7373
+ "line": 124
7301
7374
  },
7302
7375
  "name": "provisionedConcurrentExecutions",
7303
7376
  "type": {
@@ -7422,7 +7495,7 @@
7422
7495
  "kind": "interface",
7423
7496
  "locationInModule": {
7424
7497
  "filename": "src/model-datasource-strategy-types.ts",
7425
- "line": 46
7498
+ "line": 67
7426
7499
  },
7427
7500
  "name": "SQLLambdaModelDataSourceStrategy",
7428
7501
  "properties": [
@@ -7435,7 +7508,7 @@
7435
7508
  "immutable": true,
7436
7509
  "locationInModule": {
7437
7510
  "filename": "src/model-datasource-strategy-types.ts",
7438
- "line": 61
7511
+ "line": 82
7439
7512
  },
7440
7513
  "name": "dbConnectionConfig",
7441
7514
  "type": {
@@ -7463,7 +7536,7 @@
7463
7536
  "immutable": true,
7464
7537
  "locationInModule": {
7465
7538
  "filename": "src/model-datasource-strategy-types.ts",
7466
- "line": 56
7539
+ "line": 77
7467
7540
  },
7468
7541
  "name": "dbType",
7469
7542
  "type": {
@@ -7480,7 +7553,7 @@
7480
7553
  "immutable": true,
7481
7554
  "locationInModule": {
7482
7555
  "filename": "src/model-datasource-strategy-types.ts",
7483
- "line": 51
7556
+ "line": 72
7484
7557
  },
7485
7558
  "name": "name",
7486
7559
  "type": {
@@ -7497,7 +7570,7 @@
7497
7570
  "immutable": true,
7498
7571
  "locationInModule": {
7499
7572
  "filename": "src/model-datasource-strategy-types.ts",
7500
- "line": 72
7573
+ "line": 93
7501
7574
  },
7502
7575
  "name": "customSqlStatements",
7503
7576
  "optional": true,
@@ -7519,7 +7592,7 @@
7519
7592
  "immutable": true,
7520
7593
  "locationInModule": {
7521
7594
  "filename": "src/model-datasource-strategy-types.ts",
7522
- "line": 77
7595
+ "line": 98
7523
7596
  },
7524
7597
  "name": "sqlLambdaProvisionedConcurrencyConfig",
7525
7598
  "optional": true,
@@ -7536,7 +7609,7 @@
7536
7609
  "immutable": true,
7537
7610
  "locationInModule": {
7538
7611
  "filename": "src/model-datasource-strategy-types.ts",
7539
- "line": 66
7612
+ "line": 87
7540
7613
  },
7541
7614
  "name": "vpcConfiguration",
7542
7615
  "optional": true,
@@ -7719,7 +7792,7 @@
7719
7792
  "kind": "interface",
7720
7793
  "locationInModule": {
7721
7794
  "filename": "src/model-datasource-strategy-types.ts",
7722
- "line": 176
7795
+ "line": 197
7723
7796
  },
7724
7797
  "name": "SqlModelDataSourceSecretsManagerDbConnectionConfig",
7725
7798
  "properties": [
@@ -7732,7 +7805,7 @@
7732
7805
  "immutable": true,
7733
7806
  "locationInModule": {
7734
7807
  "filename": "src/model-datasource-strategy-types.ts",
7735
- "line": 190
7808
+ "line": 211
7736
7809
  },
7737
7810
  "name": "databaseName",
7738
7811
  "type": {
@@ -7748,7 +7821,7 @@
7748
7821
  "immutable": true,
7749
7822
  "locationInModule": {
7750
7823
  "filename": "src/model-datasource-strategy-types.ts",
7751
- "line": 193
7824
+ "line": 214
7752
7825
  },
7753
7826
  "name": "hostname",
7754
7827
  "type": {
@@ -7764,7 +7837,7 @@
7764
7837
  "immutable": true,
7765
7838
  "locationInModule": {
7766
7839
  "filename": "src/model-datasource-strategy-types.ts",
7767
- "line": 187
7840
+ "line": 208
7768
7841
  },
7769
7842
  "name": "port",
7770
7843
  "type": {
@@ -7781,7 +7854,7 @@
7781
7854
  "immutable": true,
7782
7855
  "locationInModule": {
7783
7856
  "filename": "src/model-datasource-strategy-types.ts",
7784
- "line": 178
7857
+ "line": 199
7785
7858
  },
7786
7859
  "name": "secretArn",
7787
7860
  "type": {
@@ -7798,7 +7871,7 @@
7798
7871
  "immutable": true,
7799
7872
  "locationInModule": {
7800
7873
  "filename": "src/model-datasource-strategy-types.ts",
7801
- "line": 184
7874
+ "line": 205
7802
7875
  },
7803
7876
  "name": "keyArn",
7804
7877
  "optional": true,
@@ -7815,7 +7888,7 @@
7815
7888
  "immutable": true,
7816
7889
  "locationInModule": {
7817
7890
  "filename": "src/model-datasource-strategy-types.ts",
7818
- "line": 198
7891
+ "line": 219
7819
7892
  },
7820
7893
  "name": "sslCertConfig",
7821
7894
  "optional": true,
@@ -7838,7 +7911,7 @@
7838
7911
  "kind": "interface",
7839
7912
  "locationInModule": {
7840
7913
  "filename": "src/model-datasource-strategy-types.ts",
7841
- "line": 206
7914
+ "line": 227
7842
7915
  },
7843
7916
  "name": "SqlModelDataSourceSsmDbConnectionConfig",
7844
7917
  "properties": [
@@ -7851,7 +7924,7 @@
7851
7924
  "immutable": true,
7852
7925
  "locationInModule": {
7853
7926
  "filename": "src/model-datasource-strategy-types.ts",
7854
- "line": 222
7927
+ "line": 243
7855
7928
  },
7856
7929
  "name": "databaseNameSsmPath",
7857
7930
  "type": {
@@ -7868,7 +7941,7 @@
7868
7941
  "immutable": true,
7869
7942
  "locationInModule": {
7870
7943
  "filename": "src/model-datasource-strategy-types.ts",
7871
- "line": 210
7944
+ "line": 231
7872
7945
  },
7873
7946
  "name": "hostnameSsmPath",
7874
7947
  "type": {
@@ -7884,7 +7957,7 @@
7884
7957
  "immutable": true,
7885
7958
  "locationInModule": {
7886
7959
  "filename": "src/model-datasource-strategy-types.ts",
7887
- "line": 219
7960
+ "line": 240
7888
7961
  },
7889
7962
  "name": "passwordSsmPath",
7890
7963
  "type": {
@@ -7900,7 +7973,7 @@
7900
7973
  "immutable": true,
7901
7974
  "locationInModule": {
7902
7975
  "filename": "src/model-datasource-strategy-types.ts",
7903
- "line": 213
7976
+ "line": 234
7904
7977
  },
7905
7978
  "name": "portSsmPath",
7906
7979
  "type": {
@@ -7916,7 +7989,7 @@
7916
7989
  "immutable": true,
7917
7990
  "locationInModule": {
7918
7991
  "filename": "src/model-datasource-strategy-types.ts",
7919
- "line": 216
7992
+ "line": 237
7920
7993
  },
7921
7994
  "name": "usernameSsmPath",
7922
7995
  "type": {
@@ -7932,7 +8005,7 @@
7932
8005
  "immutable": true,
7933
8006
  "locationInModule": {
7934
8007
  "filename": "src/model-datasource-strategy-types.ts",
7935
- "line": 227
8008
+ "line": 248
7936
8009
  },
7937
8010
  "name": "sslCertConfig",
7938
8011
  "optional": true,
@@ -7954,7 +8027,7 @@
7954
8027
  "kind": "interface",
7955
8028
  "locationInModule": {
7956
8029
  "filename": "src/model-datasource-strategy-types.ts",
7957
- "line": 155
8030
+ "line": 176
7958
8031
  },
7959
8032
  "name": "SqlModelDataSourceSsmDbConnectionStringConfig",
7960
8033
  "properties": [
@@ -7968,7 +8041,7 @@
7968
8041
  "immutable": true,
7969
8042
  "locationInModule": {
7970
8043
  "filename": "src/model-datasource-strategy-types.ts",
7971
- "line": 162
8044
+ "line": 183
7972
8045
  },
7973
8046
  "name": "connectionUriSsmPath",
7974
8047
  "type": {
@@ -7998,7 +8071,7 @@
7998
8071
  "immutable": true,
7999
8072
  "locationInModule": {
8000
8073
  "filename": "src/model-datasource-strategy-types.ts",
8001
- "line": 167
8074
+ "line": 188
8002
8075
  },
8003
8076
  "name": "sslCertConfig",
8004
8077
  "optional": true,
@@ -8021,7 +8094,7 @@
8021
8094
  "kind": "interface",
8022
8095
  "locationInModule": {
8023
8096
  "filename": "src/model-datasource-strategy-types.ts",
8024
- "line": 134
8097
+ "line": 155
8025
8098
  },
8026
8099
  "name": "SslCertConfig",
8027
8100
  "symbolId": "src/model-datasource-strategy-types:SslCertConfig"
@@ -8039,7 +8112,7 @@
8039
8112
  "kind": "interface",
8040
8113
  "locationInModule": {
8041
8114
  "filename": "src/model-datasource-strategy-types.ts",
8042
- "line": 136
8115
+ "line": 157
8043
8116
  },
8044
8117
  "name": "SslCertSsmPathConfig",
8045
8118
  "properties": [
@@ -8053,7 +8126,7 @@
8053
8126
  "immutable": true,
8054
8127
  "locationInModule": {
8055
8128
  "filename": "src/model-datasource-strategy-types.ts",
8056
- "line": 148
8129
+ "line": 169
8057
8130
  },
8058
8131
  "name": "ssmPath",
8059
8132
  "type": {
@@ -8124,7 +8197,7 @@
8124
8197
  "kind": "interface",
8125
8198
  "locationInModule": {
8126
8199
  "filename": "src/model-datasource-strategy-types.ts",
8127
- "line": 111
8200
+ "line": 132
8128
8201
  },
8129
8202
  "name": "SubnetAvailabilityZone",
8130
8203
  "properties": [
@@ -8137,7 +8210,7 @@
8137
8210
  "immutable": true,
8138
8211
  "locationInModule": {
8139
8212
  "filename": "src/model-datasource-strategy-types.ts",
8140
- "line": 116
8213
+ "line": 137
8141
8214
  },
8142
8215
  "name": "availabilityZone",
8143
8216
  "type": {
@@ -8153,7 +8226,7 @@
8153
8226
  "immutable": true,
8154
8227
  "locationInModule": {
8155
8228
  "filename": "src/model-datasource-strategy-types.ts",
8156
- "line": 113
8229
+ "line": 134
8157
8230
  },
8158
8231
  "name": "subnetId",
8159
8232
  "type": {
@@ -8582,7 +8655,7 @@
8582
8655
  "kind": "interface",
8583
8656
  "locationInModule": {
8584
8657
  "filename": "src/model-datasource-strategy-types.ts",
8585
- "line": 87
8658
+ "line": 108
8586
8659
  },
8587
8660
  "name": "VpcConfig",
8588
8661
  "properties": [
@@ -8595,7 +8668,7 @@
8595
8668
  "immutable": true,
8596
8669
  "locationInModule": {
8597
8670
  "filename": "src/model-datasource-strategy-types.ts",
8598
- "line": 92
8671
+ "line": 113
8599
8672
  },
8600
8673
  "name": "securityGroupIds",
8601
8674
  "type": {
@@ -8616,7 +8689,7 @@
8616
8689
  "immutable": true,
8617
8690
  "locationInModule": {
8618
8691
  "filename": "src/model-datasource-strategy-types.ts",
8619
- "line": 95
8692
+ "line": 116
8620
8693
  },
8621
8694
  "name": "subnetAvailabilityZoneConfig",
8622
8695
  "type": {
@@ -8637,7 +8710,7 @@
8637
8710
  "immutable": true,
8638
8711
  "locationInModule": {
8639
8712
  "filename": "src/model-datasource-strategy-types.ts",
8640
- "line": 89
8713
+ "line": 110
8641
8714
  },
8642
8715
  "name": "vpcId",
8643
8716
  "type": {
@@ -8648,6 +8721,6 @@
8648
8721
  "symbolId": "src/model-datasource-strategy-types:VpcConfig"
8649
8722
  }
8650
8723
  },
8651
- "version": "1.11.4",
8652
- "fingerprint": "5fy1yu5eRwqSPiVvwGvbKRysZLZayJCvbgq9X46NM6E="
8724
+ "version": "1.12.0-gen2-migration-0809.0",
8725
+ "fingerprint": "nZlGQgE1fYFZQ0CvXeI/q+ONKUZIDMAuhkdbYdsKMDo="
8653
8726
  }
package/API.md CHANGED
@@ -276,6 +276,16 @@ export interface IdentityPoolAuthorizationConfig {
276
276
  readonly unauthenticatedUserRole: IRole;
277
277
  }
278
278
 
279
+ // @public
280
+ export interface ImportedAmplifyDynamoDbModelDataSourceStrategy {
281
+ // (undocumented)
282
+ readonly dbType: 'DYNAMODB';
283
+ // (undocumented)
284
+ readonly provisionStrategy: 'IMPORTED_AMPLIFY_TABLE';
285
+ // (undocumented)
286
+ readonly tableName: string;
287
+ }
288
+
279
289
  // @public
280
290
  export interface LambdaAuthorizationConfig {
281
291
  readonly function: IFunction;
@@ -283,7 +293,7 @@ export interface LambdaAuthorizationConfig {
283
293
  }
284
294
 
285
295
  // @public
286
- export type ModelDataSourceStrategy = DefaultDynamoDbModelDataSourceStrategy | AmplifyDynamoDbModelDataSourceStrategy | SQLLambdaModelDataSourceStrategy;
296
+ export type ModelDataSourceStrategy = DefaultDynamoDbModelDataSourceStrategy | AmplifyDynamoDbModelDataSourceStrategy | ImportedAmplifyDynamoDbModelDataSourceStrategy | SQLLambdaModelDataSourceStrategy;
287
297
 
288
298
  // @public
289
299
  export type ModelDataSourceStrategyDbType = 'DYNAMODB' | ModelDataSourceStrategySqlDbType;