[英]Is it possible to use raw_input or getInput with AWS Lambda python functions?
Is it possible to include user input on AWS Lambda functions?是否可以在 AWS Lambda 函数中包含用户输入?
Does it require an API endpoint?它是否需要 API 端点?
The Lambda executes in a context with no direct user input, so you can't use any function that reads from the console. Lambda 在没有直接用户输入的上下文中执行,因此您不能使用从控制台读取的任何 function。
The Lambda Function Handler that you implement will take a parameter that allows the caller to pass in data to the function.您实现的Lambda Function 处理程序将采用允许调用者将数据传递给 function 的参数。
You can build on this with API Gateway to pass in data from the web request.您可以在此基础上使用API 网关从 web 请求中传递数据。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.