@sylvesterllc/aws-constructs 1.1.39 → 1.1.43
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.
|
@@ -4,7 +4,7 @@ exports.createSQSResource = void 0;
|
|
|
4
4
|
const aws_sqs_1 = require("aws-cdk-lib/aws-sqs");
|
|
5
5
|
const createSQSResource = (scope, queueName) => {
|
|
6
6
|
const dlQueue = new aws_sqs_1.Queue(scope, `sqs-queue-dl-${queueName} `, {
|
|
7
|
-
queueName
|
|
7
|
+
queueName: `${queueName}-dead-letter-queue`,
|
|
8
8
|
});
|
|
9
9
|
const queueProp = {
|
|
10
10
|
queueName,
|
|
@@ -14,8 +14,8 @@ const createSQSResource = (scope, queueName) => {
|
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
// SQS resource creation logic goes here
|
|
17
|
-
const createdQueue = new aws_sqs_1.Queue(scope, `sqs-queue-${queueName}
|
|
17
|
+
const createdQueue = new aws_sqs_1.Queue(scope, `sqs-queue-${queueName}`, queueProp);
|
|
18
18
|
return createdQueue;
|
|
19
19
|
};
|
|
20
20
|
exports.createSQSResource = createSQSResource;
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JlYXRlLXNxcy1yZXNvdXJjZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9yZXNvdXJjZXMvc3FzL2NyZWF0ZS1zcXMtcmVzb3VyY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsaURBQXdEO0FBR2pELE1BQU0saUJBQWlCLEdBQUcsQ0FBQyxLQUFnQixFQUFFLFNBQWlCLEVBQUUsRUFBRTtJQUVyRSxNQUFNLE9BQU8sR0FBRyxJQUFJLGVBQUssQ0FBQyxLQUFLLEVBQUUsZ0JBQWdCLFNBQVM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XG4gICAgICAgICAgICBtYXhSZWNlaXZlQ291bnQ6IDVcclxuICAgICAgICB9XHJcbiAgICB9O1xyXG4gIFxyXG4gICAgLy8gU1FTIHJlc291cmNlIGNyZWF0aW9uIGxvZ2ljIGdvZXMgaGVyZVxyXG4gIGNvbnN0IGNyZWF0ZWRRdWV1ZSA9IG5ldyBRdWV1ZShzY29wZSwgYHNxcy1xdWV1ZS0ke3F1ZXVlTmFtZX1gLCBxdWV1ZVByb3ApO1xyXG5cclxuICByZXR1cm4gY3JlYXRlZFF1ZXVlO1xyXG59O1xyXG4iXX0=
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sylvesterllc/aws-constructs",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.43",
|
|
4
4
|
"description": "AWS Constructs",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"keywords": [
|
|
@@ -36,17 +36,15 @@
|
|
|
36
36
|
"@jest/types": "^30.2.0",
|
|
37
37
|
"@types/jest": "^30.0.0",
|
|
38
38
|
"@types/luxon": "^3.7.1",
|
|
39
|
-
"@types/node": "^24.10.1",
|
|
39
|
+
"@types/node": "^24.10.1",
|
|
40
40
|
"jest": "^29.7.0",
|
|
41
41
|
"ts-jest": "^29.4.5",
|
|
42
42
|
"ts-node": "^10.9.2",
|
|
43
43
|
"typescript": "^5.9.3"
|
|
44
44
|
},
|
|
45
|
-
"peerDependencies": {
|
|
46
|
-
"aws-cdk-lib": "^2.224.0",
|
|
47
|
-
"constructs": "^10.4.3"
|
|
48
|
-
},
|
|
49
45
|
"dependencies": {
|
|
46
|
+
"aws-cdk-lib": "^2.224.0",
|
|
47
|
+
"constructs": "^10.4.3",
|
|
50
48
|
"dotenv": "^17.2.3",
|
|
51
49
|
"fsbin": "^1.0.11",
|
|
52
50
|
"luxon": "^3.7.2",
|
|
@@ -4,7 +4,7 @@ import { Construct } from "constructs";
|
|
|
4
4
|
export const createSQSResource = (scope: Construct, queueName: string) => {
|
|
5
5
|
|
|
6
6
|
const dlQueue = new Queue(scope, `sqs-queue-dl-${queueName} `, {
|
|
7
|
-
queueName
|
|
7
|
+
queueName: `${queueName}-dead-letter-queue`,
|
|
8
8
|
});
|
|
9
9
|
|
|
10
10
|
const queueProp: QueueProps = {
|
|
@@ -16,7 +16,7 @@ export const createSQSResource = (scope: Construct, queueName: string) => {
|
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
// SQS resource creation logic goes here
|
|
19
|
-
const createdQueue = new Queue(scope, `sqs-queue-${queueName}
|
|
19
|
+
const createdQueue = new Queue(scope, `sqs-queue-${queueName}`, queueProp);
|
|
20
20
|
|
|
21
21
|
return createdQueue;
|
|
22
22
|
};
|