import { FunctionLoggingOptions } from './factory.js'; import { ApplicationLogLevel, LoggingFormat } from 'aws-cdk-lib/aws-lambda'; import { ILogGroup } from 'aws-cdk-lib/aws-logs'; import { Construct } from 'constructs'; /** * CDK Lambda logging options using non-deprecated properties * - level: ApplicationLogLevel for the lambda function (maps to applicationLogLevelV2) * - format: Logging format (JSON or TEXT) * - logGroup: Custom log group for the function (preferred over using logRetention directly) */ export type CDKLoggingOptions = { level?: ApplicationLogLevel; format?: LoggingFormat; logGroup?: ILogGroup; }; /** * Creates a LogGroup with the specified retention settings * This replaces the deprecated logRetention property on NodejsFunction */ export declare const createLogGroup: (scope: Construct, id: string, loggingOptions: FunctionLoggingOptions) => ILogGroup; /** * Converts logging options to CDK format using non-deprecated properties */ export declare const convertLoggingOptionsToCDK: (loggingOptions: FunctionLoggingOptions) => CDKLoggingOptions; //# sourceMappingURL=logging_options_parser.d.ts.map