Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 660 Bytes

File metadata and controls

25 lines (18 loc) · 660 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

LambdaContext

The LambdaContext typing is typically used in the handler method for the Lambda function.

from typing import Any, Dict
from aws_lambda_powertools.utilities.typing import LambdaContext

# highlight-start
def handler(event: Dict[str, Any], context: LambdaContext) -> Dict[str, Any]:
# highlight-end
    # Insert business logic
    return event