Variable DynamoDBStreamSchemaConst
DynamoDBStreamSchema: ZodObject<
{
Records: ZodArray<
ZodObject<
{
awsRegion: ZodString;
dynamodb: ZodEffects<
ZodObject<
{
ApproximateCreationDateTime: ZodOptional<ZodNumber>;
Keys: ZodRecord<ZodString, ZodRecord<ZodString, ZodAny>>;
NewImage: ZodOptional<ZodRecord<ZodString, ZodAny>>;
OldImage: ZodOptional<ZodRecord<ZodString, ZodAny>>;
SequenceNumber: ZodString;
SizeBytes: ZodNumber;
StreamViewType: ZodEnum<
["NEW_IMAGE", "OLD_IMAGE", "NEW_AND_OLD_IMAGES", "KEYS_ONLY"],
>;
},
"strip",
ZodTypeAny,
{
ApproximateCreationDateTime?: number;
Keys: Record<string, Record<string, any>>;
NewImage?: Record<string, any>;
OldImage?: Record<string, any>;
SequenceNumber: string;
SizeBytes: number;
StreamViewType:
| "NEW_IMAGE"
| "OLD_IMAGE"
| "NEW_AND_OLD_IMAGES"
| "KEYS_ONLY";
},
{
ApproximateCreationDateTime?: number;
Keys: Record<string, Record<string, any>>;
NewImage?: Record<string, any>;
OldImage?: Record<string, any>;
SequenceNumber: string;
SizeBytes: number;
StreamViewType:
| "NEW_IMAGE"
| "OLD_IMAGE"
| "NEW_AND_OLD_IMAGES"
| "KEYS_ONLY";
},
>,
{
ApproximateCreationDateTime?: number;
Keys: Record<string, Record<string, any>>;
NewImage?: Record<string, any>;
OldImage?: Record<string, any>;
SizeBytes: number;
},
{
ApproximateCreationDateTime?: number;
Keys: Record<string, Record<string, any>>;
NewImage?: Record<string, any>;
OldImage?: Record<string, any>;
SequenceNumber: string;
SizeBytes: number;
StreamViewType:
| "NEW_IMAGE"
| "OLD_IMAGE"
| "NEW_AND_OLD_IMAGES"
| "KEYS_ONLY";
},
>;
eventID: ZodString;
eventName: ZodEnum<["INSERT", "MODIFY", "REMOVE"]>;
eventSource: ZodLiteral<"aws:dynamodb">;
eventSourceARN: ZodString;
eventVersion: ZodString;
userIdentity: ZodOptional<
ZodObject<
{
principalId: ZodLiteral<"dynamodb.amazonaws.com">;
type: ZodEnum<["Service"]>;
},
"strip",
ZodTypeAny,
{ principalId: "dynamodb.amazonaws.com"; type: "Service" },
{ principalId: "dynamodb.amazonaws.com"; type: "Service" },
>,
>;
},
"strip",
ZodTypeAny,
{
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";
eventSourceARN: string;
eventVersion: string;
userIdentity?: {
principalId: "dynamodb.amazonaws.com";
type: "Service";
};
},
{
awsRegion: string;
dynamodb: {
ApproximateCreationDateTime?: number;
Keys: Record<string, Record<string, any>>;
NewImage?: Record<string, any>;
OldImage?: Record<string, any>;
SequenceNumber: string;
SizeBytes: number;
StreamViewType:
| "NEW_IMAGE"
| "OLD_IMAGE"
| "NEW_AND_OLD_IMAGES"
| "KEYS_ONLY";
};
eventID: string;
eventName: "INSERT"
| "MODIFY"
| "REMOVE";
eventSource: "aws:dynamodb";
eventSourceARN: string;
eventVersion: string;
userIdentity?: {
principalId: "dynamodb.amazonaws.com";
type: "Service";
};
},
>,
"many",
>;
},
"strip",
ZodTypeAny,
{
Records: {
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";
eventSourceARN: string;
eventVersion: string;
userIdentity?: { principalId: "dynamodb.amazonaws.com"; type: "Service" };
}[];
},
{
Records: {
awsRegion: string;
dynamodb: {
ApproximateCreationDateTime?: number;
Keys: Record<string, Record<string, any>>;
NewImage?: Record<string, any>;
OldImage?: Record<string, any>;
SequenceNumber: string;
SizeBytes: number;
StreamViewType:
| "NEW_IMAGE"
| "OLD_IMAGE"
| "NEW_AND_OLD_IMAGES"
| "KEYS_ONLY";
};
eventID: string;
eventName: "INSERT"
| "MODIFY"
| "REMOVE";
eventSource: "aws:dynamodb";
eventSourceARN: string;
eventVersion: string;
userIdentity?: { principalId: "dynamodb.amazonaws.com"; type: "Service" };
}[];
},
> = ...
Zod schema for Amazon DynamoDB Stream event.