Variable KinesisDataStreamSchemaConst
KinesisDataStreamSchema: ZodObject<
{
Records: ZodArray<
ZodObject<
{
awsRegion: ZodString;
eventID: ZodString;
eventName: ZodLiteral<"aws:kinesis:record">;
eventSource: ZodLiteral<"aws:kinesis">;
eventSourceARN: ZodString;
eventVersion: ZodString;
invokeIdentityArn: ZodString;
kinesis: ZodObject<
{
approximateArrivalTimestamp: ZodNumber;
data: ZodEffects<ZodString, any, string>;
kinesisSchemaVersion: ZodString;
partitionKey: ZodString;
sequenceNumber: ZodString;
},
"strip",
ZodTypeAny,
{
approximateArrivalTimestamp: number;
data?: any;
kinesisSchemaVersion: string;
partitionKey: string;
sequenceNumber: string;
},
{
approximateArrivalTimestamp: number;
data: string;
kinesisSchemaVersion: string;
partitionKey: string;
sequenceNumber: string;
},
>;
},
"strip",
ZodTypeAny,
{
awsRegion: string;
eventID: string;
eventName: "aws:kinesis:record";
eventSource: "aws:kinesis";
eventSourceARN: string;
eventVersion: string;
invokeIdentityArn: string;
kinesis: {
approximateArrivalTimestamp: number;
data?: any;
kinesisSchemaVersion: string;
partitionKey: string;
sequenceNumber: string;
};
},
{
awsRegion: string;
eventID: string;
eventName: "aws:kinesis:record";
eventSource: "aws:kinesis";
eventSourceARN: string;
eventVersion: string;
invokeIdentityArn: string;
kinesis: {
approximateArrivalTimestamp: number;
data: string;
kinesisSchemaVersion: string;
partitionKey: string;
sequenceNumber: string;
};
},
>,
"many",
>;
},
"strip",
ZodTypeAny,
{
Records: {
awsRegion: string;
eventID: string;
eventName: "aws:kinesis:record";
eventSource: "aws:kinesis";
eventSourceARN: string;
eventVersion: string;
invokeIdentityArn: string;
kinesis: {
approximateArrivalTimestamp: number;
data?: any;
kinesisSchemaVersion: string;
partitionKey: string;
sequenceNumber: string;
};
}[];
},
{
Records: {
awsRegion: string;
eventID: string;
eventName: "aws:kinesis:record";
eventSource: "aws:kinesis";
eventSourceARN: string;
eventVersion: string;
invokeIdentityArn: string;
kinesis: {
approximateArrivalTimestamp: number;
data: string;
kinesisSchemaVersion: string;
partitionKey: string;
sequenceNumber: string;
};
}[];
},
> = ...
Zod schema for Kinesis Data Stream event