@xube/kit-aws-hooks-infrastructure 0.0.29 → 0.0.31
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.
|
@@ -78,8 +78,11 @@ class WebhookManagement extends constructs_1.Construct {
|
|
|
78
78
|
stageName: props.stage ?? "production",
|
|
79
79
|
},
|
|
80
80
|
});
|
|
81
|
+
this.table.grantWriteData(this.addWebhookEndpoints);
|
|
81
82
|
const addWebhookEndpointsTarget = new aws_apigateway_1.LambdaIntegration(this.addWebhookEndpoints);
|
|
83
|
+
this.table.grantWriteData(this.removeWebhookEndpoint);
|
|
82
84
|
const removeWebhookEndpointsTarget = new aws_apigateway_1.LambdaIntegration(this.removeWebhookEndpoint);
|
|
85
|
+
this.table.grantReadData(this.getWebhookEndpoints);
|
|
83
86
|
const getWebhookEndpointsTarget = new aws_apigateway_1.LambdaIntegration(this.getWebhookEndpoints);
|
|
84
87
|
this.webhookAPI.root.addMethod(aws_lambda_1.HttpMethod.GET, getWebhookEndpointsTarget);
|
|
85
88
|
this.webhookAPI.root.addMethod(aws_lambda_1.HttpMethod.POST, addWebhookEndpointsTarget);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xube/kit-aws-hooks-infrastructure",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.31",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
},
|
|
18
18
|
"homepage": "https://github.com/XubeLtd/dev-kit#readme",
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@xube/kit-build": "^0.0.
|
|
20
|
+
"@xube/kit-build": "^0.0.31"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@xube/kit-aws": "^0.0.
|
|
24
|
-
"@xube/kit-aws-hooks": "^0.0.
|
|
25
|
-
"@xube/kit-aws-infrastructure": "^0.0.
|
|
26
|
-
"@xube/kit-constants": "^0.0.
|
|
27
|
-
"@xube/kit-log": "^0.0.
|
|
23
|
+
"@xube/kit-aws": "^0.0.31",
|
|
24
|
+
"@xube/kit-aws-hooks": "^0.0.31",
|
|
25
|
+
"@xube/kit-aws-infrastructure": "^0.0.31",
|
|
26
|
+
"@xube/kit-constants": "^0.0.31",
|
|
27
|
+
"@xube/kit-log": "^0.0.31",
|
|
28
28
|
"aws-cdk-lib": "^2.100.0",
|
|
29
29
|
"aws-lambda": "^1.0.7",
|
|
30
30
|
"constructs": "^10.3.0"
|
|
@@ -130,14 +130,17 @@ export class WebhookManagement extends Construct {
|
|
|
130
130
|
},
|
|
131
131
|
});
|
|
132
132
|
|
|
133
|
+
this.table.grantWriteData(this.addWebhookEndpoints);
|
|
133
134
|
const addWebhookEndpointsTarget = new LambdaIntegration(
|
|
134
135
|
this.addWebhookEndpoints
|
|
135
136
|
);
|
|
136
137
|
|
|
138
|
+
this.table.grantWriteData(this.removeWebhookEndpoint)
|
|
137
139
|
const removeWebhookEndpointsTarget = new LambdaIntegration(
|
|
138
140
|
this.removeWebhookEndpoint
|
|
139
141
|
);
|
|
140
142
|
|
|
143
|
+
this.table.grantReadData(this.getWebhookEndpoints);
|
|
141
144
|
const getWebhookEndpointsTarget = new LambdaIntegration(
|
|
142
145
|
this.getWebhookEndpoints
|
|
143
146
|
);
|