UNPKG

@aws-lambda-powertools/batch

Version:

The batch processing package for the Powertools for AWS Lambda (TypeScript) library.

20 lines 1.05 kB
import type { GenericLogger } from '@aws-lambda-powertools/commons/types'; import { EventType } from './constants.js'; import type { BatchProcessorConfig, EventSourceDataClassTypes } from './types.js'; /** * Parse the record according to the schema and event type passed. * * If the passed schema is already an extended schema, * use the schema directly to parse the record. * * Parts of the parser integration within BatchProcessor rely on Zod for schema transformations, * however some other parts also support other Standard Schema-compatible libraries. * * @param record - The record to be parsed * @param eventType - The type of event to process * @param logger - A logger instance for logging * @param parserConfig - The parser configuration options */ declare const parser: (record: EventSourceDataClassTypes, eventType: keyof typeof EventType, logger: Pick<GenericLogger, "debug" | "warn" | "error">, parserConfig: BatchProcessorConfig) => Promise<EventSourceDataClassTypes>; export { parser }; //# sourceMappingURL=parser.d.ts.map