![](/img/trans.png)
[英]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.