@aws-amplify/graphql-transformer-interfaces 3.9.0 → 3.11.0-gen2-migration.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.
package/API.md CHANGED
@@ -215,6 +215,16 @@ export interface GraphQLAPIProvider extends IConstruct {
215
215
  readonly name: string;
216
216
  }
217
217
 
218
+ // @public (undocumented)
219
+ export interface ImportedAmplifyDynamoDbModelDataSourceStrategy {
220
+ // (undocumented)
221
+ readonly dbType: 'DYNAMODB';
222
+ // (undocumented)
223
+ readonly provisionStrategy: 'IMPORTED_AMPLIFY_TABLE';
224
+ // (undocumented)
225
+ readonly tableName: string;
226
+ }
227
+
218
228
  // @public (undocumented)
219
229
  export interface InlineMappingTemplateProvider {
220
230
  // (undocumented)
@@ -237,6 +247,9 @@ export const isSqlModelDataSourceSsmDbConnectionConfig: (obj: any) => obj is Sql
237
247
  // @public (undocumented)
238
248
  export const isSqlModelDataSourceSsmDbConnectionStringConfig: (obj: any) => obj is SqlModelDataSourceSsmDbConnectionStringConfig;
239
249
 
250
+ // @public (undocumented)
251
+ export const isSslCertSsmPathConfig: (obj: any) => obj is SslCertSsmPathConfig;
252
+
240
253
  // @public (undocumented)
241
254
  export type MappingTemplateProvider = InlineMappingTemplateProvider | S3MappingTemplateProvider;
242
255
 
@@ -249,7 +262,7 @@ export enum MappingTemplateType {
249
262
  }
250
263
 
251
264
  // @public (undocumented)
252
- export type ModelDataSourceStrategy = DefaultDynamoDbModelDataSourceStrategy | AmplifyDynamoDbModelDataSourceStrategy | SQLLambdaModelDataSourceStrategy;
265
+ export type ModelDataSourceStrategy = DefaultDynamoDbModelDataSourceStrategy | AmplifyDynamoDbModelDataSourceStrategy | ImportedAmplifyDynamoDbModelDataSourceStrategy | SQLLambdaModelDataSourceStrategy;
253
266
 
254
267
  // @public (undocumented)
255
268
  export interface ModelDataSourceStrategyBase {
@@ -415,6 +428,8 @@ export interface SqlModelDataSourceSecretsManagerDbConnectionConfig {
415
428
  readonly port: number;
416
429
  // (undocumented)
417
430
  readonly secretArn: string;
431
+ // (undocumented)
432
+ readonly sslCertConfig?: SslCertConfig;
418
433
  }
419
434
 
420
435
  // @public (undocumented)
@@ -428,6 +443,8 @@ export interface SqlModelDataSourceSsmDbConnectionConfig {
428
443
  // (undocumented)
429
444
  readonly portSsmPath: string;
430
445
  // (undocumented)
446
+ readonly sslCertConfig?: SslCertConfig;
447
+ // (undocumented)
431
448
  readonly usernameSsmPath: string;
432
449
  }
433
450
 
@@ -435,6 +452,18 @@ export interface SqlModelDataSourceSsmDbConnectionConfig {
435
452
  export interface SqlModelDataSourceSsmDbConnectionStringConfig {
436
453
  // (undocumented)
437
454
  readonly connectionUriSsmPath: string | string[];
455
+ // (undocumented)
456
+ readonly sslCertConfig?: SslCertConfig;
457
+ }
458
+
459
+ // @public (undocumented)
460
+ export interface SslCertConfig {
461
+ }
462
+
463
+ // @public (undocumented)
464
+ export interface SslCertSsmPathConfig extends SslCertConfig {
465
+ // (undocumented)
466
+ readonly ssmPath: string | string[];
438
467
  }
439
468
 
440
469
  // @public (undocumented)
@@ -903,6 +932,7 @@ export type TransformParameters = {
903
932
  enableAutoIndexQueryNames: boolean;
904
933
  respectPrimaryKeyAttributesOnConnectionField: boolean;
905
934
  enableSearchNodeToNodeEncryption: boolean;
935
+ enableGen2Migration: boolean;
906
936
  };
907
937
 
908
938
  // @public (undocumented)
package/CHANGELOG.md CHANGED
@@ -3,6 +3,19 @@
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
+ # [3.11.0-gen2-migration.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@3.10.0...@aws-amplify/graphql-transformer-interfaces@3.11.0-gen2-migration.0) (2024-07-15)
7
+
8
+ ### Features
9
+
10
+ - get datasource map for migration ([#2668](https://github.com/aws-amplify/amplify-category-api/issues/2668)) ([02c7da0](https://github.com/aws-amplify/amplify-category-api/commit/02c7da0da0d5837ca05a8e4ff1b1536cc20ae15b))
11
+ - import existing table to amplify managed table ([#2634](https://github.com/aws-amplify/amplify-category-api/issues/2634)) ([b3fb28f](https://github.com/aws-amplify/amplify-category-api/commit/b3fb28f6a253cae523625c0b2e93ec9ce2c37bab))
12
+
13
+ # [3.10.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@3.9.0...@aws-amplify/graphql-transformer-interfaces@3.10.0) (2024-07-01)
14
+
15
+ ### Features
16
+
17
+ - support custom SSL certs in SQL lambda handler ([#2631](https://github.com/aws-amplify/amplify-category-api/issues/2631)) ([f444517](https://github.com/aws-amplify/amplify-category-api/commit/f444517f2deebdb16dcc16257ed083ead4af9c9b))
18
+
6
19
  # [3.9.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@3.8.0...@aws-amplify/graphql-transformer-interfaces@3.9.0) (2024-06-25)
7
20
 
8
21
  ### Features
@@ -1,4 +1,4 @@
1
- export type ModelDataSourceStrategy = DefaultDynamoDbModelDataSourceStrategy | AmplifyDynamoDbModelDataSourceStrategy | SQLLambdaModelDataSourceStrategy;
1
+ export type ModelDataSourceStrategy = DefaultDynamoDbModelDataSourceStrategy | AmplifyDynamoDbModelDataSourceStrategy | ImportedAmplifyDynamoDbModelDataSourceStrategy | SQLLambdaModelDataSourceStrategy;
2
2
  export interface ModelDataSourceStrategyBase {
3
3
  dbType: ModelDataSourceStrategyDbType;
4
4
  }
@@ -12,6 +12,11 @@ export interface AmplifyDynamoDbModelDataSourceStrategy extends ModelDataSourceS
12
12
  readonly dbType: 'DYNAMODB';
13
13
  readonly provisionStrategy: 'AMPLIFY_TABLE';
14
14
  }
15
+ export interface ImportedAmplifyDynamoDbModelDataSourceStrategy {
16
+ readonly dbType: 'DYNAMODB';
17
+ readonly provisionStrategy: 'IMPORTED_AMPLIFY_TABLE';
18
+ readonly tableName: string;
19
+ }
15
20
  export interface SQLLambdaModelDataSourceStrategy extends ModelDataSourceStrategyBase {
16
21
  readonly name: string;
17
22
  readonly dbType: ModelDataSourceStrategySqlDbType;
@@ -32,8 +37,14 @@ export interface SubnetAvailabilityZone {
32
37
  readonly availabilityZone: string;
33
38
  }
34
39
  export type SqlModelDataSourceDbConnectionConfig = SqlModelDataSourceSecretsManagerDbConnectionConfig | SqlModelDataSourceSsmDbConnectionConfig | SqlModelDataSourceSsmDbConnectionStringConfig;
40
+ export interface SslCertConfig {
41
+ }
42
+ export interface SslCertSsmPathConfig extends SslCertConfig {
43
+ readonly ssmPath: string | string[];
44
+ }
35
45
  export interface SqlModelDataSourceSsmDbConnectionStringConfig {
36
46
  readonly connectionUriSsmPath: string | string[];
47
+ readonly sslCertConfig?: SslCertConfig;
37
48
  }
38
49
  export interface SqlModelDataSourceSecretsManagerDbConnectionConfig {
39
50
  readonly secretArn: string;
@@ -41,6 +52,7 @@ export interface SqlModelDataSourceSecretsManagerDbConnectionConfig {
41
52
  readonly port: number;
42
53
  readonly databaseName: string;
43
54
  readonly hostname: string;
55
+ readonly sslCertConfig?: SslCertConfig;
44
56
  }
45
57
  export interface SqlModelDataSourceSsmDbConnectionConfig {
46
58
  readonly hostnameSsmPath: string;
@@ -48,6 +60,7 @@ export interface SqlModelDataSourceSsmDbConnectionConfig {
48
60
  readonly usernameSsmPath: string;
49
61
  readonly passwordSsmPath: string;
50
62
  readonly databaseNameSsmPath: string;
63
+ readonly sslCertConfig?: SslCertConfig;
51
64
  }
52
65
  export interface SqlDirectiveDataSourceStrategy {
53
66
  readonly typeName: 'Query' | 'Mutation';
@@ -79,4 +92,5 @@ export declare const isSqlModelDataSourceDbConnectionConfig: (obj: any) => obj i
79
92
  export declare const isSqlModelDataSourceSsmDbConnectionConfig: (obj: any) => obj is SqlModelDataSourceSsmDbConnectionConfig;
80
93
  export declare const isSqlModelDataSourceSecretsManagerDbConnectionConfig: (obj: any) => obj is SqlModelDataSourceSecretsManagerDbConnectionConfig;
81
94
  export declare const isSqlModelDataSourceSsmDbConnectionStringConfig: (obj: any) => obj is SqlModelDataSourceSsmDbConnectionStringConfig;
95
+ export declare const isSslCertSsmPathConfig: (obj: any) => obj is SslCertSsmPathConfig;
82
96
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/model-datasource/types.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,uBAAuB,GAC/B,sCAAsC,GACtC,sCAAsC,GACtC,gCAAgC,CAAC;AAErC,MAAM,WAAW,2BAA2B;IAC1C,MAAM,EAAE,6BAA6B,CAAC;CACvC;AAKD,MAAM,MAAM,6BAA6B,GAAG,UAAU,GAAG,gCAAgC,CAAC;AAK1F,MAAM,MAAM,gCAAgC,GAAG,OAAO,GAAG,UAAU,CAAC;AAKpE,MAAM,WAAW,sCAAuC,SAAQ,2BAA2B;IACzF,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,iBAAiB,EAAE,SAAS,CAAC;CACvC;AAKD,MAAM,WAAW,sCAAuC,SAAQ,2BAA2B;IACzF,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,iBAAiB,EAAE,eAAe,CAAC;CAC7C;AAQD,MAAM,WAAW,gCAAiC,SAAQ,2BAA2B;IAKnF,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAKtB,QAAQ,CAAC,MAAM,EAAE,gCAAgC,CAAC;IAKlD,QAAQ,CAAC,kBAAkB,EAAE,oCAAoC,CAAC;IAKlE,QAAQ,CAAC,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAKtC,QAAQ,CAAC,qCAAqC,CAAC,EAAE,4BAA4B,CAAC;CAC/E;AASD,MAAM,WAAW,SAAS;IAExB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAGvB,QAAQ,CAAC,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAGpC,QAAQ,CAAC,4BAA4B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D,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG;QACtB,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;CACH;AAMD,MAAM,WAAW,uBAAuB;IACtC,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC;AAMD,MAAM,WAAW,0BAA0B;IACzC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;CACzC;AAOD,eAAO,MAAM,sCAAsC,QAAS,GAAG,gDAE9D,CAAC;AAOF,eAAO,MAAM,yCAAyC,QAAS,GAAG,mDASjE,CAAC;AAOF,eAAO,MAAM,oDAAoD,QAC1D,GAAG,8DAST,CAAC;AAOF,eAAO,MAAM,+CAA+C,QAAS,GAAG,yDAKvE,CAAC;AAEF,eAAO,MAAM,sBAAsB,QAAS,GAAG,gCACwE,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isSqlModelDataSourceSsmDbConnectionStringConfig = exports.isSqlModelDataSourceSecretsManagerDbConnectionConfig = exports.isSqlModelDataSourceSsmDbConnectionConfig = exports.isSqlModelDataSourceDbConnectionConfig = void 0;
3
+ exports.isSslCertSsmPathConfig = exports.isSqlModelDataSourceSsmDbConnectionStringConfig = exports.isSqlModelDataSourceSecretsManagerDbConnectionConfig = exports.isSqlModelDataSourceSsmDbConnectionConfig = exports.isSqlModelDataSourceDbConnectionConfig = void 0;
4
4
  const isSqlModelDataSourceDbConnectionConfig = (obj) => {
5
5
  return (0, exports.isSqlModelDataSourceSsmDbConnectionConfig)(obj) || (0, exports.isSqlModelDataSourceSecretsManagerDbConnectionConfig)(obj);
6
6
  };
@@ -27,4 +27,6 @@ const isSqlModelDataSourceSsmDbConnectionStringConfig = (obj) => {
27
27
  (typeof obj.connectionUriSsmPath === 'string' || Array.isArray(obj.connectionUriSsmPath)));
28
28
  };
29
29
  exports.isSqlModelDataSourceSsmDbConnectionStringConfig = isSqlModelDataSourceSsmDbConnectionStringConfig;
30
+ const isSslCertSsmPathConfig = (obj) => obj && typeof obj === 'object' && 'ssmPath' in obj && (Array.isArray(obj.ssmPath) || typeof obj.ssmPath === 'string');
31
+ exports.isSslCertSsmPathConfig = isSslCertSsmPathConfig;
30
32
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/model-datasource/types.ts"],"names":[],"mappings":";;;AAuQO,MAAM,sCAAsC,GAAG,CAAC,GAAQ,EAA+C,EAAE;IAC9G,OAAO,IAAA,iDAAyC,EAAC,GAAG,CAAC,IAAI,IAAA,4DAAoD,EAAC,GAAG,CAAC,CAAC;AACrH,CAAC,CAAC;AAFW,QAAA,sCAAsC,0CAEjD;AAOK,MAAM,yCAAyC,GAAG,CAAC,GAAQ,EAAkD,EAAE;IACpH,OAAO,CACL,CAAC,OAAO,GAAG,KAAK,QAAQ,IAAI,OAAO,GAAG,KAAK,UAAU,CAAC;QACtD,OAAO,GAAG,CAAC,eAAe,KAAK,QAAQ;QACvC,OAAO,GAAG,CAAC,WAAW,KAAK,QAAQ;QACnC,OAAO,GAAG,CAAC,eAAe,KAAK,QAAQ;QACvC,OAAO,GAAG,CAAC,eAAe,KAAK,QAAQ;QACvC,OAAO,GAAG,CAAC,mBAAmB,KAAK,QAAQ,CAC5C,CAAC;AACJ,CAAC,CAAC;AATW,QAAA,yCAAyC,6CASpD;AAOK,MAAM,oDAAoD,GAAG,CAClE,GAAQ,EACmD,EAAE;IAC7D,OAAO,CACL,CAAC,OAAO,GAAG,KAAK,QAAQ,IAAI,OAAO,GAAG,KAAK,UAAU,CAAC;QACtD,OAAO,GAAG,CAAC,SAAS,KAAK,QAAQ;QACjC,OAAO,GAAG,CAAC,IAAI,KAAK,QAAQ;QAC5B,OAAO,GAAG,CAAC,YAAY,KAAK,QAAQ;QACpC,OAAO,GAAG,CAAC,QAAQ,KAAK,QAAQ,CACjC,CAAC;AACJ,CAAC,CAAC;AAVW,QAAA,oD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5B,OAAO,GAAG,CAAC,YAAY,KAAK,QAAQ;QACpC,OAAO,GAAG,CAAC,QAAQ,KAAK,QAAQ,CACjC,CAAC;AACJ,CAAC,CAAC;AAVW,QAAA,oDAAoD,wDAU/D;AAOK,MAAM,+CAA+C,GAAG,CAAC,GAAQ,EAAwD,EAAE;IAChI,OAAO,CACL,CAAC,OAAO,GAAG,KAAK,QAAQ,IAAI,OAAO,GAAG,KAAK,UAAU,CAAC;QACtD,CAAC,OAAO,GAAG,CAAC,oBAAoB,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC,CAC1F,CAAC;AACJ,CAAC,CAAC;AALW,QAAA,+CAA+C,mDAK1D;AAEK,MAAM,sBAAsB,GAAG,CAAC,GAAQ,EAA+B,EAAE,CAC9E,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,SAAS,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,OAAO,GAAG,CAAC,OAAO,KAAK,QAAQ,CAAC,CAAC;AAD3G,QAAA,sBAAsB,0BACqF"}
@@ -13,5 +13,6 @@ export type TransformParameters = {
13
13
  enableAutoIndexQueryNames: boolean;
14
14
  respectPrimaryKeyAttributesOnConnectionField: boolean;
15
15
  enableSearchNodeToNodeEncryption: boolean;
16
+ enableGen2Migration: boolean;
16
17
  };
17
18
  //# sourceMappingURL=transform-parameters.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transform-parameters.d.ts","sourceRoot":"","sources":["../../src/transformer-context/transform-parameters.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,mBAAmB,GAAG;IAEhC,2BAA2B,EAAE,OAAO,CAAC;IAGrC,sCAAsC,EAAE,OAAO,CAAC;IAChD,uBAAuB,EAAE,OAAO,CAAC;IACjC,kBAAkB,EAAE,OAAO,CAAC;IAC5B,oCAAoC,EAAE,OAAO,CAAC;IAC9C,yBAAyB,EAAE,OAAO,CAAC;IAGnC,qCAAqC,EAAE,OAAO,CAAC;IAC/C,oCAAoC,EAAE,OAAO,CAAC;IAC9C,wBAAwB,EAAE,OAAO,CAAC;IAClC,+BAA+B,EAAE,OAAO,CAAC;IAGzC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,yBAAyB,EAAE,OAAO,CAAC;IAGnC,4CAA4C,EAAE,OAAO,CAAC;IAGtD,gCAAgC,EAAE,OAAO,CAAC;CAC3C,CAAC"}
1
+ {"version":3,"file":"transform-parameters.d.ts","sourceRoot":"","sources":["../../src/transformer-context/transform-parameters.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,mBAAmB,GAAG;IAEhC,2BAA2B,EAAE,OAAO,CAAC;IAGrC,sCAAsC,EAAE,OAAO,CAAC;IAChD,uBAAuB,EAAE,OAAO,CAAC;IACjC,kBAAkB,EAAE,OAAO,CAAC;IAC5B,oCAAoC,EAAE,OAAO,CAAC;IAC9C,yBAAyB,EAAE,OAAO,CAAC;IAGnC,qCAAqC,EAAE,OAAO,CAAC;IAC/C,oCAAoC,EAAE,OAAO,CAAC;IAC9C,wBAAwB,EAAE,OAAO,CAAC;IAClC,+BAA+B,EAAE,OAAO,CAAC;IAGzC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,yBAAyB,EAAE,OAAO,CAAC;IAGnC,4CAA4C,EAAE,OAAO,CAAC;IAGtD,gCAAgC,EAAE,OAAO,CAAC;IAG1C,mBAAmB,EAAE,OAAO,CAAC;CAC9B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/graphql-transformer-interfaces",
3
- "version": "3.9.0",
3
+ "version": "3.11.0-gen2-migration.0",
4
4
  "description": "Amplify GraphQL transformer interface definitions",
5
5
  "repository": {
6
6
  "type": "git",
@@ -60,5 +60,5 @@
60
60
  "/__tests__/"
61
61
  ]
62
62
  },
63
- "gitHead": "eb2582338abd3e8337cad283b2cb973af1d4f5fd"
63
+ "gitHead": "95431091fe3a13ae97a1f57a0bffb23f49c7e569"
64
64
  }
@@ -9,6 +9,7 @@
9
9
  export type ModelDataSourceStrategy =
10
10
  | DefaultDynamoDbModelDataSourceStrategy
11
11
  | AmplifyDynamoDbModelDataSourceStrategy
12
+ | ImportedAmplifyDynamoDbModelDataSourceStrategy
12
13
  | SQLLambdaModelDataSourceStrategy;
13
14
 
14
15
  export interface ModelDataSourceStrategyBase {
@@ -41,6 +42,15 @@ export interface AmplifyDynamoDbModelDataSourceStrategy extends ModelDataSourceS
41
42
  readonly provisionStrategy: 'AMPLIFY_TABLE';
42
43
  }
43
44
 
45
+ /**
46
+ * Use custom resource type 'Custom::ImportedAmplifyDynamoDBTable' to provision table.
47
+ */
48
+ export interface ImportedAmplifyDynamoDbModelDataSourceStrategy {
49
+ readonly dbType: 'DYNAMODB';
50
+ readonly provisionStrategy: 'IMPORTED_AMPLIFY_TABLE';
51
+ readonly tableName: string;
52
+ }
53
+
44
54
  /**
45
55
  * A strategy that creates a Lambda to connect to a pre-existing SQL table to resolve model data.
46
56
  *
@@ -124,6 +134,28 @@ export type SqlModelDataSourceDbConnectionConfig =
124
134
  | SqlModelDataSourceSsmDbConnectionConfig
125
135
  | SqlModelDataSourceSsmDbConnectionStringConfig;
126
136
 
137
+ /**
138
+ * Marker interface. Although we can't declare it in the actual interface definition because it results in invalid C#, each conforming type
139
+ * must have a `configType: string` field to allow for discriminated union behavior.
140
+ */
141
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
142
+ export interface SslCertConfig {}
143
+
144
+ export interface SslCertSsmPathConfig extends SslCertConfig {
145
+ /**
146
+ * The SSM path to a custom SSL certificate to use instead of the default. Amplify resolves the trust store to use as follows:
147
+ * - If the `ssmPath` parameter is provided, use it.
148
+ * - If the parameter is a single string, use it.
149
+ * - If the parameter is an array, iterate over them in order
150
+ * - In either case, if the parameter is provided but the certificate content isn't retrievable, fails with an error.
151
+ * - If the database host is an RDS cluster, instance, or proxy (in other words, if the database host ends with "rds.amazonaws.com"), use
152
+ * an RDS-specific trust store vended by AWS. See
153
+ * https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html#UsingWithRDS.SSL.CertificatesAllRegions
154
+ * - Otherwise, use the trust store vended with the NodeJS runtime version that the SQL lambda is running on
155
+ */
156
+ readonly ssmPath: string | string[];
157
+ }
158
+
127
159
  /**
128
160
  * The configuration option to use a Secure Systems Manager parameter to store the connection string to the database.
129
161
  * @experimental
@@ -131,6 +163,11 @@ export type SqlModelDataSourceDbConnectionConfig =
131
163
  export interface SqlModelDataSourceSsmDbConnectionStringConfig {
132
164
  /** The SSM Path to the secure connection string used for connecting to the database. **/
133
165
  readonly connectionUriSsmPath: string | string[];
166
+
167
+ /**
168
+ * An optional configuration for a custom SSL certificate authority to use when connecting to the database.
169
+ */
170
+ readonly sslCertConfig?: SslCertConfig;
134
171
  }
135
172
 
136
173
  /*
@@ -143,7 +180,10 @@ export interface SqlModelDataSourceSecretsManagerDbConnectionConfig {
143
180
  /** The arn of the managed secret with username, password, and hostname to use when connecting to the database. **/
144
181
  readonly secretArn: string;
145
182
 
146
- /** 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. **/
183
+ /**
184
+ * The ARN of the customer managed encryption key for the secret. If not supplied, the secret is expected to be encrypted with the default
185
+ * AWS-managed key.
186
+ **/
147
187
  readonly keyArn?: string;
148
188
 
149
189
  /** port number of the database proxy, cluster, or instance. */
@@ -154,6 +194,11 @@ export interface SqlModelDataSourceSecretsManagerDbConnectionConfig {
154
194
 
155
195
  /** The hostname of the database. */
156
196
  readonly hostname: string;
197
+
198
+ /**
199
+ * An optional configuration for a custom SSL certificate authority to use when connecting to the database.
200
+ */
201
+ readonly sslCertConfig?: SslCertConfig;
157
202
  }
158
203
 
159
204
  /**
@@ -179,6 +224,11 @@ export interface SqlModelDataSourceSsmDbConnectionConfig {
179
224
 
180
225
  /** The Secure Systems Manager parameter containing the database name. */
181
226
  readonly databaseNameSsmPath: string;
227
+
228
+ /**
229
+ * An optional configuration for a custom SSL certificate authority to use when connecting to the database.
230
+ */
231
+ readonly sslCertConfig?: SslCertConfig;
182
232
  }
183
233
 
184
234
  /**
@@ -309,3 +359,6 @@ export const isSqlModelDataSourceSsmDbConnectionStringConfig = (obj: any): obj i
309
359
  (typeof obj.connectionUriSsmPath === 'string' || Array.isArray(obj.connectionUriSsmPath))
310
360
  );
311
361
  };
362
+
363
+ export const isSslCertSsmPathConfig = (obj: any): obj is SslCertSsmPathConfig =>
364
+ obj && typeof obj === 'object' && 'ssmPath' in obj && (Array.isArray(obj.ssmPath) || typeof obj.ssmPath === 'string');
@@ -30,4 +30,7 @@ export type TransformParameters = {
30
30
 
31
31
  // Search Params
32
32
  enableSearchNodeToNodeEncryption: boolean;
33
+
34
+ // Migration
35
+ enableGen2Migration: boolean;
33
36
  };