CloudWatchEnvelope: {
    parse<T extends ZodType>(data: unknown, schema: T): TypeOf<T>[];
    safeParse<T extends ZodType>(
        data: unknown,
        schema: T,
    ): ParsedResult<unknown, TypeOf<T>[]>;
} = ...

CloudWatch Envelope to extract a List of log records.

The record's body parameter is a string (after being base64 decoded and gzipped), though it can also be a JSON encoded string. Regardless of its type it'll be parsed into a BaseModel object.

Note: The record will be parsed the same way so if model is str

Type declaration