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

    Interface NodeLambdaProps

    interface NodeLambdaProps {
        applicationLogLevelV2?: ApplicationLogLevel;
        architecture?: Architecture;
        bundling?: BundlingOptions;
        currentVersionOptions?: VersionOptions;
        datadogConfig?: DatadogConfig;
        datadogEnabled?: boolean;
        description?: string;
        entry: string;
        environment: "dev" | "test" | "preprod" | "prod" | "tools" | "sandbox";
        environmentVariables?: Record<string, string>;
        ephemeralStorageSize?: Size;
        filesystem?: FileSystem;
        forceFunctionName?: boolean;
        functionName: string;
        handlerName?: string;
        lambdaExecutionRoleAdditionalPermissions?: PolicyStatement[];
        layers?: ILayerVersion[];
        loggingFormat?: LoggingFormat;
        logGroupClass?: LogGroupClass;
        logRemovalPolicy?: RemovalPolicy;
        logRetention?: RetentionDays;
        managedPolicies?: IManagedPolicy[];
        memorySize?: number;
        reservedConcurrentExecutions?: number;
        retryAttempts?: number;
        runtime?: Runtime;
        securityGroups?: ISecurityGroup[];
        serviceName: string;
        systemLogLevelV2?: SystemLogLevel;
        timeout?: Duration;
        tracing?: Tracing;
        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

    currentVersionOptions?: VersionOptions

    Options for the lambda.Version resource automatically created by the fn.currentVersion method.

    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
    
    description?: string

    A description of the function.

    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
    
    ephemeralStorageSize?: Size

    The size of the function’s /tmp directory in MiB.

    512 MiB
    
    filesystem?: FileSystem

    The filesystem configuration for the lambda function

    forceFunctionName?: boolean

    Used to force the Lambda function name to be exactly as provided in functionName prop.

    functionName: string

    The name of the Lambda function. By default the function name is build as --. If forceFunctionName is set to true, the function name will be exactly as provided in this prop.

    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
    
    managedPolicies?: IManagedPolicy[]

    Managed Policies to attach to the Lambda Execution Role

    - No additional managed policies
    
    memorySize?: number

    Memory size for the Lambda function

    128
    
    reservedConcurrentExecutions?: number

    The maximum of concurrent executions you want to reserve for the function.

    No specific limit - limit set by account configuration
    
    retryAttempts?: number

    The maximum number of times to retry when the function returns an error. Minimum: 0 Maximum: 2

    2
    
    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)
    
    tracing?: Tracing

    Enable AWS X-Ray Tracing for Lambda Function.

    Tracing.DISABLED
    
    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.