SqsSchema: ZodObject<
{
Records: ZodArray<
ZodObject<
{
attributes: ZodObject<
{
ApproximateFirstReceiveTimestamp: ZodString;
ApproximateReceiveCount: ZodString;
AWSTraceHeader: ZodOptional<ZodString>;
DeadLetterQueueSourceArn: ZodOptional<ZodString>;
MessageDeduplicationId: ZodOptional<ZodString>;
MessageGroupId: ZodOptional<ZodString>;
SenderId: ZodString;
SentTimestamp: ZodString;
SequenceNumber: ZodOptional<ZodString>;
},
"strip",
ZodTypeAny,
{
ApproximateFirstReceiveTimestamp: string;
ApproximateReceiveCount: string;
AWSTraceHeader?: string;
DeadLetterQueueSourceArn?: string;
MessageDeduplicationId?: string;
MessageGroupId?: string;
SenderId: string;
SentTimestamp: string;
SequenceNumber?: string;
},
{
ApproximateFirstReceiveTimestamp: string;
ApproximateReceiveCount: string;
AWSTraceHeader?: string;
DeadLetterQueueSourceArn?: string;
MessageDeduplicationId?: string;
MessageGroupId?: string;
SenderId: string;
SentTimestamp: string;
SequenceNumber?: string;
},
>;
awsRegion: ZodString;
body: ZodString;
eventSource: ZodLiteral<"aws:sqs">;
eventSourceARN: ZodString;
md5OfBody: ZodString;
md5OfMessageAttributes: ZodNullable<ZodOptional<ZodString>>;
messageAttributes: ZodRecord<
ZodString,
ZodObject<
{
binaryListValues: ZodOptional<ZodArray<ZodString, "many">>;
binaryValue: ZodOptional<ZodString>;
dataType: ZodString;
stringListValues: ZodOptional<ZodArray<ZodString, "many">>;
stringValue: ZodOptional<ZodString>;
},
"strip",
ZodTypeAny,
{
binaryListValues?: string[];
binaryValue?: string;
dataType: string;
stringListValues?: string[];
stringValue?: string;
},
{
binaryListValues?: string[];
binaryValue?: string;
dataType: string;
stringListValues?: string[];
stringValue?: string;
},
>,
>;
messageId: ZodString;
receiptHandle: ZodString;
},
"strip",
ZodTypeAny,
{
attributes: {
ApproximateFirstReceiveTimestamp: string;
ApproximateReceiveCount: string;
AWSTraceHeader?: string;
DeadLetterQueueSourceArn?: string;
MessageDeduplicationId?: string;
MessageGroupId?: string;
SenderId: string;
SentTimestamp: string;
SequenceNumber?: string;
};
awsRegion: string;
body: string;
eventSource: "aws:sqs";
eventSourceARN: string;
md5OfBody: string;
md5OfMessageAttributes?: null
| string;
messageAttributes: Record<
string,
{
binaryListValues?: string[];
binaryValue?: string;
dataType: string;
stringListValues?: string[];
stringValue?: string;
},
>;
messageId: string;
receiptHandle: string;
},
{
attributes: {
ApproximateFirstReceiveTimestamp: string;
ApproximateReceiveCount: string;
AWSTraceHeader?: string;
DeadLetterQueueSourceArn?: string;
MessageDeduplicationId?: string;
MessageGroupId?: string;
SenderId: string;
SentTimestamp: string;
SequenceNumber?: string;
};
awsRegion: string;
body: string;
eventSource: "aws:sqs";
eventSourceARN: string;
md5OfBody: string;
md5OfMessageAttributes?: null
| string;
messageAttributes: Record<
string,
{
binaryListValues?: string[];
binaryValue?: string;
dataType: string;
stringListValues?: string[];
stringValue?: string;
},
>;
messageId: string;
receiptHandle: string;
},
>,
"many",
>;
},
"strip",
ZodTypeAny,
{
Records: {
attributes: {
ApproximateFirstReceiveTimestamp: string;
ApproximateReceiveCount: string;
AWSTraceHeader?: string;
DeadLetterQueueSourceArn?: string;
MessageDeduplicationId?: string;
MessageGroupId?: string;
SenderId: string;
SentTimestamp: string;
SequenceNumber?: string;
};
awsRegion: string;
body: string;
eventSource: "aws:sqs";
eventSourceARN: string;
md5OfBody: string;
md5OfMessageAttributes?: null
| string;
messageAttributes: Record<
string,
{
binaryListValues?: string[];
binaryValue?: string;
dataType: string;
stringListValues?: string[];
stringValue?: string;
},
>;
messageId: string;
receiptHandle: string;
}[];
},
{
Records: {
attributes: {
ApproximateFirstReceiveTimestamp: string;
ApproximateReceiveCount: string;
AWSTraceHeader?: string;
DeadLetterQueueSourceArn?: string;
MessageDeduplicationId?: string;
MessageGroupId?: string;
SenderId: string;
SentTimestamp: string;
SequenceNumber?: string;
};
awsRegion: string;
body: string;
eventSource: "aws:sqs";
eventSourceARN: string;
md5OfBody: string;
md5OfMessageAttributes?: null
| string;
messageAttributes: Record<
string,
{
binaryListValues?: string[];
binaryValue?: string;
dataType: string;
stringListValues?: string[];
stringValue?: string;
},
>;
messageId: string;
receiptHandle: string;
}[];
},
> = ...
Zod schema for SQS event