@xube/kit-aws-hooks-infrastructure 0.0.53 → 0.0.55

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.
@@ -52,6 +52,7 @@ class WebhookManagement extends constructs_1.Construct {
52
52
  kit_log_1.XubeLog.getInstance().log(__dirname);
53
53
  kit_log_1.XubeLog.getInstance().log((0, path_1.join)(__dirname, "functions", exports.ADD_WEBHOOK_ENDPOINTS_FUNCTION_NAME + ".ts"));
54
54
  this.addWebhookEndpoints = new aws_lambda_nodejs_1.NodejsFunction(this, id + "-add-hooks-function", {
55
+ runtime: aws_lambda_1.Runtime.NODEJS_18_X,
55
56
  entry: (0, path_1.join)(__dirname, "functions", exports.ADD_WEBHOOK_ENDPOINTS_FUNCTION_NAME + ".js"),
56
57
  functionName: (props.name ?? "webhook") + "-add-hooks",
57
58
  environment: {
@@ -59,6 +60,7 @@ class WebhookManagement extends constructs_1.Construct {
59
60
  },
60
61
  });
61
62
  this.removeWebhookEndpoint = new aws_lambda_nodejs_1.NodejsFunction(this, id + "-remove-hooks-function", {
63
+ runtime: aws_lambda_1.Runtime.NODEJS_18_X,
62
64
  entry: (0, path_1.join)(__dirname, "functions", exports.REMOVE_WEBHOOK_ENDPOINTS_FUNCTION_NAME + ".js"),
63
65
  functionName: (props.name ?? "webhook") + "-remove-hooks",
64
66
  environment: {
@@ -66,6 +68,7 @@ class WebhookManagement extends constructs_1.Construct {
66
68
  },
67
69
  });
68
70
  this.getWebhookEndpoints = new aws_lambda_nodejs_1.NodejsFunction(this, id + "-get-hooks-function", {
71
+ runtime: aws_lambda_1.Runtime.NODEJS_18_X,
69
72
  entry: (0, path_1.join)(__dirname, "functions", exports.GET_WEBHOOK_ENDPOINTS_FUNCTION_NAME + ".js"),
70
73
  functionName: (props.name ?? "webhook") + "-get-hook",
71
74
  environment: {
@@ -103,6 +106,7 @@ class WebhookManagement extends constructs_1.Construct {
103
106
  this.webhookAPI.root.addMethod(aws_lambda_1.HttpMethod.POST, addWebhookEndpointsTarget);
104
107
  this.webhookAPI.root.addMethod(aws_lambda_1.HttpMethod.DELETE, removeWebhookEndpointsTarget);
105
108
  this.handleStreams = new aws_lambda_nodejs_1.NodejsFunction(this, id + "-handle-streams", {
109
+ runtime: aws_lambda_1.Runtime.NODEJS_18_X,
106
110
  entry: (0, path_1.join)(__dirname, "functions", exports.HANDLE_STREAMS_FUNCTION_NAME + ".js"),
107
111
  functionName: (props.name ?? "webhook") + "-handle-streams",
108
112
  environment: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xube/kit-aws-hooks-infrastructure",
3
- "version": "0.0.53",
3
+ "version": "0.0.55",
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.53"
20
+ "@xube/kit-build": "^0.0.55"
21
21
  },
22
22
  "dependencies": {
23
- "@xube/kit-aws": "^0.0.53",
24
- "@xube/kit-aws-hooks": "^0.0.53",
25
- "@xube/kit-aws-infrastructure": "^0.0.53",
26
- "@xube/kit-constants": "^0.0.53",
27
- "@xube/kit-log": "^0.0.53",
23
+ "@xube/kit-aws": "^0.0.55",
24
+ "@xube/kit-aws-hooks": "^0.0.55",
25
+ "@xube/kit-aws-infrastructure": "^0.0.55",
26
+ "@xube/kit-constants": "^0.0.55",
27
+ "@xube/kit-log": "^0.0.55",
28
28
  "aws-cdk-lib": "^2.100.0",
29
29
  "aws-lambda": "^1.0.7",
30
30
  "constructs": "^10.3.0"
@@ -15,7 +15,7 @@ import {
15
15
  import { ICertificate } from "aws-cdk-lib/aws-certificatemanager";
16
16
  import { AttributeType, ITable, Table } from "aws-cdk-lib/aws-dynamodb";
17
17
  import { PolicyStatement } from "aws-cdk-lib/aws-iam";
18
- import { HttpMethod, StartingPosition } from "aws-cdk-lib/aws-lambda";
18
+ import { HttpMethod, Runtime, StartingPosition } from "aws-cdk-lib/aws-lambda";
19
19
  import { DynamoEventSource } from "aws-cdk-lib/aws-lambda-event-sources";
20
20
  import { NodejsFunction } from "aws-cdk-lib/aws-lambda-nodejs";
21
21
  import { Construct } from "constructs";
@@ -87,6 +87,7 @@ export class WebhookManagement extends Construct {
87
87
  this,
88
88
  id + "-add-hooks-function",
89
89
  {
90
+ runtime: Runtime.NODEJS_18_X,
90
91
  entry: join(
91
92
  __dirname,
92
93
  "functions",
@@ -102,6 +103,7 @@ export class WebhookManagement extends Construct {
102
103
  this,
103
104
  id + "-remove-hooks-function",
104
105
  {
106
+ runtime: Runtime.NODEJS_18_X,
105
107
  entry: join(
106
108
  __dirname,
107
109
  "functions",
@@ -117,6 +119,7 @@ export class WebhookManagement extends Construct {
117
119
  this,
118
120
  id + "-get-hooks-function",
119
121
  {
122
+ runtime: Runtime.NODEJS_18_X,
120
123
  entry: join(
121
124
  __dirname,
122
125
  "functions",
@@ -174,6 +177,7 @@ export class WebhookManagement extends Construct {
174
177
  );
175
178
 
176
179
  this.handleStreams = new NodejsFunction(this, id + "-handle-streams", {
180
+ runtime: Runtime.NODEJS_18_X,
177
181
  entry: join(__dirname, "functions", HANDLE_STREAMS_FUNCTION_NAME + ".js"),
178
182
  functionName: (props.name ?? "webhook") + "-handle-streams",
179
183
  environment: {