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?¶
optionaldepsLockFilePath: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?¶
optionalhandler:string
Defined in: constructs/lambda.ts:198
Handler method name within the entry file
Inherited from¶
WorkshopLambdaFunctionProperties.handler
index?¶
optionalindex: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?¶
optionallogRetentionDays:RetentionDays
Defined in: constructs/lambda.ts:202
Log retention period for CloudWatch logs
Inherited from¶
WorkshopLambdaFunctionProperties.logRetentionDays
description?¶
optionaldescription:string
Defined in: constructs/lambda.ts:204
Description of the function's purpose
Inherited from¶
WorkshopLambdaFunctionProperties.description
scheduleExpression?¶
optionalscheduleExpression:string
Defined in: constructs/lambda.ts:209
The schedule expression for traffic generation
Default¶
Inherited from¶
WorkshopLambdaFunctionProperties.scheduleExpression
enableSchedule?¶
optionalenableSchedule:boolean
Defined in: constructs/lambda.ts:214
Whether to enable the EventBridge schedule
Default¶
Inherited from¶
WorkshopLambdaFunctionProperties.enableSchedule
timeout?¶
optionaltimeout:Duration
Defined in: constructs/lambda.ts:218
Lambda Timeout
Inherited from¶
WorkshopLambdaFunctionProperties.timeout
vpc?¶
optionalvpc:IVpc
Defined in: constructs/lambda.ts:222
VPC for the Lambda function
Inherited from¶
WorkshopLambdaFunctionProperties.vpc
vpcSubnets?¶
optionalvpcSubnets:SubnetSelection
Defined in: constructs/lambda.ts:226
VPC subnets for the Lambda function
Inherited from¶
WorkshopLambdaFunctionProperties.vpcSubnets
securityGroups?¶
optionalsecurityGroups: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