@novha/anlia-core-lib 0.1.0 → 0.2.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.
Files changed (70) hide show
  1. package/cdk/bin/app.ts +21 -0
  2. package/cdk/bin/infrastructure.ts +16 -6
  3. package/cdk/lib/app.ts +34 -0
  4. package/cdk/lib/infrastructures/event-stack.ts +74 -0
  5. package/cdk/lib/infrastructures/storage-stack.ts +57 -0
  6. package/cdk.json +1 -1
  7. package/cdk.out/.cache/dc7aa0aafa98afcdd2faf6146c00c1c90f0e795c782e819001cf6258fc79c93e.zip +0 -0
  8. package/cdk.out/anlia-core-lib-app-dev.assets.json +36 -0
  9. package/cdk.out/anlia-core-lib-app-dev.metadata.json +109 -0
  10. package/cdk.out/anlia-core-lib-app-dev.template.json +157 -0
  11. package/cdk.out/anlia-core-lib-dev.assets.json +21 -0
  12. package/cdk.out/anlia-core-lib-dev.metadata.json +223 -0
  13. package/cdk.out/anlia-core-lib-dev.template.json +232 -0
  14. package/cdk.out/asset.dc7aa0aafa98afcdd2faf6146c00c1c90f0e795c782e819001cf6258fc79c93e/index.js +38 -0
  15. package/cdk.out/cdk.out +1 -0
  16. package/cdk.out/manifest.json +548 -0
  17. package/cdk.out/tree.json +1 -0
  18. package/dist/cdk/bin/app.d.ts +1 -0
  19. package/dist/cdk/bin/app.js +21 -0
  20. package/dist/cdk/bin/infrastructure.js +13 -6
  21. package/dist/cdk/lib/app.d.ts +6 -0
  22. package/dist/cdk/lib/app.js +48 -0
  23. package/dist/cdk/lib/infrastructure.js +29 -0
  24. package/dist/cdk/lib/infrastructures/event-stack.d.ts +6 -0
  25. package/dist/cdk/lib/infrastructures/event-stack.js +61 -0
  26. package/dist/cdk/lib/infrastructures/storage-stack.d.ts +8 -0
  27. package/dist/cdk/lib/infrastructures/storage-stack.js +46 -0
  28. package/dist/src/dynamoDb/DynamoDbModule.d.ts +2 -0
  29. package/dist/src/dynamoDb/DynamoDbModule.js +29 -0
  30. package/dist/src/dynamoDb/index.d.ts +4 -0
  31. package/dist/src/dynamoDb/index.js +18 -0
  32. package/dist/src/dynamoDb/ioc/index.d.ts +3 -0
  33. package/dist/src/dynamoDb/ioc/index.js +6 -0
  34. package/dist/src/dynamoDb/service/DynamoDbService.d.ts +34 -0
  35. package/dist/src/dynamoDb/service/DynamoDbService.js +2 -0
  36. package/dist/src/dynamoDb/service/DynamoDbServiceImpl.d.ts +16 -0
  37. package/dist/src/dynamoDb/service/DynamoDbServiceImpl.js +108 -0
  38. package/dist/src/eventBridge/EventBridgeModule.js +5 -1
  39. package/dist/src/handlers/EventLoggerHandler.d.ts +2 -0
  40. package/dist/src/handlers/EventLoggerHandler.js +13 -0
  41. package/dist/src/index.d.ts +2 -0
  42. package/dist/src/index.js +2 -0
  43. package/dist/src/orders/index.d.ts +1 -0
  44. package/dist/src/s3/S3Module.d.ts +2 -0
  45. package/dist/src/s3/S3Module.js +31 -0
  46. package/dist/src/s3/index.d.ts +4 -0
  47. package/dist/src/s3/index.js +18 -0
  48. package/dist/src/s3/ioc/index.d.ts +3 -0
  49. package/dist/src/s3/ioc/index.js +6 -0
  50. package/dist/src/s3/service/S3Service.d.ts +27 -0
  51. package/dist/src/s3/service/S3Service.js +2 -0
  52. package/dist/src/s3/service/S3ServiceImpl.d.ts +17 -0
  53. package/dist/src/s3/service/S3ServiceImpl.js +104 -0
  54. package/package.json +8 -3
  55. package/src/dynamoDb/DynamoDbModule.ts +18 -0
  56. package/src/dynamoDb/index.ts +4 -0
  57. package/src/dynamoDb/ioc/index.ts +3 -0
  58. package/src/dynamoDb/service/DynamoDbService.ts +37 -0
  59. package/src/dynamoDb/service/DynamoDbServiceImpl.ts +132 -0
  60. package/src/eventBridge/EventBridgeModule.ts +6 -1
  61. package/src/handlers/EventLoggerHandler.ts +11 -0
  62. package/src/index.ts +3 -1
  63. package/src/orders/index.ts +2 -1
  64. package/src/s3/S3Module.ts +20 -0
  65. package/src/s3/index.ts +4 -0
  66. package/src/s3/ioc/index.ts +3 -0
  67. package/src/s3/service/S3Service.ts +30 -0
  68. package/src/s3/service/S3ServiceImpl.ts +116 -0
  69. package/tsconfig.json +1 -2
  70. package/cdk/lib/infrastructure.ts +0 -37
@@ -0,0 +1,223 @@
1
+ {
2
+ "/anlia-core-lib-dev": [
3
+ {
4
+ "type": "aws:cdk:creationStack",
5
+ "data": [
6
+ "<anonymous> (/Users/rachelnama/app/anlia/anlia-core-lib/cdk/bin/infrastructure.ts:15:1)",
7
+ "...node internals, ts-node, ts-node, ts-node..."
8
+ ]
9
+ }
10
+ ],
11
+ "/anlia-core-lib-dev/EventBusArn": [
12
+ {
13
+ "type": "aws:cdk:logicalId",
14
+ "data": "EventBusArn"
15
+ },
16
+ {
17
+ "type": "aws:cdk:creationStack",
18
+ "data": [
19
+ "new InfrastructureStack (/Users/rachelnama/app/anlia/anlia-core-lib/cdk/lib/infrastructure.ts:44:9)",
20
+ "<anonymous> (/Users/rachelnama/app/anlia/anlia-core-lib/cdk/bin/infrastructure.ts:15:1)",
21
+ "...node internals, ts-node, ts-node, ts-node..."
22
+ ]
23
+ }
24
+ ],
25
+ "/anlia-core-lib-dev/EventBusName": [
26
+ {
27
+ "type": "aws:cdk:logicalId",
28
+ "data": "EventBusName"
29
+ },
30
+ {
31
+ "type": "aws:cdk:creationStack",
32
+ "data": [
33
+ "new InfrastructureStack (/Users/rachelnama/app/anlia/anlia-core-lib/cdk/lib/infrastructure.ts:49:9)",
34
+ "<anonymous> (/Users/rachelnama/app/anlia/anlia-core-lib/cdk/bin/infrastructure.ts:15:1)",
35
+ "...node internals, ts-node, ts-node, ts-node..."
36
+ ]
37
+ }
38
+ ],
39
+ "/anlia-core-lib-dev/EventQueueArn": [
40
+ {
41
+ "type": "aws:cdk:logicalId",
42
+ "data": "EventQueueArn"
43
+ },
44
+ {
45
+ "type": "aws:cdk:creationStack",
46
+ "data": [
47
+ "new InfrastructureStack (/Users/rachelnama/app/anlia/anlia-core-lib/cdk/lib/infrastructure.ts:54:9)",
48
+ "<anonymous> (/Users/rachelnama/app/anlia/anlia-core-lib/cdk/bin/infrastructure.ts:15:1)",
49
+ "...node internals, ts-node, ts-node, ts-node..."
50
+ ]
51
+ }
52
+ ],
53
+ "/anlia-core-lib-dev/EventQueueUrl": [
54
+ {
55
+ "type": "aws:cdk:logicalId",
56
+ "data": "EventQueueUrl"
57
+ },
58
+ {
59
+ "type": "aws:cdk:creationStack",
60
+ "data": [
61
+ "new InfrastructureStack (/Users/rachelnama/app/anlia/anlia-core-lib/cdk/lib/infrastructure.ts:59:9)",
62
+ "<anonymous> (/Users/rachelnama/app/anlia/anlia-core-lib/cdk/bin/infrastructure.ts:15:1)",
63
+ "...node internals, ts-node, ts-node, ts-node..."
64
+ ]
65
+ }
66
+ ],
67
+ "/anlia-core-lib-dev/BucketArn": [
68
+ {
69
+ "type": "aws:cdk:logicalId",
70
+ "data": "BucketArn"
71
+ },
72
+ {
73
+ "type": "aws:cdk:creationStack",
74
+ "data": [
75
+ "new InfrastructureStack (/Users/rachelnama/app/anlia/anlia-core-lib/cdk/lib/infrastructure.ts:64:9)",
76
+ "<anonymous> (/Users/rachelnama/app/anlia/anlia-core-lib/cdk/bin/infrastructure.ts:15:1)",
77
+ "...node internals, ts-node, ts-node, ts-node..."
78
+ ]
79
+ }
80
+ ],
81
+ "/anlia-core-lib-dev/BucketName": [
82
+ {
83
+ "type": "aws:cdk:logicalId",
84
+ "data": "BucketName"
85
+ },
86
+ {
87
+ "type": "aws:cdk:creationStack",
88
+ "data": [
89
+ "new InfrastructureStack (/Users/rachelnama/app/anlia/anlia-core-lib/cdk/lib/infrastructure.ts:69:9)",
90
+ "<anonymous> (/Users/rachelnama/app/anlia/anlia-core-lib/cdk/bin/infrastructure.ts:15:1)",
91
+ "...node internals, ts-node, ts-node, ts-node..."
92
+ ]
93
+ }
94
+ ],
95
+ "/anlia-core-lib-dev/BootstrapVersion": [
96
+ {
97
+ "type": "aws:cdk:logicalId",
98
+ "data": "BootstrapVersion"
99
+ },
100
+ {
101
+ "type": "aws:cdk:creationStack",
102
+ "data": [
103
+ "...aws-cdk-lib...",
104
+ "(no user code in 10 frames, use --stack-trace-limit to capture more)"
105
+ ]
106
+ }
107
+ ],
108
+ "/anlia-core-lib-dev/CheckBootstrapVersion": [
109
+ {
110
+ "type": "aws:cdk:logicalId",
111
+ "data": "CheckBootstrapVersion"
112
+ },
113
+ {
114
+ "type": "aws:cdk:creationStack",
115
+ "data": [
116
+ "...aws-cdk-lib...",
117
+ "(no user code in 10 frames, use --stack-trace-limit to capture more)"
118
+ ]
119
+ }
120
+ ],
121
+ "/anlia-core-lib-dev/EventBus/Resource": [
122
+ {
123
+ "type": "aws:cdk:logicalId",
124
+ "data": "EventBus7B8748AA"
125
+ },
126
+ {
127
+ "type": "aws:cdk:creationStack",
128
+ "data": [
129
+ "...new EventBus2 in aws-cdk-lib...",
130
+ "new InfrastructureStack (/Users/rachelnama/app/anlia/anlia-core-lib/cdk/lib/infrastructure.ts:13:26)",
131
+ "<anonymous> (/Users/rachelnama/app/anlia/anlia-core-lib/cdk/bin/infrastructure.ts:15:1)",
132
+ "...node internals, ts-node, ts-node..."
133
+ ]
134
+ }
135
+ ],
136
+ "/anlia-core-lib-dev/EventDLQ/Resource": [
137
+ {
138
+ "type": "aws:cdk:logicalId",
139
+ "data": "EventDLQ3FA25A8E"
140
+ },
141
+ {
142
+ "type": "aws:cdk:creationStack",
143
+ "data": [
144
+ "...new Queue2 in aws-cdk-lib...",
145
+ "new InfrastructureStack (/Users/rachelnama/app/anlia/anlia-core-lib/cdk/lib/infrastructure.ts:19:21)",
146
+ "<anonymous> (/Users/rachelnama/app/anlia/anlia-core-lib/cdk/bin/infrastructure.ts:15:1)",
147
+ "...node internals, ts-node, ts-node..."
148
+ ]
149
+ }
150
+ ],
151
+ "/anlia-core-lib-dev/EventQueue/Resource": [
152
+ {
153
+ "type": "aws:cdk:logicalId",
154
+ "data": "EventQueueFD722DCD"
155
+ },
156
+ {
157
+ "type": "aws:cdk:creationStack",
158
+ "data": [
159
+ "...new Queue2 in aws-cdk-lib...",
160
+ "new InfrastructureStack (/Users/rachelnama/app/anlia/anlia-core-lib/cdk/lib/infrastructure.ts:24:28)",
161
+ "<anonymous> (/Users/rachelnama/app/anlia/anlia-core-lib/cdk/bin/infrastructure.ts:15:1)",
162
+ "...node internals, ts-node, ts-node..."
163
+ ]
164
+ }
165
+ ],
166
+ "/anlia-core-lib-dev/AllEventsRule/Resource": [
167
+ {
168
+ "type": "aws:cdk:logicalId",
169
+ "data": "AllEventsRule5A9710FA"
170
+ },
171
+ {
172
+ "type": "aws:cdk:creationStack",
173
+ "data": [
174
+ "...new Rule2 in aws-cdk-lib...",
175
+ "new InfrastructureStack (/Users/rachelnama/app/anlia/anlia-core-lib/cdk/lib/infrastructure.ts:31:9)",
176
+ "<anonymous> (/Users/rachelnama/app/anlia/anlia-core-lib/cdk/bin/infrastructure.ts:15:1)",
177
+ "...node internals, ts-node, ts-node..."
178
+ ]
179
+ }
180
+ ],
181
+ "/anlia-core-lib-dev/Bucket/Resource": [
182
+ {
183
+ "type": "aws:cdk:logicalId",
184
+ "data": "Bucket83908E77"
185
+ },
186
+ {
187
+ "type": "aws:cdk:creationStack",
188
+ "data": [
189
+ "...new Bucket2 in aws-cdk-lib...",
190
+ "new InfrastructureStack (/Users/rachelnama/app/anlia/anlia-core-lib/cdk/lib/infrastructure.ts:40:24)",
191
+ "<anonymous> (/Users/rachelnama/app/anlia/anlia-core-lib/cdk/bin/infrastructure.ts:15:1)",
192
+ "...node internals, ts-node, ts-node..."
193
+ ]
194
+ }
195
+ ],
196
+ "/anlia-core-lib-dev/CDKMetadata/Default": [
197
+ {
198
+ "type": "aws:cdk:logicalId",
199
+ "data": "CDKMetadata"
200
+ },
201
+ {
202
+ "type": "aws:cdk:creationStack",
203
+ "data": [
204
+ "...App.synth in aws-cdk-lib...",
205
+ "<anonymous> (/Users/rachelnama/app/anlia/anlia-core-lib/cdk/bin/infrastructure.ts:21:5)",
206
+ "...node internals..."
207
+ ]
208
+ }
209
+ ],
210
+ "/anlia-core-lib-dev/EventQueue/Policy/Resource": [
211
+ {
212
+ "type": "aws:cdk:logicalId",
213
+ "data": "EventQueuePolicy4A12B969"
214
+ },
215
+ {
216
+ "type": "aws:cdk:creationStack",
217
+ "data": [
218
+ "...aws-cdk-lib...",
219
+ "(no user code in 10 frames, use --stack-trace-limit to capture more)"
220
+ ]
221
+ }
222
+ ]
223
+ }
@@ -0,0 +1,232 @@
1
+ {
2
+ "Resources": {
3
+ "EventBus7B8748AA": {
4
+ "Type": "AWS::Events::EventBus",
5
+ "Properties": {
6
+ "Name": "anlia-core-lib-dev-event-bus"
7
+ },
8
+ "Metadata": {
9
+ "aws:cdk:path": "anlia-core-lib-dev/EventBus/Resource"
10
+ }
11
+ },
12
+ "EventDLQ3FA25A8E": {
13
+ "Type": "AWS::SQS::Queue",
14
+ "Properties": {
15
+ "MessageRetentionPeriod": 1209600,
16
+ "QueueName": "anlia-core-lib-dev-event-dlq"
17
+ },
18
+ "UpdateReplacePolicy": "Delete",
19
+ "DeletionPolicy": "Delete",
20
+ "Metadata": {
21
+ "aws:cdk:path": "anlia-core-lib-dev/EventDLQ/Resource"
22
+ }
23
+ },
24
+ "EventQueueFD722DCD": {
25
+ "Type": "AWS::SQS::Queue",
26
+ "Properties": {
27
+ "QueueName": "anlia-core-lib-dev-event-queue",
28
+ "RedrivePolicy": {
29
+ "deadLetterTargetArn": {
30
+ "Fn::GetAtt": [
31
+ "EventDLQ3FA25A8E",
32
+ "Arn"
33
+ ]
34
+ },
35
+ "maxReceiveCount": 3
36
+ },
37
+ "VisibilityTimeout": 300
38
+ },
39
+ "UpdateReplacePolicy": "Delete",
40
+ "DeletionPolicy": "Delete",
41
+ "Metadata": {
42
+ "aws:cdk:path": "anlia-core-lib-dev/EventQueue/Resource"
43
+ }
44
+ },
45
+ "EventQueuePolicy4A12B969": {
46
+ "Type": "AWS::SQS::QueuePolicy",
47
+ "Properties": {
48
+ "PolicyDocument": {
49
+ "Statement": [
50
+ {
51
+ "Action": [
52
+ "sqs:GetQueueAttributes",
53
+ "sqs:GetQueueUrl",
54
+ "sqs:SendMessage"
55
+ ],
56
+ "Condition": {
57
+ "ArnEquals": {
58
+ "aws:SourceArn": {
59
+ "Fn::GetAtt": [
60
+ "AllEventsRule5A9710FA",
61
+ "Arn"
62
+ ]
63
+ }
64
+ }
65
+ },
66
+ "Effect": "Allow",
67
+ "Principal": {
68
+ "Service": "events.amazonaws.com"
69
+ },
70
+ "Resource": {
71
+ "Fn::GetAtt": [
72
+ "EventQueueFD722DCD",
73
+ "Arn"
74
+ ]
75
+ }
76
+ }
77
+ ],
78
+ "Version": "2012-10-17"
79
+ },
80
+ "Queues": [
81
+ {
82
+ "Ref": "EventQueueFD722DCD"
83
+ }
84
+ ]
85
+ },
86
+ "Metadata": {
87
+ "aws:cdk:path": "anlia-core-lib-dev/EventQueue/Policy/Resource"
88
+ }
89
+ },
90
+ "AllEventsRule5A9710FA": {
91
+ "Type": "AWS::Events::Rule",
92
+ "Properties": {
93
+ "Description": "Forward all events on the bus to the event queue",
94
+ "EventBusName": {
95
+ "Ref": "EventBus7B8748AA"
96
+ },
97
+ "EventPattern": {
98
+ "source": [
99
+ {
100
+ "prefix": ""
101
+ }
102
+ ]
103
+ },
104
+ "State": "ENABLED",
105
+ "Targets": [
106
+ {
107
+ "Arn": {
108
+ "Fn::GetAtt": [
109
+ "EventQueueFD722DCD",
110
+ "Arn"
111
+ ]
112
+ },
113
+ "Id": "Target0"
114
+ }
115
+ ]
116
+ },
117
+ "Metadata": {
118
+ "aws:cdk:path": "anlia-core-lib-dev/AllEventsRule/Resource"
119
+ }
120
+ },
121
+ "Bucket83908E77": {
122
+ "Type": "AWS::S3::Bucket",
123
+ "UpdateReplacePolicy": "Retain",
124
+ "DeletionPolicy": "Retain",
125
+ "Metadata": {
126
+ "aws:cdk:path": "anlia-core-lib-dev/Bucket/Resource"
127
+ }
128
+ },
129
+ "CDKMetadata": {
130
+ "Type": "AWS::CDK::Metadata",
131
+ "Properties": {
132
+ "Analytics": "v2:deflate64:H4sIAAAAAAAA/z2JUQrCMAxAz7L/Ls4KHmDitzoPILWL0LV20zQbUnp36QqDkPfyIkEe99BUaqFa97Z25gnxHpS2Qi30iDijDwTxnNkyidPLb96xwxwyk6APQbwx8tqKrPs6OqN/WyxnEnSA2LK2GPKrWErZLxwmDkn4sUcYaDfLBvJUAxlTf9kH80boCv+R0sbQwgAAAA=="
133
+ },
134
+ "Metadata": {
135
+ "aws:cdk:path": "anlia-core-lib-dev/CDKMetadata/Default"
136
+ }
137
+ }
138
+ },
139
+ "Outputs": {
140
+ "EventBusArn": {
141
+ "Value": {
142
+ "Fn::GetAtt": [
143
+ "EventBus7B8748AA",
144
+ "Arn"
145
+ ]
146
+ },
147
+ "Export": {
148
+ "Name": "anlia-core-lib-dev-event-bus-arn"
149
+ }
150
+ },
151
+ "EventBusName": {
152
+ "Value": {
153
+ "Ref": "EventBus7B8748AA"
154
+ },
155
+ "Export": {
156
+ "Name": "anlia-core-lib-dev-event-bus-name"
157
+ }
158
+ },
159
+ "EventQueueArn": {
160
+ "Value": {
161
+ "Fn::GetAtt": [
162
+ "EventQueueFD722DCD",
163
+ "Arn"
164
+ ]
165
+ },
166
+ "Export": {
167
+ "Name": "anlia-core-lib-dev-event-queue-arn"
168
+ }
169
+ },
170
+ "EventQueueUrl": {
171
+ "Value": {
172
+ "Ref": "EventQueueFD722DCD"
173
+ },
174
+ "Export": {
175
+ "Name": "anlia-core-lib-dev-event-queue-url"
176
+ }
177
+ },
178
+ "BucketArn": {
179
+ "Value": {
180
+ "Fn::GetAtt": [
181
+ "Bucket83908E77",
182
+ "Arn"
183
+ ]
184
+ },
185
+ "Export": {
186
+ "Name": "anlia-core-lib-dev-bucket-arn"
187
+ }
188
+ },
189
+ "BucketName": {
190
+ "Value": {
191
+ "Ref": "Bucket83908E77"
192
+ },
193
+ "Export": {
194
+ "Name": "anlia-core-lib-dev-bucket-name"
195
+ }
196
+ }
197
+ },
198
+ "Parameters": {
199
+ "BootstrapVersion": {
200
+ "Type": "AWS::SSM::Parameter::Value<String>",
201
+ "Default": "/cdk-bootstrap/hnb659fds/version",
202
+ "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
203
+ }
204
+ },
205
+ "Rules": {
206
+ "CheckBootstrapVersion": {
207
+ "Assertions": [
208
+ {
209
+ "Assert": {
210
+ "Fn::Not": [
211
+ {
212
+ "Fn::Contains": [
213
+ [
214
+ "1",
215
+ "2",
216
+ "3",
217
+ "4",
218
+ "5"
219
+ ],
220
+ {
221
+ "Ref": "BootstrapVersion"
222
+ }
223
+ ]
224
+ }
225
+ ]
226
+ },
227
+ "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
228
+ }
229
+ ]
230
+ }
231
+ }
232
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/handlers/EventLoggerHandler.ts
21
+ var EventLoggerHandler_exports = {};
22
+ __export(EventLoggerHandler_exports, {
23
+ handler: () => handler
24
+ });
25
+ module.exports = __toCommonJS(EventLoggerHandler_exports);
26
+ var handler = async (event) => {
27
+ for (const record of event.Records) {
28
+ console.log(JSON.stringify({
29
+ messageId: record.messageId,
30
+ eventSource: record.eventSource,
31
+ body: JSON.parse(record.body)
32
+ }));
33
+ }
34
+ };
35
+ // Annotate the CommonJS export names for ESM import in node:
36
+ 0 && (module.exports = {
37
+ handler
38
+ });
@@ -0,0 +1 @@
1
+ {"version":"54.0.0"}