@aws-amplify/graphql-api-construct 1.5.7-implicit-fields.0 → 1.6.0-secrets-manager.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.jsii +147 -36
- package/API.md +13 -1
- package/CHANGELOG.md +3 -5
- package/README.md +75 -17
- package/lib/amplify-dynamodb-table-wrapper.js +1 -1
- package/lib/amplify-graphql-api.js +1 -1
- package/lib/amplify-graphql-definition.js +1 -1
- package/lib/internal/data-source-config.js +37 -4
- package/lib/model-datasource-strategy-types.d.ts +25 -1
- package/lib/model-datasource-strategy-types.js +1 -1
- package/lib/sql-model-datasource-strategy.d.ts +13 -1
- package/lib/sql-model-datasource-strategy.js +26 -4
- package/node_modules/@aws-amplify/graphql-auth-transformer/CHANGELOG.md +1 -12
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js +1 -32
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/package.json +14 -20
- package/node_modules/@aws-amplify/graphql-default-value-transformer/CHANGELOG.md +1 -7
- package/node_modules/@aws-amplify/graphql-default-value-transformer/package.json +9 -15
- package/node_modules/@aws-amplify/graphql-function-transformer/CHANGELOG.md +1 -5
- package/node_modules/@aws-amplify/graphql-function-transformer/package.json +8 -14
- package/node_modules/@aws-amplify/graphql-http-transformer/CHANGELOG.md +1 -5
- package/node_modules/@aws-amplify/graphql-http-transformer/package.json +8 -14
- package/node_modules/@aws-amplify/graphql-index-transformer/CHANGELOG.md +1 -5
- package/node_modules/@aws-amplify/graphql-index-transformer/package.json +9 -15
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/CHANGELOG.md +1 -5
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/assets/mapping-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/package.json +14 -16
- package/node_modules/@aws-amplify/graphql-model-transformer/CHANGELOG.md +3 -11
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.js +5 -5
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-types/common.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-types/common.js +0 -15
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-types/common.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-notification-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-patching-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.d.ts +5 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.js +71 -26
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/rds-model-resource-generator.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/rds-model-resource-generator.js +21 -7
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/rds-model-resource-generator.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/package.json +11 -17
- package/node_modules/@aws-amplify/graphql-predictions-transformer/CHANGELOG.md +1 -5
- package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/predictionsLambdaFunction.zip +0 -0
- package/node_modules/@aws-amplify/graphql-predictions-transformer/package.json +8 -14
- package/node_modules/@aws-amplify/graphql-relational-transformer/CHANGELOG.md +1 -11
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/schema.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/schema.js +0 -10
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/schema.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/package.json +11 -17
- package/node_modules/@aws-amplify/graphql-searchable-transformer/CHANGELOG.md +1 -7
- package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/streaming-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-searchable-transformer/package.json +9 -15
- package/node_modules/@aws-amplify/graphql-sql-transformer/CHANGELOG.md +1 -5
- package/node_modules/@aws-amplify/graphql-sql-transformer/package.json +10 -16
- package/node_modules/@aws-amplify/graphql-transformer/CHANGELOG.md +3 -5
- package/node_modules/@aws-amplify/graphql-transformer/package.json +17 -23
- package/node_modules/@aws-amplify/graphql-transformer-core/API.md +0 -12
- package/node_modules/@aws-amplify/graphql-transformer-core/CHANGELOG.md +1 -11
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js +2 -6
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/output.d.ts +0 -2
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/output.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/output.js +0 -14
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/output.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/index.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/index.js +1 -5
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-util.d.ts +0 -4
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-util.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-util.js +1 -18
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-util.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/package.json +8 -14
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/API.md +27 -5
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/CHANGELOG.md +2 -2
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.d.ts +12 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.js +22 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/transformer-context-output-provider.d.ts +0 -2
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/transformer-context-output-provider.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/package.json +2 -8
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/model-datasource/types.ts +76 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/transformer-context/transformer-context-output-provider.ts +0 -4
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/tsconfig.tsbuildinfo +1 -1
- package/node_modules/graphql-mapping-template/CHANGELOG.md +0 -4
- package/node_modules/graphql-mapping-template/package.json +5 -12
- package/node_modules/graphql-transformer-common/API.md +0 -14
- package/node_modules/graphql-transformer-common/CHANGELOG.md +0 -10
- package/node_modules/graphql-transformer-common/lib/index.d.ts +0 -1
- package/node_modules/graphql-transformer-common/lib/index.d.ts.map +1 -1
- package/node_modules/graphql-transformer-common/lib/index.js +0 -1
- package/node_modules/graphql-transformer-common/lib/index.js.map +1 -1
- package/node_modules/graphql-transformer-common/package.json +6 -13
- package/package.json +21 -27
- package/src/internal/data-source-config.ts +42 -9
- package/src/model-datasource-strategy-types.ts +33 -1
- package/src/sql-model-datasource-strategy.ts +32 -1
- package/node_modules/graphql-mapping-template/LICENSE +0 -201
- package/node_modules/graphql-transformer-common/LICENSE +0 -201
- package/node_modules/graphql-transformer-common/lib/TypescriptSchemaConstants.d.ts +0 -13
- package/node_modules/graphql-transformer-common/lib/TypescriptSchemaConstants.d.ts.map +0 -1
- package/node_modules/graphql-transformer-common/lib/TypescriptSchemaConstants.js +0 -16
- package/node_modules/graphql-transformer-common/lib/TypescriptSchemaConstants.js.map +0 -1
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-transformer-core",
|
3
|
-
"version": "2.5
|
3
|
+
"version": "2.4.5-secrets-manager.0",
|
4
4
|
"description": "A framework to transform from GraphQL SDL to AWS CloudFormation.",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -28,10 +28,10 @@
|
|
28
28
|
"extract-api": "ts-node ../../scripts/extract-api.ts"
|
29
29
|
},
|
30
30
|
"dependencies": {
|
31
|
-
"@aws-amplify/graphql-transformer-interfaces": "3.4.0-
|
31
|
+
"@aws-amplify/graphql-transformer-interfaces": "3.4.0-secrets-manager.0",
|
32
32
|
"fs-extra": "^8.1.0",
|
33
33
|
"graphql": "^15.5.0",
|
34
|
-
"graphql-transformer-common": "4.
|
34
|
+
"graphql-transformer-common": "4.27.1",
|
35
35
|
"hjson": "^3.2.2",
|
36
36
|
"lodash": "^4.17.21",
|
37
37
|
"md5": "^2.3.0",
|
@@ -68,22 +68,16 @@
|
|
68
68
|
"coverageProvider": "v8",
|
69
69
|
"coverageThreshold": {
|
70
70
|
"global": {
|
71
|
-
"branches":
|
72
|
-
"functions":
|
73
|
-
"lines":
|
71
|
+
"branches": 69,
|
72
|
+
"functions": 31,
|
73
|
+
"lines": 56
|
74
74
|
}
|
75
75
|
},
|
76
76
|
"coverageReporters": [
|
77
77
|
"clover",
|
78
78
|
"text"
|
79
79
|
],
|
80
|
-
"testEnvironment": "../../FixJestEnvironment.js"
|
81
|
-
"collectCoverageFrom": [
|
82
|
-
"src/**/*.ts"
|
83
|
-
],
|
84
|
-
"coveragePathIgnorePatterns": [
|
85
|
-
"/__tests__/"
|
86
|
-
]
|
80
|
+
"testEnvironment": "../../FixJestEnvironment.js"
|
87
81
|
},
|
88
|
-
"gitHead": "
|
82
|
+
"gitHead": "1b45d39e2064522f7bce51bd8bf5135742d4ce14"
|
89
83
|
}
|
@@ -222,6 +222,15 @@ export interface InlineMappingTemplateProvider {
|
|
222
222
|
type: MappingTemplateType.INLINE;
|
223
223
|
}
|
224
224
|
|
225
|
+
// @public (undocumented)
|
226
|
+
export const isSqlModelDataSourceDbConnectionConfig: (obj: any) => obj is SqlModelDataSourceDbConnectionConfig;
|
227
|
+
|
228
|
+
// @public (undocumented)
|
229
|
+
export const isSqlModelDataSourceSecretsManagerDbConnectionConfig: (obj: any) => obj is SqlModelDataSourceSecretsManagerDbConnectionConfig;
|
230
|
+
|
231
|
+
// @public (undocumented)
|
232
|
+
export const isSqlModelDataSourceSsmDbConnectionConfig: (obj: any) => obj is SqlModelDataSourceSsmDbConnectionConfig;
|
233
|
+
|
225
234
|
// @public (undocumented)
|
226
235
|
export type MappingTemplateProvider = InlineMappingTemplateProvider | S3MappingTemplateProvider;
|
227
236
|
|
@@ -372,7 +381,24 @@ export interface SQLLambdaModelDataSourceStrategy extends ModelDataSourceStrateg
|
|
372
381
|
}
|
373
382
|
|
374
383
|
// @public (undocumented)
|
375
|
-
export
|
384
|
+
export type SqlModelDataSourceDbConnectionConfig = SqlModelDataSourceSecretsManagerDbConnectionConfig | SqlModelDataSourceSsmDbConnectionConfig;
|
385
|
+
|
386
|
+
// @public (undocumented)
|
387
|
+
export interface SqlModelDataSourceSecretsManagerDbConnectionConfig {
|
388
|
+
// (undocumented)
|
389
|
+
readonly databaseName: string;
|
390
|
+
// (undocumented)
|
391
|
+
readonly hostname: string;
|
392
|
+
// (undocumented)
|
393
|
+
readonly keyArn?: string;
|
394
|
+
// (undocumented)
|
395
|
+
readonly port: number;
|
396
|
+
// (undocumented)
|
397
|
+
readonly secretArn: string;
|
398
|
+
}
|
399
|
+
|
400
|
+
// @public (undocumented)
|
401
|
+
export interface SqlModelDataSourceSsmDbConnectionConfig {
|
376
402
|
// (undocumented)
|
377
403
|
readonly databaseNameSsmPath: string;
|
378
404
|
// (undocumented)
|
@@ -477,8 +503,6 @@ export interface TransformerContextOutputProvider {
|
|
477
503
|
// (undocumented)
|
478
504
|
addUnionExtension(obj: UnionTypeExtensionNode): void;
|
479
505
|
// (undocumented)
|
480
|
-
getInput(name: string): InputObjectTypeDefinitionNode | undefined;
|
481
|
-
// (undocumented)
|
482
506
|
getMutation(): ObjectTypeDefinitionNode | undefined;
|
483
507
|
// (undocumented)
|
484
508
|
getMutationTypeName(): string | undefined;
|
@@ -505,8 +529,6 @@ export interface TransformerContextOutputProvider {
|
|
505
529
|
// (undocumented)
|
506
530
|
putType(obj: TypeDefinitionNode): void;
|
507
531
|
// (undocumented)
|
508
|
-
updateInput(obj: InputObjectTypeDefinitionNode): void;
|
509
|
-
// (undocumented)
|
510
532
|
updateObject(obj: ObjectTypeDefinitionNode): void;
|
511
533
|
}
|
512
534
|
|
@@ -3,11 +3,11 @@
|
|
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.4.0-
|
6
|
+
# [3.4.0-secrets-manager.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@3.3.3...@aws-amplify/graphql-transformer-interfaces@3.4.0-secrets-manager.0) (2024-02-21)
|
7
7
|
|
8
8
|
### Features
|
9
9
|
|
10
|
-
- add
|
10
|
+
- add secrets manager support for sql lambda auth ([#2103](https://github.com/aws-amplify/amplify-category-api/issues/2103)) ([fde423b](https://github.com/aws-amplify/amplify-category-api/commit/fde423bba09403c6bfd6788cc63546d629d756b6))
|
11
11
|
|
12
12
|
## [3.3.3](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@3.3.2...@aws-amplify/graphql-transformer-interfaces@3.3.3) (2023-12-18)
|
13
13
|
|
package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.d.ts
CHANGED
@@ -31,7 +31,15 @@ export interface SubnetAvailabilityZone {
|
|
31
31
|
readonly subnetId: string;
|
32
32
|
readonly availabilityZone: string;
|
33
33
|
}
|
34
|
-
export
|
34
|
+
export type SqlModelDataSourceDbConnectionConfig = SqlModelDataSourceSecretsManagerDbConnectionConfig | SqlModelDataSourceSsmDbConnectionConfig;
|
35
|
+
export interface SqlModelDataSourceSecretsManagerDbConnectionConfig {
|
36
|
+
readonly secretArn: string;
|
37
|
+
readonly keyArn?: string;
|
38
|
+
readonly port: number;
|
39
|
+
readonly databaseName: string;
|
40
|
+
readonly hostname: string;
|
41
|
+
}
|
42
|
+
export interface SqlModelDataSourceSsmDbConnectionConfig {
|
35
43
|
readonly hostnameSsmPath: string;
|
36
44
|
readonly portSsmPath: string;
|
37
45
|
readonly usernameSsmPath: string;
|
@@ -56,4 +64,7 @@ export interface RDSLayerMapping {
|
|
56
64
|
export interface RDSLayerMappingProvider {
|
57
65
|
rdsLayerMapping?: RDSLayerMapping;
|
58
66
|
}
|
67
|
+
export declare const isSqlModelDataSourceDbConnectionConfig: (obj: any) => obj is SqlModelDataSourceDbConnectionConfig;
|
68
|
+
export declare const isSqlModelDataSourceSsmDbConnectionConfig: (obj: any) => obj is SqlModelDataSourceSsmDbConnectionConfig;
|
69
|
+
export declare const isSqlModelDataSourceSecretsManagerDbConnectionConfig: (obj: any) => obj is SqlModelDataSourceSecretsManagerDbConnectionConfig;
|
59
70
|
//# sourceMappingURL=types.d.ts.map
|
package/node_modules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W,eAAe;IAC9B,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG;QACtB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;CACH;AAMD,MAAM,WAAW,uBAAuB;IACtC,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC;AAOD,eAAO,MAAM,sCAAsC,QAAS,GAAG,gDAE9D,CAAC;AAOF,eAAO,MAAM,yCAAyC,QAAS,GAAG,mDASjE,CAAC;AAOF,eAAO,MAAM,oDAAoD,QAC1D,GAAG,8DAST,CAAC"}
|
package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.js
CHANGED
@@ -1,3 +1,25 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isSqlModelDataSourceSecretsManagerDbConnectionConfig = exports.isSqlModelDataSourceSsmDbConnectionConfig = exports.isSqlModelDataSourceDbConnectionConfig = void 0;
|
4
|
+
const isSqlModelDataSourceDbConnectionConfig = (obj) => {
|
5
|
+
return (0, exports.isSqlModelDataSourceSsmDbConnectionConfig)(obj) || (0, exports.isSqlModelDataSourceSecretsManagerDbConnectionConfig)(obj);
|
6
|
+
};
|
7
|
+
exports.isSqlModelDataSourceDbConnectionConfig = isSqlModelDataSourceDbConnectionConfig;
|
8
|
+
const isSqlModelDataSourceSsmDbConnectionConfig = (obj) => {
|
9
|
+
return ((typeof obj === 'object' || typeof obj === 'function') &&
|
10
|
+
typeof obj.hostnameSsmPath === 'string' &&
|
11
|
+
typeof obj.portSsmPath === 'string' &&
|
12
|
+
typeof obj.usernameSsmPath === 'string' &&
|
13
|
+
typeof obj.passwordSsmPath === 'string' &&
|
14
|
+
typeof obj.databaseNameSsmPath === 'string');
|
15
|
+
};
|
16
|
+
exports.isSqlModelDataSourceSsmDbConnectionConfig = isSqlModelDataSourceSsmDbConnectionConfig;
|
17
|
+
const isSqlModelDataSourceSecretsManagerDbConnectionConfig = (obj) => {
|
18
|
+
return ((typeof obj === 'object' || typeof obj === 'function') &&
|
19
|
+
typeof obj.secretArn === 'string' &&
|
20
|
+
typeof obj.port === 'number' &&
|
21
|
+
typeof obj.databaseName === 'string' &&
|
22
|
+
typeof obj.hostname === 'string');
|
23
|
+
};
|
24
|
+
exports.isSqlModelDataSourceSecretsManagerDbConnectionConfig = isSqlModelDataSourceSecretsManagerDbConnectionConfig;
|
3
25
|
//# sourceMappingURL=types.js.map
|
package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/model-datasource/types.ts"],"names":[],"mappings":""}
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/model-datasource/types.ts"],"names":[],"mappings":";;;AA0OO,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,oDAAoD,wDAU/D"}
|
@@ -26,8 +26,6 @@ export interface TransformerContextOutputProvider {
|
|
26
26
|
addUnionExtension(obj: UnionTypeExtensionNode): void;
|
27
27
|
addEnumExtension(obj: EnumTypeExtensionNode): void;
|
28
28
|
addInput(inp: InputObjectTypeDefinitionNode): void;
|
29
|
-
updateInput(obj: InputObjectTypeDefinitionNode): void;
|
30
|
-
getInput(name: string): InputObjectTypeDefinitionNode | undefined;
|
31
29
|
addEnum(en: EnumTypeDefinitionNode): void;
|
32
30
|
}
|
33
31
|
//# sourceMappingURL=transformer-context-output-provider.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"transformer-context-output-provider.d.ts","sourceRoot":"","sources":["../../src/transformer-context/transformer-context-output-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,mBAAmB,EACnB,uBAAuB,EACvB,4BAA4B,EAC5B,0BAA0B,EAC1B,sBAAsB,EACtB,qBAAqB,EACrB,6BAA6B,EAC7B,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,gCAAgC;IAM/C,wBAAwB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,kBAAkB,EAAE,CAAC;IAOjE,SAAS,EAAE,CAAC,GAAG,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAQ/C,SAAS,EAAE,MAAM,oBAAoB,CAAC;IAEtC,gBAAgB,EAAE,MAAM,MAAM,GAAG,SAAS,CAAC;IAE3C,QAAQ,IAAI,wBAAwB,GAAG,SAAS,C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1
|
+
{"version":3,"file":"transformer-context-output-provider.d.ts","sourceRoot":"","sources":["../../src/transformer-context/transformer-context-output-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,mBAAmB,EACnB,uBAAuB,EACvB,4BAA4B,EAC5B,0BAA0B,EAC1B,sBAAsB,EACtB,qBAAqB,EACrB,6BAA6B,EAC7B,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,gCAAgC;IAM/C,wBAAwB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,kBAAkB,EAAE,CAAC;IAOjE,SAAS,EAAE,CAAC,GAAG,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAQ/C,SAAS,EAAE,MAAM,oBAAoB,CAAC;IAEtC,gBAAgB,EAAE,MAAM,MAAM,GAAG,SAAS,CAAC;IAE3C,QAAQ,IAAI,wBAAwB,GAAG,SAAS,CAAC;IAEjD,mBAAmB,IAAI,MAAM,GAAG,SAAS,CAAC;IAE1C,WAAW,IAAI,wBAAwB,GAAG,SAAS,CAAC;IAEpD,uBAAuB,IAAI,MAAM,GAAG,SAAS,CAAC;IAE9C,eAAe,IAAI,wBAAwB,GAAG,SAAS,CAAC;IAMxD,OAAO,CAAC,GAAG,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAEvC,OAAO,CAAC,GAAG,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAEvC,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,wBAAwB,GAAG,SAAS,CAAC;IAE5D,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IAO/B,SAAS,CAAC,GAAG,EAAE,wBAAwB,GAAG,IAAI,CAAC;IAE/C,YAAY,CAAC,GAAG,EAAE,wBAAwB,GAAG,IAAI,CAAC;IAElD,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,wBAAwB,GAAG,SAAS,CAAC;IAO9D,QAAQ,CAAC,GAAG,EAAE,uBAAuB,GAAG,IAAI,CAAC;IAQ7C,cAAc,CAAC,MAAM,EAAE,mBAAmB,EAAE,GAAG,IAAI,CAAC;IAQpD,iBAAiB,CAAC,MAAM,EAAE,mBAAmB,EAAE,GAAG,IAAI,CAAC;IAQvD,qBAAqB,CAAC,MAAM,EAAE,mBAAmB,EAAE,GAAG,IAAI,CAAC;IAO3D,kBAAkB,CAAC,GAAG,EAAE,uBAAuB,GAAG,IAAI,CAAC;IAOvD,iBAAiB,CAAC,GAAG,EAAE,4BAA4B,GAAG,IAAI,CAAC;IAO3D,qBAAqB,CAAC,GAAG,EAAE,0BAA0B,GAAG,IAAI,CAAC;IAO7D,iBAAiB,CAAC,GAAG,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAOrD,gBAAgB,CAAC,GAAG,EAAE,qBAAqB,GAAG,IAAI,CAAC;IAMnD,QAAQ,CAAC,GAAG,EAAE,6BAA6B,GAAG,IAAI,CAAC;IAMnD,OAAO,CAAC,EAAE,EAAE,sBAAsB,GAAG,IAAI,CAAC;CAC3C"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-transformer-interfaces",
|
3
|
-
"version": "3.4.0-
|
3
|
+
"version": "3.4.0-secrets-manager.0",
|
4
4
|
"description": "Amplify GraphQL transformer interface definitions",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -52,13 +52,7 @@
|
|
52
52
|
"coverageReporters": [
|
53
53
|
"clover",
|
54
54
|
"text"
|
55
|
-
],
|
56
|
-
"collectCoverageFrom": [
|
57
|
-
"src/**/*.ts"
|
58
|
-
],
|
59
|
-
"coveragePathIgnorePatterns": [
|
60
|
-
"/__tests__/"
|
61
55
|
]
|
62
56
|
},
|
63
|
-
"gitHead": "
|
57
|
+
"gitHead": "1b45d39e2064522f7bce51bd8bf5135742d4ce14"
|
64
58
|
}
|
package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/model-datasource/types.ts
CHANGED
@@ -114,12 +114,45 @@ export interface SubnetAvailabilityZone {
|
|
114
114
|
readonly availabilityZone: string;
|
115
115
|
}
|
116
116
|
|
117
|
+
/*
|
118
|
+
* The credentials the lambda data source will use to connect to the database.
|
119
|
+
*
|
120
|
+
* @experimental
|
121
|
+
*/
|
122
|
+
export type SqlModelDataSourceDbConnectionConfig =
|
123
|
+
| SqlModelDataSourceSecretsManagerDbConnectionConfig
|
124
|
+
| SqlModelDataSourceSsmDbConnectionConfig;
|
125
|
+
|
126
|
+
/*
|
127
|
+
* The credentials stored in Secrets Manager that the lambda data source will use to connect to the database.
|
128
|
+
*
|
129
|
+
* The managed secret should be in the same region as the lambda.
|
130
|
+
* @experimental
|
131
|
+
*/
|
132
|
+
export interface SqlModelDataSourceSecretsManagerDbConnectionConfig {
|
133
|
+
/** The arn of the managed secret with username, password, and hostname to use when connecting to the database. **/
|
134
|
+
readonly secretArn: string;
|
135
|
+
|
136
|
+
/** 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. **/
|
137
|
+
readonly keyArn?: string;
|
138
|
+
|
139
|
+
/** port number of the database proxy, cluster, or instance. */
|
140
|
+
readonly port: number;
|
141
|
+
|
142
|
+
/** database name. */
|
143
|
+
readonly databaseName: string;
|
144
|
+
|
145
|
+
/** The hostname of the database. */
|
146
|
+
readonly hostname: string;
|
147
|
+
}
|
148
|
+
|
117
149
|
/**
|
118
150
|
* The Secure Systems Manager parameter paths the Lambda data source will use to connect to the database.
|
119
151
|
*
|
120
152
|
* These parameters are retrieved from Secure Systems Manager in the same region as the Lambda.
|
153
|
+
* @experimental
|
121
154
|
*/
|
122
|
-
export interface
|
155
|
+
export interface SqlModelDataSourceSsmDbConnectionConfig {
|
123
156
|
/** The Secure Systems Manager parameter containing the hostname of the database. For RDS-based SQL data sources, this can be the hostname
|
124
157
|
* of a database proxy, cluster, or instance.
|
125
158
|
*/
|
@@ -193,3 +226,45 @@ export interface RDSLayerMapping {
|
|
193
226
|
export interface RDSLayerMappingProvider {
|
194
227
|
rdsLayerMapping?: RDSLayerMapping;
|
195
228
|
}
|
229
|
+
|
230
|
+
/**
|
231
|
+
* Type predicate that returns true if the object is a SqlModelDataSourceDbConnectionConfig.
|
232
|
+
* @param obj the object to inspect
|
233
|
+
* @returns true if the object is shaped like a SqlModelDataSourceDbConnectionConfig
|
234
|
+
*/
|
235
|
+
export const isSqlModelDataSourceDbConnectionConfig = (obj: any): obj is SqlModelDataSourceDbConnectionConfig => {
|
236
|
+
return isSqlModelDataSourceSsmDbConnectionConfig(obj) || isSqlModelDataSourceSecretsManagerDbConnectionConfig(obj);
|
237
|
+
};
|
238
|
+
|
239
|
+
/**
|
240
|
+
* Type predicate that returns true if the object is a SqlModelDataSourceSsmDbConnectionConfig.
|
241
|
+
* @param obj the object to inspect
|
242
|
+
* @returns true if the object is shaped like a SqlModelDataSourceDbConnectionConfig
|
243
|
+
*/
|
244
|
+
export const isSqlModelDataSourceSsmDbConnectionConfig = (obj: any): obj is SqlModelDataSourceSsmDbConnectionConfig => {
|
245
|
+
return (
|
246
|
+
(typeof obj === 'object' || typeof obj === 'function') &&
|
247
|
+
typeof obj.hostnameSsmPath === 'string' &&
|
248
|
+
typeof obj.portSsmPath === 'string' &&
|
249
|
+
typeof obj.usernameSsmPath === 'string' &&
|
250
|
+
typeof obj.passwordSsmPath === 'string' &&
|
251
|
+
typeof obj.databaseNameSsmPath === 'string'
|
252
|
+
);
|
253
|
+
};
|
254
|
+
|
255
|
+
/**
|
256
|
+
* Type predicate that returns true if the object is a SqlModelDataSourceSecretsManagerDbConnectionConfig.
|
257
|
+
* @param obj the object to inspect
|
258
|
+
* @returns true if the object is shaped like a SqlModelDataSourceDbConnectionConfig
|
259
|
+
*/
|
260
|
+
export const isSqlModelDataSourceSecretsManagerDbConnectionConfig = (
|
261
|
+
obj: any,
|
262
|
+
): obj is SqlModelDataSourceSecretsManagerDbConnectionConfig => {
|
263
|
+
return (
|
264
|
+
(typeof obj === 'object' || typeof obj === 'function') &&
|
265
|
+
typeof obj.secretArn === 'string' &&
|
266
|
+
typeof obj.port === 'number' &&
|
267
|
+
typeof obj.databaseName === 'string' &&
|
268
|
+
typeof obj.hostname === 'string'
|
269
|
+
);
|
270
|
+
};
|
@@ -144,10 +144,6 @@ export interface TransformerContextOutputProvider {
|
|
144
144
|
*/
|
145
145
|
addInput(inp: InputObjectTypeDefinitionNode): void;
|
146
146
|
|
147
|
-
updateInput(obj: InputObjectTypeDefinitionNode): void;
|
148
|
-
|
149
|
-
getInput(name: string): InputObjectTypeDefinitionNode | undefined;
|
150
|
-
|
151
147
|
/**
|
152
148
|
* Add an enum type definition node to the context.
|
153
149
|
* @param en The enum type definition node to add.
|