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:
- Runtime: The environment (e.g., Node.js, Python, Java).
- Handler: The name of the method in your code that AWS Lambda calls to run your function.
- 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 Name | Type | Description |
|---|---|---|