Skip to content

One Observability Workshop v3.0.0


One Observability Workshop / serverless/functions/petfood/stock-processor / PetfoodStockProcessorProperties

Interface: PetfoodStockProcessorProperties

Defined in: serverless/functions/petfood/stock-processor.ts:32

Properties for the pet food stock processor Lambda.

Extends

Properties

name

name: string

Defined in: constructs/lambda.ts:188

Unique name for the Lambda function

Inherited from

WorkshopLambdaFunctionProperties.name


runtime

runtime: Runtime

Defined in: constructs/lambda.ts:190

Runtime environment for the function

Inherited from

WorkshopLambdaFunctionProperties.runtime


depsLockFilePath?

optional depsLockFilePath: string

Defined in: constructs/lambda.ts:192

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

Inherited from

WorkshopLambdaFunctionProperties.depsLockFilePath


entry

entry: string

Defined in: constructs/lambda.ts:194

Entry point file for the function code

Inherited from

WorkshopLambdaFunctionProperties.entry


memorySize

memorySize: number

Defined in: constructs/lambda.ts:196

Memory allocation for the function in MB

Inherited from

WorkshopLambdaFunctionProperties.memorySize


handler?

optional handler: string

Defined in: constructs/lambda.ts:198

Handler method name within the entry file

Inherited from

WorkshopLambdaFunctionProperties.handler


index?

optional index: string

Defined in: constructs/lambda.ts:200

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

Inherited from

WorkshopLambdaFunctionProperties.index


logRetentionDays?

optional logRetentionDays: RetentionDays

Defined in: constructs/lambda.ts:202

Log retention period for CloudWatch logs

Inherited from

WorkshopLambdaFunctionProperties.logRetentionDays


description?

optional description: string

Defined in: constructs/lambda.ts:204

Description of the function's purpose

Inherited from

WorkshopLambdaFunctionProperties.description


scheduleExpression?

optional scheduleExpression: string

Defined in: constructs/lambda.ts:209

The schedule expression for traffic generation

Default

'rate(5 minute)'

Inherited from

WorkshopLambdaFunctionProperties.scheduleExpression


enableSchedule?

optional enableSchedule: boolean

Defined in: constructs/lambda.ts:214

Whether to enable the EventBridge schedule

Default

false

Inherited from

WorkshopLambdaFunctionProperties.enableSchedule


timeout?

optional timeout: Duration

Defined in: constructs/lambda.ts:218

Lambda Timeout

Inherited from

WorkshopLambdaFunctionProperties.timeout


vpc?

optional vpc: IVpc

Defined in: constructs/lambda.ts:222

VPC for the Lambda function

Inherited from

WorkshopLambdaFunctionProperties.vpc


vpcSubnets?

optional vpcSubnets: SubnetSelection

Defined in: constructs/lambda.ts:226

VPC subnets for the Lambda function

Inherited from

WorkshopLambdaFunctionProperties.vpcSubnets


securityGroups?

optional securityGroups: ISecurityGroup[]

Defined in: constructs/lambda.ts:230

Security groups for the Lambda function

Inherited from

WorkshopLambdaFunctionProperties.securityGroups


eventBridgeBus

eventBridgeBus: IEventBus

Defined in: serverless/functions/petfood/stock-processor.ts:34

EventBridge bus to subscribe to StockPurchased events


petfoodTable

petfoodTable: ITable

Defined in: serverless/functions/petfood/stock-processor.ts:36

DynamoDB table for food item stock quantities