One Observability Workshop v3.0.0
One Observability Workshop / serverless/functions/petfood/stock-processor / PetfoodStockProcessorFunction
Class: PetfoodStockProcessorFunction¶
Defined in: serverless/functions/petfood/stock-processor.ts:42
Lambda function that processes StockPurchased events and decreases stock quantities
Extends¶
Constructors¶
Constructor¶
new PetfoodStockProcessorFunction(
scope,id,properties):PetfoodStockProcessorFunction
Defined in: serverless/functions/petfood/stock-processor.ts:43
Parameters¶
scope¶
Construct
id¶
string
properties¶
PetfoodStockProcessorProperties
Returns¶
PetfoodStockProcessorFunction
Overrides¶
WokshopLambdaFunction.constructor
Properties¶
function¶
function:
Function
Defined in: constructs/lambda.ts:258
The Lambda function instance
Inherited from¶
WokshopLambdaFunction.function
Methods¶
scheduleFunction()¶
scheduleFunction(
scheduleExpression):void
Defined in: constructs/lambda.ts:376
Use event bridge to schedule the function execution using the specified schedule expression
Parameters¶
scheduleExpression¶
string
Returns¶
void
Inherited from¶
WokshopLambdaFunction.scheduleFunction
addFunctionPermissions()¶
addFunctionPermissions(
properties):void
Defined in: serverless/functions/petfood/stock-processor.ts:63
Adds IAM permissions required by the Lambda function. Must be implemented by concrete subclasses.
Parameters¶
properties¶
PetfoodStockProcessorProperties
Function configuration properties
Returns¶
void
Overrides¶
WokshopLambdaFunction.addFunctionPermissions
createOutputs()¶
createOutputs():
void
Defined in: serverless/functions/petfood/stock-processor.ts:105
Creates CloudFormation outputs for the Lambda function. Must be implemented by concrete subclasses.
Returns¶
void
Overrides¶
WokshopLambdaFunction.createOutputs
getEnvironmentVariables()¶
getEnvironmentVariables(
properties): {[key:string]:string; } |undefined
Defined in: serverless/functions/petfood/stock-processor.ts:106
Returns environment variables for the Lambda function. Must be implemented by concrete subclasses.
Parameters¶
properties¶
WorkshopLambdaFunctionProperties
Function configuration properties
Returns¶
{[key: string]: string; } | undefined
Map of environment variable names to values
Overrides¶
WokshopLambdaFunction.getEnvironmentVariables
getLayers()¶
getLayers(
_properties):ILayerVersion[]
Defined in: serverless/functions/petfood/stock-processor.ts:125
Get Lambda layers for the function
Parameters¶
_properties¶
WorkshopLambdaFunctionProperties
Returns¶
ILayerVersion[]
Overrides¶
WokshopLambdaFunction.getLayers
getBundling()¶
getBundling(
_properties):BundlingOptions
Defined in: serverless/functions/petfood/stock-processor.ts:144
Get bundling options for the Lambda function
Parameters¶
_properties¶
WorkshopLambdaFunctionProperties
Returns¶
BundlingOptions