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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file aws_lambda_invoker-0.0.1.tar.gz.

File metadata

  • Download URL: aws_lambda_invoker-0.0.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.6

File hashes

Hashes for aws_lambda_invoker-0.0.1.tar.gz
Algorithm Hash digest
SHA256 eae813d5af998a86c230e18d7fd2d1d8ae8d44e5566806abbc9ac98ba940a631
MD5 c1e489b9a1ed4ba8e1136953a356af3e
BLAKE2b-256 cbbb172536ba0e9a28a7f02867cb267d943929b09cc07f360f43840090e10cde

See more details on using hashes here.

File details

Details for the file aws_lambda_invoker-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for aws_lambda_invoker-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e470252ab181383bb53a4e08e89f337d8723934aa7ba62259ebcc7ca16b965db
MD5 157d99727cca1015df4307ee3711a3b4
BLAKE2b-256 1127453b40a90b3747da2450fb266c72e8b50639f31f67898fb68741573c89eb

See more details on using hashes here.

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