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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for aws_lambda_invoker-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e470252ab181383bb53a4e08e89f337d8723934aa7ba62259ebcc7ca16b965db |
|
MD5 | 157d99727cca1015df4307ee3711a3b4 |
|
BLAKE2b-256 | 1127453b40a90b3747da2450fb266c72e8b50639f31f67898fb68741573c89eb |