Skip to main content

AWS Lambda invoker

Project description

AWS Lambda invoker

Simple package for lambda invocation with AWS boto3. This package is intended to be used as an interface for invoking AWS Lambda functions emulating AWS API Gateway, SNS, Event bridge and SQS.

Installation

$ pip install aws-lambda-invoker

Example

invoker = LambdaInvoker(
    lambda_name="TEST-LAMBDA",
    payload="{\"key\": \"value\"}",
    invoke_type=InvokeType.RequestResponse,
)
response = invoker.invoke()

# or using AGLambdaInvoker

invoker = AGLambdaInvoker(
    lambda_name="TEST-LAMBDA",
    method="GET",
    path="TEST-path",
    body="TEST-body",
    headers={"key": "value"},
    query_params={"key": "value"},
    path_params={"key": "value"},
)
response = invoker.invoke()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aws_lambda_invoker-0.0.1.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

aws_lambda_invoker-0.0.1-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page