[英]AWS Lambda: call function from another AWS lambda using boto3 invoke
[英]Is it possible to synchronously invoke an AWS Lambda function from Python Boto?
此页面仅显示异步调用的方法。 我想象会有一个同步调用选项。
http://boto.readthedocs.org/en/latest/ref/awslamba.html?highlight=invoke
显然有可能使用.NET:
文档说明将InvocationType
指定为RequestResponse
以进行同步调用
response = client.invoke(
FunctionName='string',
InvocationType= 'RequestResponse',
LogType='None'|'Tail',
ClientContext='string',
Payload=b'bytes'|file,
Qualifier='string'
)
你当然可以这样做。
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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.