---
title: "aws-lambda-typing | pypx"
description: "A package that provides type hints for AWS Lambda event, context and response objects"
canonical_url: "https://pypx.app/packages/aws-lambda-typing"
meta:
  "og:description": "A package that provides type hints for AWS Lambda event, context and response objects"
  "og:image": "https://pypx.app/_og/d/h_630%2Cc_PackageCard%2Cname_aws-lambda-typing%2Cversion_2.20.0%2Csummary_~QSBwYWNrYWdlIHRoYXQgcHJvdmlkZXMgdHlwZSBoaW50cyBmb3IgQVdTIExhbWJkYSBldmVudCwgY29udGV4dCBhbmQgcmVzcG9uc2Ugb2JqZWN0cw%2Clicense_MIT%2BLicense%2Cp_Ii9wYWNrYWdlcy9hd3MtbGFtYmRhLXR5cGluZyI%2Cs_2Wh9zPFAZ1pvMwXY.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "aws-lambda-typing 2.20.0"
  "twitter:image": "https://pypx.app/_og/d/h_630%2Cc_PackageCard%2Cname_aws-lambda-typing%2Cversion_2.20.0%2Csummary_~QSBwYWNrYWdlIHRoYXQgcHJvdmlkZXMgdHlwZSBoaW50cyBmb3IgQVdTIExhbWJkYSBldmVudCwgY29udGV4dCBhbmQgcmVzcG9uc2Ugb2JqZWN0cw%2Clicense_MIT%2BLicense%2Cp_Ii9wYWNrYWdlcy9hd3MtbGFtYmRhLXR5cGluZyI%2Cs_2Wh9zPFAZ1pvMwXY.png"
---

> Index of every page on this site: [llms.txt](https://pypx.app/llms.txt)

# **aws-lambda-typing**

v2.20.0

A package that provides type hints for AWS Lambda event, context and response objects

34 KB Python 3.6+ py3-none-anyMIT License1 deps Possibly Unmaintained

[** Diff **](https://pypx.app/packages/aws-lambda-typing/diff)

`$ uv add aws-lambda-typing`

# AWS Lambda Typing

![build](https://github.com/MousaZeidBaker/aws-lambda-typing/workflows/Publish/badge.svg) ![test](https://github.com/MousaZeidBaker/aws-lambda-typing/workflows/Test/badge.svg) [![License](https://img.shields.io/badge/License-MIT-yellow)](https://pypx.app/LICENSE) ![python\_version](https://img.shields.io/badge/python-%3E=3.6-blue.svg) [![pypi\_v](https://img.shields.io/pypi/v/aws-lambda-typing)](https://pypi.org/project/aws-lambda-typing) [![pypi\_dm](https://img.shields.io/pypi/dm/aws-lambda-typing)](https://pypi.org/project/aws-lambda-typing)

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](#usage)
- [Demo](#demo)
- [Types](#types)
  - [Context](#context)
  - [Events](#events)
  - [Responses](#responses)
- Test
- [Contributing](#contributing)
- [Issues](#issues)

## 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](https://raw.githubusercontent.com/MousaZeidBaker/aws-lambda-typing/master/media/ide_autocomplete.gif)

### IDE code reference information

![code\_reference\_information](https://raw.githubusercontent.com/MousaZeidBaker/aws-lambda-typing/master/media/code_reference_information.gif)

## 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](https://github.com/MousaZeidBaker/aws-lambda-typing/blob/master/CONTRIBUTING.md).

## Issues

If you encounter any problems, please file an [issue](https://github.com/MousaZeidBaker/aws-lambda-typing/issues) along with a detailed description.

## **Details **

<dl>

<dt>Version</dt>
<dd>2.20.0</dd>

<dt>License</dt>
<dd>MIT License</dd>

<dt>Python</dt>
<dd>&lt;4.0,&gt;=3.6</dd>

<dt>Maintainer</dt>
<dd>Mousa Zeid Baker</dd></dl>

## **Links**

- [Homepage](https://github.com/MousaZeidBaker/aws-lambda-typing)
- [Repository](https://github.com/MousaZeidBaker/aws-lambda-typing)
- [View on PyPI](https://pypi.org/project/aws-lambda-typing/)

## **Maintainers **

- Mousa Zeid Baker

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://pypx.app/#website","@type":"WebSite","description":"The Python Package Index, reimagined. Fast search, dependency insights, download trends, and changelogs — all in one place.","name":"pypx","url":"https://pypx.app/"},{"@id":"https://pypx.app/packages/aws-lambda-typing#webpage","@type":"WebPage","description":"A package that provides type hints for AWS Lambda event, context and response objects","name":"aws-lambda-typing","url":"https://pypx.app/packages/aws-lambda-typing","isPartOf":{"@id":"https://pypx.app/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://pypx.app/packages/aws-lambda-typing"]}]},{"@id":"https://pypx.app/packages/aws-lambda-typing#/schema/software-application/1","@type":"SoftwareApplication","applicationCategory":"DeveloperApplication","description":"A package that provides type hints for AWS Lambda event, context and response objects","license":"MIT License","name":"aws-lambda-typing","softwareVersion":"2.20.0"}]}
```

## Sitemap

See the full [sitemap](https://pypx.app/sitemap.md) for all pages.
