title | description |
---|---|
Typing |
Utility |
import Note from "../../src/components/Note"
This typing utility provides static typing classes that can be used to ease the development by providing the IDE type hints.
The LambdaEvent
and the LambdaContext
typings are typically used in the handler method for the Lambda function.
from aws_lambda_powertools.utilities.typing import LambdaEvent, LambdaContext
# highlight-start
def handler(event: LambdaEvent, context: LambdaContext) -> LambdaEvent:
# highlight-end
# Insert business logic
return event