aws-lambda-typing

Python type hints for AWS Lambda

Latest version: 2.20.0 registry icon
Maintenance score
0
Safety score
0
Popularity score
10
Check your open source dependency risks. Get immediate insight about security, stability and licensing risks.
Security
  Vulnerabilities
Version Suggest Low Medium High Critical
2.20.0 0 0 0 0 0
2.19.0 0 0 0 0 0
2.18.0 0 0 0 0 0
2.17.1 0 0 0 0 0
2.17.0 0 0 0 0 0
2.16.4 0 0 0 0 0
2.16.3 0 0 0 0 0
2.16.2 0 0 0 0 0
2.16.1 0 0 0 0 0
2.16.0 0 0 0 0 0
2.15.0 0 0 0 0 0
2.14.0 0 0 0 0 0
2.13.1 0 0 0 0 0
2.13.0 0 0 0 0 0
2.12.0 0 0 0 0 0
2.11.1 0 0 0 0 0
2.11.0 0 0 0 0 0
2.10.1 0 0 0 0 0
2.10.0 0 0 0 0 0
2.9.11 0 0 0 0 0
2.9.10 0 0 0 0 0
2.9.9 0 0 0 0 0
2.9.8 0 0 0 0 0
2.9.7 0 0 0 0 0
2.9.6 0 0 0 0 0
2.9.5 0 0 0 0 0
2.9.4 0 0 0 0 0
2.9.3 0 0 0 0 0
2.9.2 0 0 0 0 0
2.9.1 0 0 0 0 0
2.9.0 0 0 0 0 0
2.8.1 0 0 0 0 0
2.8.0 0 0 0 0 0
2.6.0 0 0 0 0 0
2.5.0 0 0 0 0 0
2.4.3 0 0 0 0 0
2.4.2 0 0 0 0 0
2.4.1 0 0 0 0 0
2.4.0 0 0 0 0 0
2.3.0 0 0 0 0 0
2.2.1 0 0 0 0 0
2.2.0 0 0 0 0 0
2.1.1 0 0 0 0 0
2.1.0 0 0 0 0 0
2.0.4 0 0 0 0 0
2.0.3 0 0 0 0 0
2.0.2 0 0 0 0 0
2.0.1 0 0 0 0 0
2.0.0 0 0 0 0 0
1.0.8 0 0 0 0 0
1.0.7 0 0 0 0 0
1.0.6 0 0 0 0 0
1.0.5 0 0 0 0 0
1.0.4 0 0 0 0 0
1.0.3 0 0 0 0 0
1.0.2 0 0 0 0 0
1.0.1 0 0 0 0 0
1.0.0 0 0 0 0 0
0.0.18 0 0 0 0 0
0.0.17 0 0 0 0 0
0.0.16 0 0 0 0 0
0.0.15 0 0 0 0 0
0.0.14 0 0 0 0 0
0.0.13 0 0 0 0 0
0.0.12 0 0 0 0 0
0.0.11 0 0 0 0 0
0.0.10 0 0 0 0 0
0.0.9 0 0 0 0 0
0.0.7 0 0 0 0 0
0.0.6 0 0 0 0 0
0.0.5 0 0 0 0 0
0.0.4 0 0 0 0 0
0.0.3 0 0 0 0 0
0.0.2 0 0 0 0 0
0.0.1 0 0 0 0 0

Stability
Latest release:

2.20.0 - This version may not be safe as it has not been updated for a long time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform

Licensing

Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.

MIT   -   MIT License

Not a wildcard

Not proprietary

OSI Compliant



AWS Lambda Typing

build test License python_version pypi_v pypi_dm

A package that provides type hints for AWS Lambda event, context and response objects. It's a convenient way to get autocomplete and type hints built into IDEs. Type annotations are not checked at runtime but are only enforced by third party tools such as type checkers, IDEs, linters, etc.

Table of Contents

Usage

Example: AWS SQS event

from aws_lambda_typing import context as context_, events


def handler(event: events.SQSEvent, context: context_.Context) -> None:
    for record in event['Records']:
        print(record['body'])

    print(context.get_remaining_time_in_millis())

    message: events.sqs.SQSMessage

Demo

IDE autocomplete

ide_autocomplete

IDE code reference information

code_reference_information

Types

Context

  • Context

Events

  • ALBEvent
  • ApacheKafkaEvent
  • APIGatewayRequestAuthorizerEvent
  • APIGatewayTokenAuthorizerEvent
  • APIGatewayProxyEventV1
  • APIGatewayProxyEventV2
  • AppSyncResolverEvent
  • CloudFormationCustomResourceEvent
  • CloudWatchEventsMessageEvent (Deprecated since version 2.10.0: use EventBridgeEvent instead.)
  • CloudWatchLogsEvent
  • CodeCommitMessageEvent
  • CodePipelineEvent
  • CognitoCustomMessageEvent
  • CognitoPostConfirmationEvent
  • ConfigEvent
  • DynamoDBStreamEvent
  • EventBridgeEvent
  • EC2ASGCustomTerminationPolicyEvent
  • IoTPreProvisioningHookEvent
  • KinesisFirehoseEvent
  • KinesisStreamEvent
  • MQEvent
  • MSKEvent
  • S3Event
  • S3BatchEvent
  • SecretsManagerRotationEvent
  • SESEvent
  • SNSEvent
  • SQSEvent
  • WebSocketConnectEvent
  • WebSocketRouteEvent

Requests

  • SNSPublish
  • SNSPublishBatch

Responses

  • ALBResponse
  • APIGatewayAuthorizerResponse
  • APIGatewayProxyResponseV1
  • APIGatewayProxyResponseV2
  • DynamoDBBatchResponse
  • IoTPreProvisioningHookResponse
  • KinesisFirehoseTransformationResponse
  • S3BatchResponse

Other

  • PolicyDocument

Contributing

Contributions are welcome! See the Contributing Guide.

Issues

If you encounter any problems, please file an issue along with a detailed description.