This page shows only a method for asynchronous invocation. I imagined there would be a synchronous invocation option.
http://boto.readthedocs.org/en/latest/ref/awslamba.html?highlight=invoke
Apparently it is possible with .NET:
How can I invoke an AWS Lambda function from my EC2 instance?
The documentation says to specify InvocationType
as RequestResponse
for synchronous invocation
response = client.invoke(
FunctionName='string',
InvocationType= 'RequestResponse',
LogType='None'|'Tail',
ClientContext='string',
Payload=b'bytes'|file,
Qualifier='string'
)
You can certainly do this.
response = client.invoke(
FunctionName='string',
InvocationType='Event'|'RequestResponse'|'DryRun',
LogType='None'|'Tail',
ClientContext='string',
Payload=b'bytes',
Qualifier='string'
)
http://boto3.readthedocs.org/en/latest/reference/services/lambda.html#Lambda.Client.invoke
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With