Skip to content

Commit e2fcd9e

Browse files
authored
chore(parser): add DeadLetterQueueSourceArn attribute (#2362)
* add DeadLetterQueueSourceArn attribute * move comment
1 parent 4f526ec commit e2fcd9e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

packages/parser/src/schemas/sqs.ts

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ const SqsAttributesSchema = z.object({
1717
SentTimestamp: z.string(),
1818
SequenceNumber: z.string().optional(),
1919
AWSTraceHeader: z.string().optional(),
20+
/**
21+
* Undocumented, but used by AWS to support their re-drive functionality in the console
22+
*/
23+
DeadLetterQueueSourceArn: z.string().optional(),
2024
});
2125

2226
const SqsRecordSchema = z.object({

packages/parser/tests/events/sqsEvent.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
"ApproximateReceiveCount": "1",
3131
"SentTimestamp": "1545082650636",
3232
"SenderId": "AIDAIENQZJOLO23YVJ4VO",
33-
"ApproximateFirstReceiveTimestamp": "1545082650649"
33+
"ApproximateFirstReceiveTimestamp": "1545082650649",
34+
"DeadLetterQueueSourceArn": "arn:aws:sqs:us-east-2:123456789012:my-queue-dead"
3435
},
3536
"messageAttributes": {},
3637
"md5OfBody": "e4e68fb7bd0e697a0ae8f1bb342846b3",

0 commit comments

Comments
 (0)