Skip to content

One Observability Workshop v3.0.0


One Observability Workshop / constructs/lambda / WorkshopLambdaFunctionProperties

Interface: WorkshopLambdaFunctionProperties

Defined in: constructs/lambda.ts:186

Properties for configuring a workshop Lambda function.

Extended by

Properties

name

name: string

Defined in: constructs/lambda.ts:188

Unique name for the Lambda function


runtime

runtime: Runtime

Defined in: constructs/lambda.ts:190

Runtime environment for the function


depsLockFilePath?

optional depsLockFilePath: string

Defined in: constructs/lambda.ts:192

Path to the dependencies lock file (for Node.js functions)


entry

entry: string

Defined in: constructs/lambda.ts:194

Entry point file for the function code


memorySize

memorySize: number

Defined in: constructs/lambda.ts:196

Memory allocation for the function in MB


handler?

optional handler: string

Defined in: constructs/lambda.ts:198

Handler method name within the entry file


index?

optional index: string

Defined in: constructs/lambda.ts:200

The path (relative to entry) to the index file containing the exported handler.


logRetentionDays?

optional logRetentionDays: RetentionDays

Defined in: constructs/lambda.ts:202

Log retention period for CloudWatch logs


description?

optional description: string

Defined in: constructs/lambda.ts:204

Description of the function's purpose


scheduleExpression?

optional scheduleExpression: string

Defined in: constructs/lambda.ts:209

The schedule expression for traffic generation

Default

'rate(5 minute)'

enableSchedule?

optional enableSchedule: boolean

Defined in: constructs/lambda.ts:214

Whether to enable the EventBridge schedule

Default

false

timeout?

optional timeout: Duration

Defined in: constructs/lambda.ts:218

Lambda Timeout


vpc?

optional vpc: IVpc

Defined in: constructs/lambda.ts:222

VPC for the Lambda function


vpcSubnets?

optional vpcSubnets: SubnetSelection

Defined in: constructs/lambda.ts:226

VPC subnets for the Lambda function


securityGroups?

optional securityGroups: ISecurityGroup[]

Defined in: constructs/lambda.ts:230

Security groups for the Lambda function