简体   繁体   English

是否可以将 raw_input 或 getInput 与 AWS Lambda python 函数一起使用?

[英]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.

相关问题 AWS Lambda:Python 用户输入可能吗? - AWS Lambda: Python user input possible? 具有多种功能的AWS Python Lambda - AWS Python Lambda with multiple functions 是否可以在 aws lambda 中使用 bigquery? - Is it possible to use bigquery in aws lambda? 是否可以使用 AWS Step Functions 轮询 DynamoDB Stream 以降低 Lambda 的复杂性? - Is it possible to use AWS Step Functions to poll a DynamoDB Stream to reduce Lambda complexity? 如何将 chrome-aws-lambda 模块与 AWS lambda 函数一起使用? - How to use chrome-aws-lambda module with AWS lambda functions? 在 AWS Lambda 中运行原始用户输入(代码)的安全风险? - Security risks of running raw user input (code) in an AWS Lambda? 是否可以在 aws lambda function 中使用并行处理? - Is it possible to use parallel processing in aws lambda function? AWS Lambda:可以使用Oracle Java SDK吗? - AWS Lambda: it is possible to use Oracle Java SDK? 如何在 python 中获取 AWS lambda 中的用户输入 - How to take user input in AWS lambda in python 使用 AWS CDK 在 AWS Codepipeline 中部署 Python Lambda 函数 - Deploying Python Lambda Functions in AWS Codepipeline using AWS CDK
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM