@finnairoyj/cdk-constructs-lib - v0.1.11
    Preparing search index...

    Interface NodeLambdaProps

    interface NodeLambdaProps {
        applicationLogLevelV2?: ApplicationLogLevel;
        architecture?: Architecture;
        bundling?: BundlingOptions;
        datadogConfig?: DatadogConfig;
        datadogEnabled?: boolean;
        entry: string;
        environment: "dev" | "test" | "preprod" | "prod" | "tools" | "sandbox";
        environmentVariables?: Record<string, string>;
        functionName: string;
        handlerName?: string;
        lambdaExecutionRoleAdditionalPermissions?: PolicyStatement[];
        layers?: ILayerVersion[];
        loggingFormat?: LoggingFormat;
        logGroupClass?: LogGroupClass;
        logRemovalPolicy?: RemovalPolicy;
        logRetention?: RetentionDays;
        memorySize?: number;
        runtime?: Runtime;
        securityGroups?: ISecurityGroup[];
        serviceName: string;
        systemLogLevelV2?: SystemLogLevel;
        timeout?: Duration;
        vpc?: IVpc;
        vpcSubnets?: SubnetSelection;
    }
    Index

    Properties

    applicationLogLevelV2?: ApplicationLogLevel

    Application log level V2

    ApplicationLogLevel.INFO
    
    architecture?: Architecture

    Architecture of the Lambda function

    Architecture.ARM_64
    
    bundling?: BundlingOptions

    Bundling options

    datadogConfig?: DatadogConfig

    Datadog configuration for the Lambda function. If provided, the Lambda function will be instrumented with Datadog using the provided configuration.

    datadogEnabled?: boolean

    Whether to enable Datadog instrumentation for the Lambda function

    false
    

    Readonlyentry

    entry: string

    The entry file path for the Lambda function

    environment: "dev" | "test" | "preprod" | "prod" | "tools" | "sandbox"

    The environment/phase the Lambda function is deployed to.

    environmentVariables?: Record<string, string>

    Environment variables to pass to the Lambda as key-value pairs

    - No environment variables
    
    functionName: string

    The name of the Lambda function

    handlerName?: string

    The name of the Handler

    'handler'
    
    lambdaExecutionRoleAdditionalPermissions?: PolicyStatement[]

    Additional permissions to add to the Lambda Execution Role

    layers?: ILayerVersion[]

    A list of layers to add to the function's execution environment

    loggingFormat?: LoggingFormat

    Logging format

    LoggingFormat.JSON
    
    logGroupClass?: LogGroupClass

    Log group class for the Lambda function's log group

    LogGroupClass.INFREQUENT_ACCESS
    
    logRemovalPolicy?: RemovalPolicy

    Log removal policy for the Lambda function's log group

    RemovalPolicy.RETAIN
    
    logRetention?: RetentionDays

    Log retention period for the Lambda function's log group

    RetentionDays.SIX_MONTHS
    
    memorySize?: number

    Memory size for the Lambda function

    128
    
    runtime?: Runtime

    The Node runtime for the Lambda function

    Runtime.NODEJS_24_X
    
    securityGroups?: ISecurityGroup[]

    The list of security groups to associate with the Lambda function. Only used if vpc is provided.

    serviceName: string

    The name of the service the Lambda function belongs to. Used as a prefix in naming, and for default Datadog service name if Datadog is provided.

    systemLogLevelV2?: SystemLogLevel

    System log level V2

    SystemLogLevel.WARN
    
    timeout?: Duration

    The Lambda timeout duration

    Duration.seconds(30)
    
    vpc?: IVpc

    VPC network to place Lambda function in. If provided must provide vpcSubnets as well.

    vpcSubnets?: SubnetSelection

    The subnets to place Lambda function in. Must be provided if vpc is provided.