@aws-amplify/graphql-api-construct 1.9.5 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/.jsii +265 -111
  2. package/API.md +14 -0
  3. package/CHANGELOG.md +12 -0
  4. package/lib/amplify-dynamodb-table-wrapper.js +2 -2
  5. package/lib/amplify-graphql-api.js +3 -3
  6. package/lib/amplify-graphql-definition.js +2 -2
  7. package/lib/internal/asset-provider.js +1 -1
  8. package/lib/internal/authorization-modes.js +1 -1
  9. package/lib/internal/conflict-resolution.js +1 -1
  10. package/lib/internal/construct-exports.js +1 -1
  11. package/lib/internal/construct-tree.js +1 -1
  12. package/lib/internal/data-source-config.js +1 -1
  13. package/lib/internal/default-parameters.js +2 -1
  14. package/lib/internal/model-type-name.js +1 -1
  15. package/lib/internal/user-defined-slots.js +1 -1
  16. package/lib/model-datasource-strategy-types.d.ts +36 -1
  17. package/lib/model-datasource-strategy-types.js +1 -1
  18. package/lib/sql-model-datasource-strategy.js +1 -1
  19. package/lib/types.d.ts +10 -0
  20. package/lib/types.js +1 -1
  21. package/node_modules/@aws-amplify/graphql-auth-transformer/CHANGELOG.md +12 -0
  22. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.d.ts.map +1 -1
  23. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js +1 -1
  24. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js.map +1 -1
  25. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/query.d.ts.map +1 -1
  26. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/query.js +3 -1
  27. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/query.js.map +1 -1
  28. package/node_modules/@aws-amplify/graphql-auth-transformer/package.json +12 -12
  29. package/node_modules/@aws-amplify/graphql-default-value-transformer/CHANGELOG.md +8 -0
  30. package/node_modules/@aws-amplify/graphql-default-value-transformer/LICENSE +201 -0
  31. package/node_modules/@aws-amplify/graphql-default-value-transformer/package.json +8 -7
  32. package/node_modules/@aws-amplify/graphql-function-transformer/CHANGELOG.md +8 -0
  33. package/node_modules/@aws-amplify/graphql-function-transformer/LICENSE +201 -0
  34. package/node_modules/@aws-amplify/graphql-function-transformer/package.json +7 -6
  35. package/node_modules/@aws-amplify/graphql-http-transformer/CHANGELOG.md +8 -0
  36. package/node_modules/@aws-amplify/graphql-http-transformer/LICENSE +201 -0
  37. package/node_modules/@aws-amplify/graphql-http-transformer/package.json +7 -6
  38. package/node_modules/@aws-amplify/graphql-index-transformer/CHANGELOG.md +10 -0
  39. package/node_modules/@aws-amplify/graphql-index-transformer/LICENSE +201 -0
  40. package/node_modules/@aws-amplify/graphql-index-transformer/package.json +8 -7
  41. package/node_modules/@aws-amplify/graphql-maps-to-transformer/CHANGELOG.md +10 -0
  42. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/assets/mapping-lambda.zip +0 -0
  43. package/node_modules/@aws-amplify/graphql-maps-to-transformer/package.json +10 -10
  44. package/node_modules/@aws-amplify/graphql-model-transformer/CHANGELOG.md +14 -0
  45. package/node_modules/@aws-amplify/graphql-model-transformer/LICENSE +201 -0
  46. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-lambda.zip +0 -0
  47. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-notification-lambda.zip +0 -0
  48. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-patching-lambda.zip +0 -0
  49. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/generators/rds-vtl-generator.js +1 -1
  50. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/generators/rds-vtl-generator.js.map +1 -1
  51. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.d.ts +3 -2
  52. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.d.ts.map +1 -1
  53. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.js +40 -18
  54. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.js.map +1 -1
  55. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/rds-model-resource-generator.d.ts.map +1 -1
  56. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/rds-model-resource-generator.js +7 -1
  57. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/rds-model-resource-generator.js.map +1 -1
  58. package/node_modules/@aws-amplify/graphql-model-transformer/package.json +7 -6
  59. package/node_modules/@aws-amplify/graphql-predictions-transformer/CHANGELOG.md +8 -0
  60. package/node_modules/@aws-amplify/graphql-predictions-transformer/LICENSE +201 -0
  61. package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/predictionsLambdaFunction.zip +0 -0
  62. package/node_modules/@aws-amplify/graphql-predictions-transformer/package.json +7 -6
  63. package/node_modules/@aws-amplify/graphql-relational-transformer/CHANGELOG.md +8 -0
  64. package/node_modules/@aws-amplify/graphql-relational-transformer/package.json +8 -8
  65. package/node_modules/@aws-amplify/graphql-searchable-transformer/CHANGELOG.md +8 -0
  66. package/node_modules/@aws-amplify/graphql-searchable-transformer/LICENSE +201 -0
  67. package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/streaming-lambda.zip +0 -0
  68. package/node_modules/@aws-amplify/graphql-searchable-transformer/package.json +8 -7
  69. package/node_modules/@aws-amplify/graphql-sql-transformer/CHANGELOG.md +8 -0
  70. package/node_modules/@aws-amplify/graphql-sql-transformer/LICENSE +201 -0
  71. package/node_modules/@aws-amplify/graphql-sql-transformer/package.json +8 -7
  72. package/node_modules/@aws-amplify/graphql-transformer/CHANGELOG.md +10 -0
  73. package/node_modules/@aws-amplify/graphql-transformer/package.json +15 -15
  74. package/node_modules/@aws-amplify/graphql-transformer-core/API.md +1 -1
  75. package/node_modules/@aws-amplify/graphql-transformer-core/CHANGELOG.md +12 -0
  76. package/node_modules/@aws-amplify/graphql-transformer-core/LICENSE +201 -0
  77. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/transform-parameters.d.ts.map +1 -1
  78. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/transform-parameters.js +1 -0
  79. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/transform-parameters.js.map +1 -1
  80. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-util.d.ts +1 -1
  81. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-util.d.ts.map +1 -1
  82. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-util.js +6 -1
  83. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-util.js.map +1 -1
  84. package/node_modules/@aws-amplify/graphql-transformer-core/package.json +5 -4
  85. package/node_modules/@aws-amplify/graphql-transformer-interfaces/API.md +20 -0
  86. package/node_modules/@aws-amplify/graphql-transformer-interfaces/CHANGELOG.md +12 -0
  87. package/node_modules/@aws-amplify/graphql-transformer-interfaces/LICENSE +201 -0
  88. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.d.ts +9 -0
  89. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.d.ts.map +1 -1
  90. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.js +3 -1
  91. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.js.map +1 -1
  92. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/transform-parameters.d.ts +1 -0
  93. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/transform-parameters.d.ts.map +1 -1
  94. package/node_modules/@aws-amplify/graphql-transformer-interfaces/package.json +3 -2
  95. package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/model-datasource/types.ts +44 -1
  96. package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/transformer-context/transform-parameters.ts +1 -0
  97. package/node_modules/@aws-amplify/graphql-transformer-interfaces/tsconfig.tsbuildinfo +1 -1
  98. package/node_modules/graphql-transformer-common/API.md +1 -0
  99. package/node_modules/graphql-transformer-common/CHANGELOG.md +6 -0
  100. package/node_modules/graphql-transformer-common/lib/TypescriptSchemaConstants.d.ts +1 -0
  101. package/node_modules/graphql-transformer-common/lib/TypescriptSchemaConstants.d.ts.map +1 -1
  102. package/node_modules/graphql-transformer-common/lib/TypescriptSchemaConstants.js +1 -0
  103. package/node_modules/graphql-transformer-common/lib/TypescriptSchemaConstants.js.map +1 -1
  104. package/node_modules/graphql-transformer-common/package.json +1 -1
  105. package/package.json +19 -19
  106. package/src/amplify-graphql-api.ts +1 -1
  107. package/src/internal/default-parameters.ts +1 -0
  108. package/src/model-datasource-strategy-types.ts +41 -1
  109. package/src/types.ts +12 -0
@@ -523,6 +523,7 @@ export const TYPESCRIPT_DATA_SCHEMA_CONSTANTS: {
523
523
  PROPERTY_AZ: string;
524
524
  PROPERTY_DATABASE: string;
525
525
  PROPERTY_CONNECTION_URI: string;
526
+ PROPERTY_SSL_CERTIFICATE: string;
526
527
  PROPERTY_ENGINE: string;
527
528
  PROPERTY_IDENTIFIER: string;
528
529
  };
@@ -3,6 +3,12 @@
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.31.0](https://github.com/aws-amplify/amplify-category-api/compare/graphql-transformer-common@4.30.1...graphql-transformer-common@4.31.0) (2024-06-25)
7
+
8
+ ### Features
9
+
10
+ - **generate-schema:** custom ssl cert support to generate schema command ([#2615](https://github.com/aws-amplify/amplify-category-api/issues/2615)) ([390887f](https://github.com/aws-amplify/amplify-category-api/commit/390887ff4467baca9dad8f70071442b95bb04cf9))
11
+
6
12
  ## [4.30.1](https://github.com/aws-amplify/amplify-category-api/compare/graphql-transformer-common@4.30.0...graphql-transformer-common@4.30.1) (2024-04-26)
7
13
 
8
14
  **Note:** Version bump only for package graphql-transformer-common
@@ -21,6 +21,7 @@ export declare const TYPESCRIPT_DATA_SCHEMA_CONSTANTS: {
21
21
  PROPERTY_AZ: string;
22
22
  PROPERTY_DATABASE: string;
23
23
  PROPERTY_CONNECTION_URI: string;
24
+ PROPERTY_SSL_CERTIFICATE: string;
24
25
  PROPERTY_ENGINE: string;
25
26
  PROPERTY_IDENTIFIER: string;
26
27
  };
@@ -1 +1 @@
1
- {"version":3,"file":"TypescriptSchemaConstants.d.ts","sourceRoot":"","sources":["../src/TypescriptSchemaConstants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;CAyB5C,CAAC"}
1
+ {"version":3,"file":"TypescriptSchemaConstants.d.ts","sourceRoot":"","sources":["../src/TypescriptSchemaConstants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;CA0B5C,CAAC"}
@@ -24,6 +24,7 @@ exports.TYPESCRIPT_DATA_SCHEMA_CONSTANTS = {
24
24
  PROPERTY_AZ: 'availabilityZone',
25
25
  PROPERTY_DATABASE: 'database',
26
26
  PROPERTY_CONNECTION_URI: 'connectionUri',
27
+ PROPERTY_SSL_CERTIFICATE: 'sslCertificate',
27
28
  PROPERTY_ENGINE: 'engine',
28
29
  PROPERTY_IDENTIFIER: 'identifier',
29
30
  };
@@ -1 +1 @@
1
- {"version":3,"file":"TypescriptSchemaConstants.js","sourceRoot":"","sources":["../src/TypescriptSchemaConstants.ts"],"names":[],"mappings":";;;AAAa,QAAA,gCAAgC,GAAG;IAC9C,cAAc,EAAE,0BAA0B;IAC1C,wBAAwB,EAAE,oCAAoC;IAC9D,eAAe,EAAE,sBAAsB;IACvC,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;IAC9B,0BAA0B,EAAE,WAAW;IACvC,qBAAqB,EAAE,QAAQ;IAC/B,YAAY,EAAE,WAAW;IACzB,eAAe,EAAE,OAAO;IACxB,2BAA2B,EAAE,kBAAkB;IAC/C,kBAAkB,EAAE,yBAAyB;IAC7C,kBAAkB,EAAE,UAAU;IAC9B,WAAW,EAAE,kBAAkB;IAC/B,iBAAiB,EAAE,UAAU;IAC7B,uBAAuB,EAAE,eAAe;IACxC,eAAe,EAAE,QAAQ;IACzB,mBAAmB,EAAE,YAAY;CAClC,CAAC"}
1
+ {"version":3,"file":"TypescriptSchemaConstants.js","sourceRoot":"","sources":["../src/TypescriptSchemaConstants.ts"],"names":[],"mappings":";;;AAAa,QAAA,gCAAgC,GAAG;IAC9C,cAAc,EAAE,0BAA0B;IAC1C,wBAAwB,EAAE,oCAAoC;IAC9D,eAAe,EAAE,sBAAsB;IACvC,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;IAC9B,0BAA0B,EAAE,WAAW;IACvC,qBAAqB,EAAE,QAAQ;IAC/B,YAAY,EAAE,WAAW;IACzB,eAAe,EAAE,OAAO;IACxB,2BAA2B,EAAE,kBAAkB;IAC/C,kBAAkB,EAAE,yBAAyB;IAC7C,kBAAkB,EAAE,UAAU;IAC9B,WAAW,EAAE,kBAAkB;IAC/B,iBAAiB,EAAE,UAAU;IAC7B,uBAAuB,EAAE,eAAe;IACxC,wBAAwB,EAAE,gBAAgB;IAC1C,eAAe,EAAE,QAAQ;IACzB,mBAAmB,EAAE,YAAY;CAClC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphql-transformer-common",
3
- "version": "4.30.1",
3
+ "version": "4.31.0",
4
4
  "description": "Common code and constants for AppSync Transformers",
5
5
  "repository": {
6
6
  "type": "git",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/graphql-api-construct",
3
- "version": "1.9.5",
3
+ "version": "1.11.0",
4
4
  "description": "AppSync GraphQL Api Construct using Amplify GraphQL Transformer.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -76,21 +76,21 @@
76
76
  "dependencies": {
77
77
  "@aws-amplify/backend-output-schemas": "^0.4.0",
78
78
  "@aws-amplify/backend-output-storage": "^0.2.2",
79
- "@aws-amplify/graphql-auth-transformer": "3.5.5",
80
- "@aws-amplify/graphql-default-value-transformer": "2.3.7",
79
+ "@aws-amplify/graphql-auth-transformer": "3.6.1",
80
+ "@aws-amplify/graphql-default-value-transformer": "2.3.9",
81
81
  "@aws-amplify/graphql-directives": "1.1.0",
82
- "@aws-amplify/graphql-function-transformer": "2.1.22",
83
- "@aws-amplify/graphql-http-transformer": "2.1.22",
84
- "@aws-amplify/graphql-index-transformer": "2.4.3",
85
- "@aws-amplify/graphql-maps-to-transformer": "3.4.17",
86
- "@aws-amplify/graphql-model-transformer": "2.10.1",
87
- "@aws-amplify/graphql-predictions-transformer": "2.1.22",
88
- "@aws-amplify/graphql-relational-transformer": "2.5.5",
89
- "@aws-amplify/graphql-searchable-transformer": "2.7.3",
90
- "@aws-amplify/graphql-sql-transformer": "0.3.3",
91
- "@aws-amplify/graphql-transformer": "1.5.7",
92
- "@aws-amplify/graphql-transformer-core": "2.8.0",
93
- "@aws-amplify/graphql-transformer-interfaces": "3.8.0",
82
+ "@aws-amplify/graphql-function-transformer": "2.1.24",
83
+ "@aws-amplify/graphql-http-transformer": "2.1.24",
84
+ "@aws-amplify/graphql-index-transformer": "2.4.5",
85
+ "@aws-amplify/graphql-maps-to-transformer": "3.4.19",
86
+ "@aws-amplify/graphql-model-transformer": "2.11.0",
87
+ "@aws-amplify/graphql-predictions-transformer": "2.1.24",
88
+ "@aws-amplify/graphql-relational-transformer": "2.5.7",
89
+ "@aws-amplify/graphql-searchable-transformer": "2.7.5",
90
+ "@aws-amplify/graphql-sql-transformer": "0.3.5",
91
+ "@aws-amplify/graphql-transformer": "1.6.1",
92
+ "@aws-amplify/graphql-transformer-core": "2.9.1",
93
+ "@aws-amplify/graphql-transformer-interfaces": "3.10.0",
94
94
  "@aws-amplify/platform-core": "^0.2.0",
95
95
  "@aws-amplify/plugin-types": "^0.4.1",
96
96
  "charenc": "^0.0.2",
@@ -99,7 +99,7 @@
99
99
  "graceful-fs": "^4.2.11",
100
100
  "graphql": "^15.5.0",
101
101
  "graphql-mapping-template": "4.20.16",
102
- "graphql-transformer-common": "4.30.1",
102
+ "graphql-transformer-common": "4.31.0",
103
103
  "hjson": "^3.2.2",
104
104
  "immer": "^9.0.12",
105
105
  "is-buffer": "^2.0.5",
@@ -114,12 +114,12 @@
114
114
  "zod": "^3.22.3"
115
115
  },
116
116
  "devDependencies": {
117
- "@aws-amplify/graphql-transformer-test-utils": "0.5.2",
117
+ "@aws-amplify/graphql-transformer-test-utils": "0.5.4",
118
118
  "@types/fs-extra": "^8.0.1",
119
119
  "@types/node": "^12.12.6",
120
120
  "aws-cdk-lib": "2.80.0",
121
121
  "constructs": "10.0.5",
122
- "jsii": "^5.1.5",
122
+ "jsii": "^5.4.23",
123
123
  "jsii-docgen": "9.1.2",
124
124
  "jsii-pacmak": "^1.84.0",
125
125
  "rimraf": "^3.0.0",
@@ -179,5 +179,5 @@
179
179
  "/__tests__/"
180
180
  ]
181
181
  },
182
- "gitHead": "1a38118743b11c20b6d102881b39eb5cc0d93320"
182
+ "gitHead": "25f293039b3430194e038725e71b3526ae1204d4"
183
183
  }
@@ -156,7 +156,7 @@ export class AmplifyGraphqlApi extends Construct {
156
156
 
157
157
  if (conflictResolution && dataStoreConfiguration) {
158
158
  throw new Error(
159
- `conflictResolution is deprecated. conflictResolution and dataStoreConfiguration cannot be used together. Please use dataStoreConfiguration.`,
159
+ 'conflictResolution is deprecated. conflictResolution and dataStoreConfiguration cannot be used together. Please use dataStoreConfiguration.',
160
160
  );
161
161
  }
162
162
 
@@ -10,6 +10,7 @@ export const defaultTranslationBehavior: TranslationBehavior = {
10
10
  disableResolverDeduping: true,
11
11
  sandboxModeEnabled: false,
12
12
  useSubUsernameForDefaultIdentityClaim: true,
13
+ subscriptionsInheritPrimaryAuth: false,
13
14
  populateOwnerFieldForStaticGroupAuth: true,
14
15
  suppressApiKeyGeneration: false,
15
16
  secondaryKeyAsGSI: true,
@@ -126,6 +126,28 @@ export type SqlModelDataSourceDbConnectionConfig =
126
126
  | SqlModelDataSourceSsmDbConnectionConfig
127
127
  | SqlModelDataSourceSsmDbConnectionStringConfig;
128
128
 
129
+ /**
130
+ * Marker interface. Although we can't declare it in the actual interface definition because it results in invalid C#, each conforming type
131
+ * must have a `configType: string` field to allow for discriminated union behavior.
132
+ */
133
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
134
+ export interface SslCertConfig {}
135
+
136
+ export interface SslCertSsmPathConfig extends SslCertConfig {
137
+ /**
138
+ * The SSM path to a custom SSL certificate to use instead of the default. Amplify resolves the trust store to use as follows:
139
+ * - If the `ssmPath` parameter is provided, use it.
140
+ * - If the parameter is a single string, use it.
141
+ * - If the parameter is an array, iterate over them in order
142
+ * - In either case, if the parameter is provided but the certificate content isn't retrievable, fails with an error.
143
+ * - If the database host is an RDS cluster, instance, or proxy (in other words, if the database host ends with "rds.amazonaws.com"), use
144
+ * an RDS-specific trust store vended by AWS. See
145
+ * https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html#UsingWithRDS.SSL.CertificatesAllRegions
146
+ * - Otherwise, use the trust store vended with the NodeJS runtime version that the SQL lambda is running on
147
+ */
148
+ readonly ssmPath: string | string[];
149
+ }
150
+
129
151
  /**
130
152
  * The configuration option to use a Secure Systems Manager parameter to store the connection string to the database.
131
153
  * @experimental
@@ -138,6 +160,11 @@ export interface SqlModelDataSourceSsmDbConnectionStringConfig {
138
160
  * attempt to retrieve connection information from subsequent paths in the array.
139
161
  **/
140
162
  readonly connectionUriSsmPath: string | string[];
163
+
164
+ /**
165
+ * An optional configuration for a custom SSL certificate authority to use when connecting to the database.
166
+ */
167
+ readonly sslCertConfig?: SslCertConfig;
141
168
  }
142
169
 
143
170
  /**
@@ -150,7 +177,10 @@ export interface SqlModelDataSourceSecretsManagerDbConnectionConfig {
150
177
  /** The ARN of the managed secret with username, password, and hostname to use when connecting to the database. **/
151
178
  readonly secretArn: string;
152
179
 
153
- /** The ARN of the customer managed encryption key for the secret. If not supplied, the secret is expected to be encrypted with the default AWS-managed key. **/
180
+ /**
181
+ * The ARN of the customer managed encryption key for the secret. If not supplied, the secret is expected to be encrypted with the default
182
+ * AWS-managed key.
183
+ **/
154
184
  readonly keyArn?: string;
155
185
 
156
186
  /** The port number of the database proxy, cluster, or instance. */
@@ -161,6 +191,11 @@ export interface SqlModelDataSourceSecretsManagerDbConnectionConfig {
161
191
 
162
192
  /** The hostame of the database. */
163
193
  readonly hostname: string;
194
+
195
+ /**
196
+ * An optional configuration for a custom SSL certificate authority to use when connecting to the database.
197
+ */
198
+ readonly sslCertConfig?: SslCertConfig;
164
199
  }
165
200
 
166
201
  /**
@@ -185,6 +220,11 @@ export interface SqlModelDataSourceSsmDbConnectionConfig {
185
220
 
186
221
  /** The Secure Systems Manager parameter containing the database name. */
187
222
  readonly databaseNameSsmPath: string;
223
+
224
+ /**
225
+ * An optional configuration for a custom SSL certificate authority to use when connecting to the database.
226
+ */
227
+ readonly sslCertConfig?: SslCertConfig;
188
228
  }
189
229
 
190
230
  /**
package/src/types.ts CHANGED
@@ -427,6 +427,12 @@ export interface TranslationBehavior {
427
427
  */
428
428
  readonly useSubUsernameForDefaultIdentityClaim: boolean;
429
429
 
430
+ /**
431
+ * When enabled, suppresses default behavior of redacting relational fields when auth rules do not exactly match.
432
+ * @default false
433
+ */
434
+ readonly subscriptionsInheritPrimaryAuth: boolean;
435
+
430
436
  /**
431
437
  * Ensure that the owner field is still populated even if a static iam or group authorization applies.
432
438
  * @default true
@@ -522,6 +528,12 @@ export interface PartialTranslationBehavior {
522
528
  */
523
529
  readonly useSubUsernameForDefaultIdentityClaim?: boolean;
524
530
 
531
+ /**
532
+ * When enabled, suppresses default behavior of redacting relational fields when auth rules do not exactly match.
533
+ * @default false
534
+ */
535
+ readonly subscriptionsInheritPrimaryAuth?: boolean;
536
+
525
537
  /**
526
538
  * Ensure that the owner field is still populated even if a static iam or group authorization applies.
527
539
  * @default true