@aws-amplify/graphql-api-construct 1.6.0-secrets-manager.0 → 1.7.0-cors-rule.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (169) hide show
  1. package/.jsii +280 -219
  2. package/API.md +13 -5
  3. package/CHANGELOG.md +18 -2
  4. package/lib/amplify-dynamodb-table-wrapper.d.ts +6 -1
  5. package/lib/amplify-dynamodb-table-wrapper.js +9 -2
  6. package/lib/amplify-graphql-api.d.ts +2 -2
  7. package/lib/amplify-graphql-api.js +10 -7
  8. package/lib/amplify-graphql-definition.js +1 -1
  9. package/lib/index.d.ts +1 -1
  10. package/lib/index.js +1 -1
  11. package/lib/internal/codegen-assets.js +14 -1
  12. package/lib/internal/construct-exports.js +13 -3
  13. package/lib/sql-model-datasource-strategy.js +1 -1
  14. package/lib/types.d.ts +17 -5
  15. package/lib/types.js +1 -1
  16. package/node_modules/@aws-amplify/graphql-auth-transformer/CHANGELOG.md +17 -1
  17. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.d.ts.map +1 -1
  18. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js +34 -1
  19. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js.map +1 -1
  20. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/validations.d.ts.map +1 -1
  21. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/validations.js +0 -3
  22. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/validations.js.map +1 -1
  23. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/query.d.ts.map +1 -1
  24. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/query.js +3 -2
  25. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/query.js.map +1 -1
  26. package/node_modules/@aws-amplify/graphql-auth-transformer/package.json +20 -14
  27. package/node_modules/@aws-amplify/graphql-default-value-transformer/CHANGELOG.md +15 -1
  28. package/node_modules/@aws-amplify/graphql-default-value-transformer/package.json +15 -9
  29. package/node_modules/@aws-amplify/graphql-function-transformer/CHANGELOG.md +9 -1
  30. package/node_modules/@aws-amplify/graphql-function-transformer/package.json +14 -8
  31. package/node_modules/@aws-amplify/graphql-http-transformer/CHANGELOG.md +9 -1
  32. package/node_modules/@aws-amplify/graphql-http-transformer/package.json +14 -8
  33. package/node_modules/@aws-amplify/graphql-index-transformer/CHANGELOG.md +13 -1
  34. package/node_modules/@aws-amplify/graphql-index-transformer/package.json +15 -9
  35. package/node_modules/@aws-amplify/graphql-maps-to-transformer/CHANGELOG.md +13 -1
  36. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/assets/mapping-lambda.zip +0 -0
  37. package/node_modules/@aws-amplify/graphql-maps-to-transformer/package.json +16 -14
  38. package/node_modules/@aws-amplify/graphql-model-transformer/API.md +1 -1
  39. package/node_modules/@aws-amplify/graphql-model-transformer/CHANGELOG.md +18 -3
  40. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.d.ts.map +1 -1
  41. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.js +12 -9
  42. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.js.map +1 -1
  43. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-types/common.d.ts.map +1 -1
  44. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-types/common.js.map +1 -1
  45. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-types/mutation.d.ts +1 -1
  46. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-types/mutation.d.ts.map +1 -1
  47. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-types/mutation.js +9 -1
  48. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-types/mutation.js.map +1 -1
  49. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-lambda.zip +0 -0
  50. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-notification-lambda.zip +0 -0
  51. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-patching-lambda.zip +0 -0
  52. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamo-model-resource-generator.d.ts.map +1 -1
  53. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamo-model-resource-generator.js +1 -0
  54. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamo-model-resource-generator.js.map +1 -1
  55. package/node_modules/@aws-amplify/graphql-model-transformer/package.json +17 -11
  56. package/node_modules/@aws-amplify/graphql-predictions-transformer/CHANGELOG.md +9 -1
  57. package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/predictionsLambdaFunction.zip +0 -0
  58. package/node_modules/@aws-amplify/graphql-predictions-transformer/package.json +14 -8
  59. package/node_modules/@aws-amplify/graphql-relational-transformer/CHANGELOG.md +15 -1
  60. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-ddb-fields-transformer.d.ts +12 -0
  61. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-ddb-fields-transformer.d.ts.map +1 -0
  62. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-ddb-fields-transformer.js +34 -0
  63. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-ddb-fields-transformer.js.map +1 -0
  64. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-sql-transformer.d.ts +12 -0
  65. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-sql-transformer.d.ts.map +1 -0
  66. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-sql-transformer.js +27 -0
  67. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-sql-transformer.js.map +1 -0
  68. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-transformer-factory.d.ts +5 -0
  69. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-transformer-factory.d.ts.map +1 -0
  70. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-transformer-factory.js +16 -0
  71. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-transformer-factory.js.map +1 -0
  72. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/data-source-based-directive-transformer.d.ts +11 -0
  73. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/data-source-based-directive-transformer.d.ts.map +1 -0
  74. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/data-source-based-directive-transformer.js +3 -0
  75. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/data-source-based-directive-transformer.js.map +1 -0
  76. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.d.ts.map +1 -1
  77. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.js +9 -40
  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/graphql-has-many-transformer.d.ts.map +1 -1
  80. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-many-transformer.js +12 -35
  81. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-many-transformer.js.map +1 -1
  82. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-one-transformer.d.ts.map +1 -1
  83. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-one-transformer.js +8 -27
  84. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-one-transformer.js.map +1 -1
  85. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-fields-transformer.d.ts +12 -0
  86. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-fields-transformer.d.ts.map +1 -0
  87. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-fields-transformer.js +32 -0
  88. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-fields-transformer.js.map +1 -0
  89. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-sql-transformer.d.ts +12 -0
  90. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-sql-transformer.d.ts.map +1 -0
  91. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-sql-transformer.js +27 -0
  92. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-sql-transformer.js.map +1 -0
  93. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-transformer-factory.d.ts +5 -0
  94. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-transformer-factory.d.ts.map +1 -0
  95. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-transformer-factory.js +16 -0
  96. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-transformer-factory.js.map +1 -0
  97. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-fields-transformer.d.ts +12 -0
  98. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-fields-transformer.d.ts.map +1 -0
  99. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-fields-transformer.js +31 -0
  100. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-fields-transformer.js.map +1 -0
  101. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-sql-transformer.d.ts +12 -0
  102. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-sql-transformer.d.ts.map +1 -0
  103. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-sql-transformer.js +27 -0
  104. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-sql-transformer.js.map +1 -0
  105. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-transformer-factory.d.ts +5 -0
  106. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-transformer-factory.d.ts.map +1 -0
  107. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-transformer-factory.js +16 -0
  108. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-transformer-factory.js.map +1 -0
  109. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/schema.d.ts.map +1 -1
  110. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/schema.js +13 -3
  111. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/schema.js.map +1 -1
  112. package/node_modules/@aws-amplify/graphql-relational-transformer/package.json +17 -11
  113. package/node_modules/@aws-amplify/graphql-searchable-transformer/CHANGELOG.md +15 -1
  114. package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/streaming-lambda.zip +0 -0
  115. package/node_modules/@aws-amplify/graphql-searchable-transformer/package.json +15 -9
  116. package/node_modules/@aws-amplify/graphql-sql-transformer/CHANGELOG.md +13 -1
  117. package/node_modules/@aws-amplify/graphql-sql-transformer/package.json +16 -10
  118. package/node_modules/@aws-amplify/graphql-transformer/CHANGELOG.md +14 -2
  119. package/node_modules/@aws-amplify/graphql-transformer/package.json +22 -16
  120. package/node_modules/@aws-amplify/graphql-transformer-core/API.md +15 -0
  121. package/node_modules/@aws-amplify/graphql-transformer-core/CHANGELOG.md +11 -1
  122. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts +1 -1
  123. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts.map +1 -1
  124. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js +7 -2
  125. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js.map +1 -1
  126. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/output.d.ts +2 -0
  127. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/output.d.ts.map +1 -1
  128. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/output.js +14 -0
  129. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/output.js.map +1 -1
  130. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/index.d.ts +1 -1
  131. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/index.d.ts.map +1 -1
  132. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/index.js +5 -1
  133. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/index.js.map +1 -1
  134. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.d.ts +1 -0
  135. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.d.ts.map +1 -1
  136. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.js +8 -1
  137. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.js.map +1 -1
  138. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-util.d.ts +4 -0
  139. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-util.d.ts.map +1 -1
  140. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-util.js +18 -1
  141. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-util.js.map +1 -1
  142. package/node_modules/@aws-amplify/graphql-transformer-core/package.json +14 -8
  143. package/node_modules/@aws-amplify/graphql-transformer-interfaces/API.md +4 -0
  144. package/node_modules/@aws-amplify/graphql-transformer-interfaces/CHANGELOG.md +8 -2
  145. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/transformer-context-output-provider.d.ts +2 -0
  146. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/transformer-context-output-provider.d.ts.map +1 -1
  147. package/node_modules/@aws-amplify/graphql-transformer-interfaces/package.json +8 -2
  148. package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/transformer-context/transformer-context-output-provider.ts +4 -0
  149. package/node_modules/@aws-amplify/graphql-transformer-interfaces/tsconfig.tsbuildinfo +1 -1
  150. package/node_modules/graphql-mapping-template/CHANGELOG.md +4 -0
  151. package/node_modules/graphql-mapping-template/package.json +10 -4
  152. package/node_modules/graphql-transformer-common/API.md +14 -0
  153. package/node_modules/graphql-transformer-common/CHANGELOG.md +10 -0
  154. package/node_modules/graphql-transformer-common/lib/TypescriptSchemaConstants.d.ts +13 -0
  155. package/node_modules/graphql-transformer-common/lib/TypescriptSchemaConstants.d.ts.map +1 -0
  156. package/node_modules/graphql-transformer-common/lib/TypescriptSchemaConstants.js +16 -0
  157. package/node_modules/graphql-transformer-common/lib/TypescriptSchemaConstants.js.map +1 -0
  158. package/node_modules/graphql-transformer-common/lib/index.d.ts +1 -0
  159. package/node_modules/graphql-transformer-common/lib/index.d.ts.map +1 -1
  160. package/node_modules/graphql-transformer-common/lib/index.js +1 -0
  161. package/node_modules/graphql-transformer-common/lib/index.js.map +1 -1
  162. package/node_modules/graphql-transformer-common/package.json +11 -5
  163. package/package.json +27 -21
  164. package/src/amplify-dynamodb-table-wrapper.ts +9 -1
  165. package/src/amplify-graphql-api.ts +15 -7
  166. package/src/index.ts +1 -0
  167. package/src/internal/codegen-assets.ts +15 -2
  168. package/src/internal/construct-exports.ts +14 -4
  169. package/src/types.ts +19 -6
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [4.20.15](https://github.com/aws-amplify/amplify-category-api/compare/graphql-mapping-template@4.20.14...graphql-mapping-template@4.20.15) (2024-02-28)
7
+
8
+ **Note:** Version bump only for package graphql-mapping-template
9
+
6
10
  ## [4.20.14](https://github.com/aws-amplify/amplify-category-api/compare/graphql-mapping-template@4.20.13...graphql-mapping-template@4.20.14) (2023-12-18)
7
11
 
8
12
  **Note:** Version bump only for package graphql-mapping-template
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphql-mapping-template",
3
- "version": "4.20.14",
3
+ "version": "4.20.15",
4
4
  "description": "An AST wrapper around AWS AppSync resolvers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -42,14 +42,20 @@
42
42
  "coverageProvider": "v8",
43
43
  "coverageThreshold": {
44
44
  "global": {
45
- "branches": 63,
46
- "functions": 33,
47
- "lines": 59
45
+ "branches": 60,
46
+ "functions": 32,
47
+ "lines": 50
48
48
  }
49
49
  },
50
50
  "coverageReporters": [
51
51
  "clover",
52
52
  "text"
53
+ ],
54
+ "collectCoverageFrom": [
55
+ "src/**/*.ts"
56
+ ],
57
+ "coveragePathIgnorePatterns": [
58
+ "/__tests__/"
53
59
  ]
54
60
  }
55
61
  }
@@ -500,6 +500,20 @@ export function toUpper(word: string): string;
500
500
  // @public (undocumented)
501
501
  export const transformedArgsRef: ReferenceNode;
502
502
 
503
+ // @public (undocumented)
504
+ export const TYPESCRIPT_DATA_SCHEMA_CONSTANTS: {
505
+ SCHEMA_PACKAGE: string;
506
+ MODEL_METHOD: string;
507
+ SCHEMA_METHOD: string;
508
+ IDENTIFIER_METHOD: string;
509
+ ARRAY_METHOD: string;
510
+ REQUIRED_METHOD: string;
511
+ STRING_METHOD: string;
512
+ ENUM_METHOD: string;
513
+ REFERENCE_A: string;
514
+ EXPORT_VARIABLE_NAME: string;
515
+ };
516
+
503
517
  // @public (undocumented)
504
518
  export function unwrapNonNull(type: TypeNode): any;
505
519
 
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [4.28.1](https://github.com/aws-amplify/amplify-category-api/compare/graphql-transformer-common@4.28.0...graphql-transformer-common@4.28.1) (2024-02-28)
7
+
8
+ **Note:** Version bump only for package graphql-transformer-common
9
+
10
+ # [4.28.0](https://github.com/aws-amplify/amplify-category-api/compare/graphql-transformer-common@4.27.1...graphql-transformer-common@4.28.0) (2024-02-05)
11
+
12
+ ### Features
13
+
14
+ - **api:** generate typescript data schema from sql schema internal representation ([#2225](https://github.com/aws-amplify/amplify-category-api/issues/2225)) ([460b077](https://github.com/aws-amplify/amplify-category-api/commit/460b0776af82932d2b42a2b7720b49b91fdbd45c))
15
+
6
16
  ## [4.27.1](https://github.com/aws-amplify/amplify-category-api/compare/graphql-transformer-common@4.27.0...graphql-transformer-common@4.27.1) (2023-12-18)
7
17
 
8
18
  **Note:** Version bump only for package graphql-transformer-common
@@ -0,0 +1,13 @@
1
+ export declare const TYPESCRIPT_DATA_SCHEMA_CONSTANTS: {
2
+ SCHEMA_PACKAGE: string;
3
+ MODEL_METHOD: string;
4
+ SCHEMA_METHOD: string;
5
+ IDENTIFIER_METHOD: string;
6
+ ARRAY_METHOD: string;
7
+ REQUIRED_METHOD: string;
8
+ STRING_METHOD: string;
9
+ ENUM_METHOD: string;
10
+ REFERENCE_A: string;
11
+ EXPORT_VARIABLE_NAME: string;
12
+ };
13
+ //# sourceMappingURL=TypescriptSchemaConstants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TypescriptSchemaConstants.d.ts","sourceRoot":"","sources":["../src/TypescriptSchemaConstants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gCAAgC;;;;;;;;;;;CAW5C,CAAC"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TYPESCRIPT_DATA_SCHEMA_CONSTANTS = void 0;
4
+ exports.TYPESCRIPT_DATA_SCHEMA_CONSTANTS = {
5
+ SCHEMA_PACKAGE: '@aws-amplify/data-schema',
6
+ MODEL_METHOD: 'model',
7
+ SCHEMA_METHOD: 'schema',
8
+ IDENTIFIER_METHOD: 'identifier',
9
+ ARRAY_METHOD: 'array',
10
+ REQUIRED_METHOD: 'required',
11
+ STRING_METHOD: 'string',
12
+ ENUM_METHOD: 'enum',
13
+ REFERENCE_A: 'a',
14
+ EXPORT_VARIABLE_NAME: 'schema',
15
+ };
16
+ //# sourceMappingURL=TypescriptSchemaConstants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TypescriptSchemaConstants.js","sourceRoot":"","sources":["../src/TypescriptSchemaConstants.ts"],"names":[],"mappings":";;;AAAa,QAAA,gCAAgC,GAAG;IAC9C,cAAc,EAAE,0BAA0B;IAC1C,YAAY,EAAE,OAAO;IACrB,aAAa,EAAE,QAAQ;IACvB,iBAAiB,EAAE,YAAY;IAC/B,YAAY,EAAE,OAAO;IACrB,eAAe,EAAE,UAAU;IAC3B,aAAa,EAAE,QAAQ;IACvB,WAAW,EAAE,MAAM;IACnB,WAAW,EAAE,GAAG;IAChB,oBAAoB,EAAE,QAAQ;CAC/B,CAAC"}
@@ -12,4 +12,5 @@ export * from './dynamodbUtils';
12
12
  export * from './SyncResourceIDs';
13
13
  export * from './PredictionsResourceIDs';
14
14
  export * from './transformedArgs';
15
+ export * from './TypescriptSchemaConstants';
15
16
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC"}
@@ -28,4 +28,5 @@ __exportStar(require("./dynamodbUtils"), exports);
28
28
  __exportStar(require("./SyncResourceIDs"), exports);
29
29
  __exportStar(require("./PredictionsResourceIDs"), exports);
30
30
  __exportStar(require("./transformedArgs"), exports);
31
+ __exportStar(require("./TypescriptSchemaConstants"), exports);
31
32
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,+CAA6B;AAC7B,yCAAuB;AACvB,wDAAsC;AACtC,qDAAmC;AACnC,0DAAwC;AACxC,8CAA4B;AAC5B,oDAAkC;AAClC,wDAAsC;AACtC,oDAAkC;AAClC,kDAAgC;AAChC,oDAAkC;AAClC,2DAAyC;AACzC,oDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,+CAA6B;AAC7B,yCAAuB;AACvB,wDAAsC;AACtC,qDAAmC;AACnC,0DAAwC;AACxC,8CAA4B;AAC5B,oDAAkC;AAClC,wDAAsC;AACtC,oDAAkC;AAClC,kDAAgC;AAChC,oDAAkC;AAClC,2DAAyC;AACzC,oDAAkC;AAClC,8DAA4C"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphql-transformer-common",
3
- "version": "4.27.1",
3
+ "version": "4.28.1",
4
4
  "description": "Common code and constants for AppSync Transformers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "graphql": "^15.5.0",
28
- "graphql-mapping-template": "4.20.14",
28
+ "graphql-mapping-template": "4.20.15",
29
29
  "md5": "^2.2.1",
30
30
  "pluralize": "8.0.0"
31
31
  },
@@ -37,9 +37,9 @@
37
37
  "coverageProvider": "v8",
38
38
  "coverageThreshold": {
39
39
  "global": {
40
- "branches": 63,
41
- "functions": 11,
42
- "lines": 27
40
+ "branches": 35,
41
+ "functions": 8,
42
+ "lines": 8
43
43
  }
44
44
  },
45
45
  "coverageReporters": [
@@ -58,6 +58,12 @@
58
58
  "jsx",
59
59
  "json",
60
60
  "node"
61
+ ],
62
+ "collectCoverageFrom": [
63
+ "src/**/*.ts"
64
+ ],
65
+ "coveragePathIgnorePatterns": [
66
+ "/__tests__/"
61
67
  ]
62
68
  }
63
69
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/graphql-api-construct",
3
- "version": "1.6.0-secrets-manager.0",
3
+ "version": "1.7.0-cors-rule.0",
4
4
  "description": "AppSync GraphQL Api Construct using Amplify GraphQL Transformer.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -75,20 +75,20 @@
75
75
  "dependencies": {
76
76
  "@aws-amplify/backend-output-schemas": "^0.4.0",
77
77
  "@aws-amplify/backend-output-storage": "^0.2.2",
78
- "@aws-amplify/graphql-auth-transformer": "3.3.6-secrets-manager.0",
79
- "@aws-amplify/graphql-default-value-transformer": "2.2.5-secrets-manager.0",
80
- "@aws-amplify/graphql-function-transformer": "2.1.17-secrets-manager.0",
81
- "@aws-amplify/graphql-http-transformer": "2.1.17-secrets-manager.0",
82
- "@aws-amplify/graphql-index-transformer": "2.3.5-secrets-manager.0",
83
- "@aws-amplify/graphql-maps-to-transformer": "3.4.6-secrets-manager.0",
84
- "@aws-amplify/graphql-model-transformer": "2.5.0-secrets-manager.0",
85
- "@aws-amplify/graphql-predictions-transformer": "2.1.17-secrets-manager.0",
86
- "@aws-amplify/graphql-relational-transformer": "2.3.6-secrets-manager.0",
87
- "@aws-amplify/graphql-searchable-transformer": "2.5.2-secrets-manager.0",
88
- "@aws-amplify/graphql-sql-transformer": "0.2.5-secrets-manager.0",
89
- "@aws-amplify/graphql-transformer": "1.4.0-secrets-manager.0",
90
- "@aws-amplify/graphql-transformer-core": "2.4.5-secrets-manager.0",
91
- "@aws-amplify/graphql-transformer-interfaces": "3.4.0-secrets-manager.0",
78
+ "@aws-amplify/graphql-auth-transformer": "3.4.2-cors-rule.0",
79
+ "@aws-amplify/graphql-default-value-transformer": "2.3.2-cors-rule.0",
80
+ "@aws-amplify/graphql-function-transformer": "2.1.19-cors-rule.0",
81
+ "@aws-amplify/graphql-http-transformer": "2.1.19-cors-rule.0",
82
+ "@aws-amplify/graphql-index-transformer": "2.3.8-cors-rule.0",
83
+ "@aws-amplify/graphql-maps-to-transformer": "3.4.9-cors-rule.0",
84
+ "@aws-amplify/graphql-model-transformer": "2.7.0-cors-rule.0",
85
+ "@aws-amplify/graphql-predictions-transformer": "2.1.19-cors-rule.0",
86
+ "@aws-amplify/graphql-relational-transformer": "2.4.2-cors-rule.0",
87
+ "@aws-amplify/graphql-searchable-transformer": "2.6.2-cors-rule.0",
88
+ "@aws-amplify/graphql-sql-transformer": "0.2.8-cors-rule.0",
89
+ "@aws-amplify/graphql-transformer": "1.4.0-cors-rule.0",
90
+ "@aws-amplify/graphql-transformer-core": "2.5.1-cors-rule.0",
91
+ "@aws-amplify/graphql-transformer-interfaces": "3.5.0-cors-rule.0",
92
92
  "@aws-amplify/platform-core": "^0.2.0",
93
93
  "@aws-amplify/plugin-types": "^0.4.1",
94
94
  "charenc": "^0.0.2",
@@ -96,8 +96,8 @@
96
96
  "fs-extra": "^8.1.0",
97
97
  "graceful-fs": "^4.2.11",
98
98
  "graphql": "^15.5.0",
99
- "graphql-mapping-template": "4.20.14",
100
- "graphql-transformer-common": "4.27.1",
99
+ "graphql-mapping-template": "4.20.15",
100
+ "graphql-transformer-common": "4.28.1",
101
101
  "hjson": "^3.2.2",
102
102
  "immer": "^9.0.12",
103
103
  "is-buffer": "^2.0.5",
@@ -112,7 +112,7 @@
112
112
  "zod": "^3.22.3"
113
113
  },
114
114
  "devDependencies": {
115
- "@aws-amplify/graphql-transformer-test-utils": "0.4.5-secrets-manager.0",
115
+ "@aws-amplify/graphql-transformer-test-utils": "0.4.7-cors-rule.0",
116
116
  "@types/fs-extra": "^8.0.1",
117
117
  "@types/node": "^12.12.6",
118
118
  "aws-cdk-lib": "2.80.0",
@@ -162,14 +162,20 @@
162
162
  "global": {
163
163
  "branches": 90,
164
164
  "functions": 90,
165
- "lines": 90
165
+ "lines": 60
166
166
  }
167
167
  },
168
168
  "coverageReporters": [
169
169
  "clover",
170
170
  "text"
171
171
  ],
172
- "testEnvironment": "../../FixJestEnvironment.js"
172
+ "testEnvironment": "../../FixJestEnvironment.js",
173
+ "collectCoverageFrom": [
174
+ "src/**/*.ts"
175
+ ],
176
+ "coveragePathIgnorePatterns": [
177
+ "/__tests__/"
178
+ ]
173
179
  },
174
- "gitHead": "1b45d39e2064522f7bce51bd8bf5135742d4ce14"
180
+ "gitHead": "8a673ad53fc3116a79c6ce1d52a1113eb0160e9b"
175
181
  }
@@ -1,4 +1,4 @@
1
- import { CfnResource } from 'aws-cdk-lib';
1
+ import { CfnResource, RemovalPolicy } from 'aws-cdk-lib';
2
2
  import { BillingMode, StreamViewType } from 'aws-cdk-lib/aws-dynamodb';
3
3
 
4
4
  const AMPLIFY_DYNAMODB_TABLE_RESOURCE_TYPE = 'Custom::AmplifyDynamoDBTable';
@@ -110,6 +110,14 @@ export class AmplifyDynamoDbTableWrapper {
110
110
  }
111
111
  }
112
112
 
113
+ /**
114
+ * Set the deletion policy of the resource based on the removal policy specified.
115
+ * @param policy removal policy to set
116
+ */
117
+ applyRemovalPolicy(policy: RemovalPolicy): void {
118
+ this.resource.applyRemovalPolicy(policy);
119
+ }
120
+
113
121
  /**
114
122
  * Specify how you are charged for read and write throughput and how you manage capacity.
115
123
  */
@@ -36,7 +36,7 @@ import type {
36
36
  FunctionSlot,
37
37
  IBackendOutputStorageStrategy,
38
38
  AddFunctionProps,
39
- ConflictResolution,
39
+ DataStoreConfiguration,
40
40
  IAmplifyGraphqlDefinition,
41
41
  } from './types';
42
42
  import {
@@ -120,9 +120,9 @@ export class AmplifyGraphqlApi extends Construct {
120
120
  public readonly apiId: string;
121
121
 
122
122
  /**
123
- * Conflict resolution setting
123
+ * DataStore conflict resolution setting
124
124
  */
125
- private readonly conflictResolution: ConflictResolution | undefined;
125
+ private readonly dataStoreConfiguration: DataStoreConfiguration | undefined;
126
126
 
127
127
  /**
128
128
  * Be very careful editing this value. This is the string that is used to identify graphql stacks in BI metrics
@@ -152,8 +152,17 @@ export class AmplifyGraphqlApi extends Construct {
152
152
  translationBehavior,
153
153
  functionNameMap,
154
154
  outputStorageStrategy,
155
+ dataStoreConfiguration,
155
156
  } = props;
156
157
 
158
+ if (conflictResolution && dataStoreConfiguration) {
159
+ throw new Error(
160
+ `conflictResolution is deprecated. conflictResolution and dataStoreConfiguration cannot be used together. Please use dataStoreConfiguration.`,
161
+ );
162
+ }
163
+
164
+ this.dataStoreConfiguration = dataStoreConfiguration || conflictResolution;
165
+
157
166
  const dataSources = getMetadataDataSources(definition);
158
167
 
159
168
  new AttributionMetadataStorage().storeAttributionMetadata(Stack.of(scope), this.stackType, path.join(__dirname, '..', 'package.json'), {
@@ -201,7 +210,7 @@ export class AmplifyGraphqlApi extends Construct {
201
210
  },
202
211
  authConfig,
203
212
  stackMapping: stackMappings ?? {},
204
- resolverConfig: conflictResolution ? convertToResolverConfig(conflictResolution) : undefined,
213
+ resolverConfig: this.dataStoreConfiguration ? convertToResolverConfig(this.dataStoreConfiguration) : undefined,
205
214
  transformParameters: {
206
215
  ...defaultTranslationBehavior,
207
216
  ...(translationBehavior ?? {}),
@@ -217,7 +226,6 @@ export class AmplifyGraphqlApi extends Construct {
217
226
  this.codegenAssets = new CodegenAssets(this, 'AmplifyCodegenAssets', { modelSchema: definition.schema });
218
227
 
219
228
  this.resources = getGeneratedResources(this);
220
- this.conflictResolution = conflictResolution;
221
229
  this.generatedFunctionSlots = getGeneratedFunctionSlots(assetManager.resolverAssets);
222
230
  this.storeOutput(outputStorageStrategy);
223
231
 
@@ -255,8 +263,8 @@ export class AmplifyGraphqlApi extends Construct {
255
263
  output.payload.awsAppsyncAdditionalAuthenticationTypes = additionalAuthTypes;
256
264
  }
257
265
 
258
- if (this.conflictResolution?.project?.handlerType) {
259
- output.payload.awsAppsyncConflictResolutionMode = this.conflictResolution?.project?.handlerType;
266
+ if (this.dataStoreConfiguration?.project?.handlerType) {
267
+ output.payload.awsAppsyncConflictResolutionMode = this.dataStoreConfiguration?.project?.handlerType;
260
268
  }
261
269
 
262
270
  outputStorageStrategy.addBackendOutputEntry(graphqlOutputKey, output);
package/src/index.ts CHANGED
@@ -20,6 +20,7 @@ export type {
20
20
  FunctionSlot,
21
21
  FunctionSlotOverride,
22
22
  ConflictResolution,
23
+ DataStoreConfiguration,
23
24
  ConflictDetectionType,
24
25
  OptimisticConflictResolutionStrategy,
25
26
  CustomConflictResolutionStrategy,
@@ -1,5 +1,5 @@
1
- import { RemovalPolicy } from 'aws-cdk-lib';
2
- import { Bucket, IBucket } from 'aws-cdk-lib/aws-s3';
1
+ import { RemovalPolicy, Fn } from 'aws-cdk-lib';
2
+ import { Bucket, HttpMethods, IBucket } from 'aws-cdk-lib/aws-s3';
3
3
  import { BucketDeployment, Source } from 'aws-cdk-lib/aws-s3-deployment';
4
4
  import { Construct } from 'constructs';
5
5
 
@@ -8,6 +8,11 @@ export type CodegenAssetsProps = {
8
8
  };
9
9
 
10
10
  const MODEL_SCHEMA_KEY = 'model-schema.graphql';
11
+ const CONSOLE_SERVICE_ENDPOINT = Fn.join('', [
12
+ 'https://',
13
+ Fn.ref('AWS::Region'),
14
+ '.console.aws.amazon.com/amplify',
15
+ ]);
11
16
 
12
17
  /**
13
18
  * Construct an S3 URI string for a given bucket and key.
@@ -30,6 +35,14 @@ export class CodegenAssets extends Construct {
30
35
  const bucket = new Bucket(this, `${id}Bucket`, {
31
36
  removalPolicy: RemovalPolicy.DESTROY,
32
37
  autoDeleteObjects: true,
38
+ // Enabling CORS to allow console to access the codegen assets.
39
+ cors: [
40
+ {
41
+ allowedMethods: [HttpMethods.GET, HttpMethods.HEAD],
42
+ allowedHeaders: ['*'],
43
+ allowedOrigins: [CONSOLE_SERVICE_ENDPOINT],
44
+ },
45
+ ],
33
46
  });
34
47
 
35
48
  const deployment = new BucketDeployment(this, `${id}Deployment`, {
@@ -8,7 +8,7 @@ import {
8
8
  CfnDataSource,
9
9
  GraphqlApi,
10
10
  } from 'aws-cdk-lib/aws-appsync';
11
- import { CfnTable, Table } from 'aws-cdk-lib/aws-dynamodb';
11
+ import { CfnTable, Table, ITable } from 'aws-cdk-lib/aws-dynamodb';
12
12
  import { CfnRole, Role } from 'aws-cdk-lib/aws-iam';
13
13
  import { CfnResource, NestedStack } from 'aws-cdk-lib';
14
14
  import { getResourceName } from '@aws-amplify/graphql-transformer-core';
@@ -17,6 +17,16 @@ import { AmplifyGraphqlApiResources, FunctionSlot } from '../types';
17
17
  import { AmplifyDynamoDbTableWrapper } from '../amplify-dynamodb-table-wrapper';
18
18
  import { walkAndProcessNodes } from './construct-tree';
19
19
 
20
+ /**
21
+ * Check if a resource is implementing table interface
22
+ * The required properties need to be present in the input
23
+ * https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dynamodb.ITable.html#properties
24
+ * @param table table resource
25
+ * @returns whether the resource is a ITable or not
26
+ */
27
+ function isITable(table: any): table is ITable {
28
+ return 'env' in table && 'node' in table && 'stack' in table && 'tableArn' in table && 'tableName' in table;
29
+ }
20
30
  /**
21
31
  * Everything below here is intended to help us gather the
22
32
  * output values and render out the L1 resources for access.
@@ -33,7 +43,7 @@ export const getGeneratedResources = (scope: Construct): AmplifyGraphqlApiResour
33
43
  const cfnResolvers: Record<string, CfnResolver> = {};
34
44
  const cfnFunctionConfigurations: Record<string, CfnFunctionConfiguration> = {};
35
45
  const cfnDataSources: Record<string, CfnDataSource> = {};
36
- const tables: Record<string, Table> = {};
46
+ const tables: Record<string, ITable> = {};
37
47
  const cfnTables: Record<string, CfnTable> = {};
38
48
  const amplifyDynamoDbTables: Record<string, AmplifyDynamoDbTableWrapper> = {};
39
49
  const roles: Record<string, Role> = {};
@@ -72,7 +82,7 @@ export const getGeneratedResources = (scope: Construct): AmplifyGraphqlApiResour
72
82
  cfnFunctionConfigurations[resourceName] = currentScope;
73
83
  return;
74
84
  }
75
- if (currentScope instanceof Table) {
85
+ if (currentScope instanceof Table || isITable(currentScope)) {
76
86
  tables[resourceName] = currentScope;
77
87
  return;
78
88
  }
@@ -123,7 +133,6 @@ export const getGeneratedResources = (scope: Construct): AmplifyGraphqlApiResour
123
133
  return {
124
134
  graphqlApi: GraphqlApi.fromGraphqlApiAttributes(scope, 'L2GraphqlApi', { graphqlApiId: cfnGraphqlApi.attrApiId }),
125
135
  tables,
126
- amplifyDynamoDbTables,
127
136
  roles,
128
137
  functions,
129
138
  nestedStacks,
@@ -135,6 +144,7 @@ export const getGeneratedResources = (scope: Construct): AmplifyGraphqlApiResour
135
144
  cfnFunctionConfigurations,
136
145
  cfnDataSources,
137
146
  cfnTables,
147
+ amplifyDynamoDbTables,
138
148
  cfnRoles,
139
149
  cfnFunctions,
140
150
  additionalCfnResources,
package/src/types.ts CHANGED
@@ -234,8 +234,14 @@ export type ConflictResolutionStrategy =
234
234
 
235
235
  /**
236
236
  * Project level configuration for conflict resolution.
237
+ * @deprecated use DataStoreConfiguration instead.
237
238
  */
238
- export interface ConflictResolution {
239
+ export interface ConflictResolution extends DataStoreConfiguration {}
240
+
241
+ /**
242
+ * Project level configuration for DataStore
243
+ */
244
+ export interface DataStoreConfiguration {
239
245
  /**
240
246
  * Project-wide config for conflict resolution. Applies to all non-overridden models.
241
247
  */
@@ -636,6 +642,7 @@ export interface AmplifyGraphqlApiProps {
636
642
  /**
637
643
  * Configure conflict resolution on the Api, which is required to enable DataStore Api functionality.
638
644
  * For more information, refer to https://docs.amplify.aws/lib/datastore/getting-started/q/platform/js/
645
+ * @deprecated use dataStoreConfiguration instead.
639
646
  */
640
647
  readonly conflictResolution?: ConflictResolution;
641
648
 
@@ -676,6 +683,12 @@ export interface AmplifyGraphqlApiProps {
676
683
  * Strategy to store construct outputs. If no outputStorageStrategey is provided a default strategy will be used.
677
684
  */
678
685
  readonly outputStorageStrategy?: IBackendOutputStorageStrategy;
686
+
687
+ /**
688
+ * Configure DataStore conflict resolution on the Api. Conflict resolution is required to enable DataStore Api functionality.
689
+ * For more information, refer to https://docs.amplify.aws/lib/datastore/getting-started/q/platform/js/
690
+ */
691
+ readonly dataStoreConfiguration?: DataStoreConfiguration;
679
692
  }
680
693
 
681
694
  /**
@@ -718,6 +731,11 @@ export interface AmplifyGraphqlApiCfnResources {
718
731
  */
719
732
  readonly cfnTables: Record<string, CfnTable>;
720
733
 
734
+ /**
735
+ * The Generated Amplify DynamoDb Table L1 resource wrapper, keyed by model type name.
736
+ */
737
+ readonly amplifyDynamoDbTables: Record<string, AmplifyDynamoDbTableWrapper>;
738
+
721
739
  /**
722
740
  * The Generated IAM Role L1 Resources, keyed by logicalId.
723
741
  */
@@ -749,11 +767,6 @@ export interface AmplifyGraphqlApiResources {
749
767
  */
750
768
  readonly tables: Record<string, ITable>;
751
769
 
752
- /**
753
- * The Generated Amplify DynamoDb Table wrapped if produced, keyed by name.
754
- */
755
- readonly amplifyDynamoDbTables: Record<string, AmplifyDynamoDbTableWrapper>;
756
-
757
770
  /**
758
771
  * The Generated IAM Role L2 Resources, keyed by logicalId.
759
772
  */