Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 678 Bytes

File metadata and controls

24 lines (17 loc) · 678 Bytes
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.

Utilities Typing

LambdaEvent and LambdaContext

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