Variable KinesisDynamoDBStreamSchemaConst
KinesisDynamoDBStreamSchema: ZodObject<
{
Records: ZodArray<
ZodObject<
extendShape<
{
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;
},
>;
},
{
kinesis: ZodObject<
extendShape<
{
approximateArrivalTimestamp: ZodNumber;
data: ZodEffects<ZodString, any, string>;
kinesisSchemaVersion: ZodString;
partitionKey: ZodString;
sequenceNumber: ZodString;
},
{
data: ZodPipeline<
ZodEffects<(...), (...), (...)>,
ZodObject<(...), (...), (...), (...), (...)>,
>;
},
>,
"strip",
ZodTypeAny,
{
approximateArrivalTimestamp: number;
data: {
awsRegion: string;
dynamodb: {
ApproximateCreationDateTime?: (...)
| (...);
Keys: Record<(...), (...)>;
NewImage?: (...) | (...);
OldImage?: (...) | (...);
SizeBytes: number;
};
eventID: string;
eventName: "INSERT"
| "MODIFY"
| "REMOVE";
eventSource: "aws:dynamodb";
recordFormat: "application/json";
tableName: string;
userIdentity?: null | { principalId: ...; type: ... };
};
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: {
awsRegion: string;
dynamodb: {
ApproximateCreationDateTime?: number;
Keys: Record<string, Record<string, any>>;
NewImage?: Record<string, any>;
OldImage?: Record<string, any>;
SizeBytes: number;
};
eventID: string;
eventName: "INSERT"
| "MODIFY"
| "REMOVE";
eventSource: "aws:dynamodb";
recordFormat: "application/json";
tableName: string;
userIdentity?:
| null
| { principalId: "dynamodb.amazonaws.com"; type: "Service" };
};
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: {
awsRegion: string;
dynamodb: {
ApproximateCreationDateTime?: number;
Keys: Record<string, Record<string, any>>;
NewImage?: Record<string, any>;
OldImage?: Record<string, any>;
SizeBytes: number;
};
eventID: string;
eventName: "INSERT"
| "MODIFY"
| "REMOVE";
eventSource: "aws:dynamodb";
recordFormat: "application/json";
tableName: string;
userIdentity?:
| null
| { principalId: "dynamodb.amazonaws.com"; type: "Service" };
};
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;
};
}[];
},
> = ...