@aws-amplify/graphql-model-transformer 3.3.0-grant-stream-read.0 → 3.3.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/CHANGELOG.md +9 -3
- package/jest.config.js +1 -1
- package/lib/rds-lambda.zip +0 -0
- package/lib/rds-notification-lambda.zip +0 -0
- package/lib/rds-patching-lambda.zip +0 -0
- package/lib/resolvers/rds/resolver.js +2 -2
- package/lib/resources/amplify-dynamodb-table/provider.js +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
@@ -3,15 +3,21 @@
|
|
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.3.0
|
6
|
+
# [3.3.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-model-transformer@3.2.2...@aws-amplify/graphql-model-transformer@3.3.0) (2025-04-17)
|
7
|
+
|
8
|
+
### Features
|
9
|
+
|
10
|
+
- add grantStreamRead to amplify managed table ([#3253](https://github.com/aws-amplify/amplify-category-api/issues/3253)) ([d5e9428](https://github.com/aws-amplify/amplify-category-api/commit/d5e942895d0f767b1d5af9d645adaaddda0eaeb2))
|
11
|
+
|
12
|
+
## [3.2.2](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-model-transformer@3.2.1...@aws-amplify/graphql-model-transformer@3.2.2) (2025-04-09)
|
7
13
|
|
8
14
|
### Bug Fixes
|
9
15
|
|
10
16
|
- handle ContinuousBackupsUnavailableException in updateContinuousBackups when RequestType is 'Create' ([#3203](https://github.com/aws-amplify/amplify-category-api/issues/3203)) ([99fdf46](https://github.com/aws-amplify/amplify-category-api/commit/99fdf4608e8b75c51ed8c6bcb6a283ed09299942))
|
11
17
|
|
12
|
-
###
|
18
|
+
### Reverts
|
13
19
|
|
14
|
-
-
|
20
|
+
- Revert "chore: upgrade to node 20 (#3250)" (#3255) ([a2815c7](https://github.com/aws-amplify/amplify-category-api/commit/a2815c76ee6d12e687193ca6eca84609c79ee268)), closes [#3250](https://github.com/aws-amplify/amplify-category-api/issues/3250) [#3255](https://github.com/aws-amplify/amplify-category-api/issues/3255)
|
15
21
|
|
16
22
|
## [3.2.1](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-model-transformer@3.2.0...@aws-amplify/graphql-model-transformer@3.2.1) (2025-03-06)
|
17
23
|
|
package/jest.config.js
CHANGED
package/lib/rds-lambda.zip
CHANGED
Binary file
|
Binary file
|
Binary file
|
@@ -70,7 +70,7 @@ const createRdsLambda = (scope, apiGraphql, lambdaRole, layerVersionArn, resourc
|
|
70
70
|
else {
|
71
71
|
throw new Error('Unable to determine if SSM or Secrets Manager should be used for credentials.');
|
72
72
|
}
|
73
|
-
const fn = apiGraphql.host.addLambdaFunction(resourceNames.sqlLambdaFunction, `functions/${resourceNames.sqlLambdaFunction}.zip`, 'handler.run', path_1.default.resolve(__dirname, '..', '..', '..', 'lib', 'rds-lambda.zip'), aws_lambda_1.Runtime.
|
73
|
+
const fn = apiGraphql.host.addLambdaFunction(resourceNames.sqlLambdaFunction, `functions/${resourceNames.sqlLambdaFunction}.zip`, 'handler.run', path_1.default.resolve(__dirname, '..', '..', '..', 'lib', 'rds-lambda.zip'), aws_lambda_1.Runtime.NODEJS_20_X, [aws_lambda_1.LayerVersion.fromLayerVersionArn(scope, resourceNames.sqlLambdaLayerVersion, layerVersionArn)], lambdaRole, lambdaEnvironment, aws_cdk_lib_1.Duration.seconds(30), scope, sqlLambdaVpcConfig, 'Amplify-managed SQL function');
|
74
74
|
if (sqlLambdaProvisionedConcurrencyConfig) {
|
75
75
|
const { provisionedConcurrentExecutions } = sqlLambdaProvisionedConcurrencyConfig;
|
76
76
|
const alias = new aws_lambda_1.Alias(scope, resourceNames.sqlLambdaAliasLogicalId, {
|
@@ -185,7 +185,7 @@ const extractSubnetForVpcEndpoint = (avaliabilityZoneMappings) => {
|
|
185
185
|
return result;
|
186
186
|
};
|
187
187
|
const createRdsPatchingLambda = (scope, apiGraphql, lambdaRole, resourceNames, environment, sqlLambdaVpcConfig) => {
|
188
|
-
return apiGraphql.host.addLambdaFunction(resourceNames.sqlPatchingLambdaFunction, `functions/${resourceNames.sqlPatchingLambdaFunction}.zip`, 'index.handler', path_1.default.resolve(__dirname, '..', '..', '..', 'lib', 'rds-patching-lambda.zip'), aws_lambda_1.Runtime.
|
188
|
+
return apiGraphql.host.addLambdaFunction(resourceNames.sqlPatchingLambdaFunction, `functions/${resourceNames.sqlPatchingLambdaFunction}.zip`, 'index.handler', path_1.default.resolve(__dirname, '..', '..', '..', 'lib', 'rds-patching-lambda.zip'), aws_lambda_1.Runtime.NODEJS_20_X, [], lambdaRole, environment, aws_cdk_lib_1.Duration.minutes(6), scope, sqlLambdaVpcConfig);
|
189
189
|
};
|
190
190
|
exports.createRdsPatchingLambda = createRdsPatchingLambda;
|
191
191
|
const createRdsLambdaRole = (roleName, scope, secretEntry, resourceNames, sslCertSsmPath) => {
|
@@ -10,7 +10,7 @@ class Provider extends constructs_1.Construct {
|
|
10
10
|
const fn = new aws_cdk_lib_1.aws_lambda.Function(this, `framework-${entrypoint}`, {
|
11
11
|
code: code,
|
12
12
|
description: `AmplifyManagedTable - ${entrypoint} (${this.node.path})`.slice(0, 256),
|
13
|
-
runtime: aws_cdk_lib_1.aws_lambda.Runtime.
|
13
|
+
runtime: aws_cdk_lib_1.aws_lambda.Runtime.NODEJS_20_X,
|
14
14
|
handler,
|
15
15
|
timeout: aws_cdk_lib_1.Duration.minutes(14),
|
16
16
|
role,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-model-transformer",
|
3
|
-
"version": "3.3.0
|
3
|
+
"version": "3.3.0",
|
4
4
|
"description": "Amplify graphql @model transformer",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -34,26 +34,26 @@
|
|
34
34
|
"extract-api": "ts-node ../../scripts/extract-api.ts"
|
35
35
|
},
|
36
36
|
"dependencies": {
|
37
|
-
"@aws-amplify/graphql-directives": "2.7.
|
38
|
-
"@aws-amplify/graphql-transformer-core": "3.4.
|
39
|
-
"@aws-amplify/graphql-transformer-interfaces": "4.2.
|
37
|
+
"@aws-amplify/graphql-directives": "2.7.1",
|
38
|
+
"@aws-amplify/graphql-transformer-core": "3.4.3",
|
39
|
+
"@aws-amplify/graphql-transformer-interfaces": "4.2.6",
|
40
40
|
"graphql": "^15.5.0",
|
41
41
|
"graphql-mapping-template": "5.0.2",
|
42
|
-
"graphql-transformer-common": "5.1.
|
42
|
+
"graphql-transformer-common": "5.1.3"
|
43
43
|
},
|
44
44
|
"peerDependencies": {
|
45
45
|
"aws-cdk-lib": "^2.187.0",
|
46
46
|
"constructs": "^10.3.0"
|
47
47
|
},
|
48
48
|
"devDependencies": {
|
49
|
-
"@aws-amplify/graphql-transformer-test-utils": "1.0.
|
49
|
+
"@aws-amplify/graphql-transformer-test-utils": "1.0.17",
|
50
50
|
"@aws-sdk/client-dynamodb": "^3.624.0",
|
51
51
|
"@aws-sdk/client-lambda": "^3.624.0",
|
52
52
|
"@aws-sdk/client-sfn": "^3.624.0",
|
53
53
|
"@types/aws-lambda": "8.10.119",
|
54
54
|
"@types/lodash.isequal": "^4.5.8",
|
55
|
-
"@types/node": "^
|
55
|
+
"@types/node": "^20.0.0",
|
56
56
|
"lodash.isequal": "^4.5.0"
|
57
57
|
},
|
58
|
-
"gitHead": "
|
58
|
+
"gitHead": "5bf229e3498a418d1320bbc0eff9786e0dd87f55"
|
59
59
|
}
|