Function

The Function construct encapsulates the resources needed for a Lambda function, including its IAM execution role and CloudWatch log group, with sensible defaults.

To define a function, you must provide three required properties:

  1. Runtime: The environment (e.g., Node.js, Python, Java).
  2. Handler: The name of the method in your code that AWS Lambda calls to run your function.
  3. Code: The source code for the function, which can be loaded from a local directory using Code.fromAsset()

See on how to expose a Spring Cloud Function providing the Lamda function via OpenAPI specs on API Gateway.

Property NameTypeDescription

References