1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
【以下的回答经过翻译处理】 如果您在SFN中使用资源属性中的完整函数ARN调用lambda函数,则只会返回Lambda函数返回的内容。此外,您不想使用json.dump返回的对象,只需返回一个映射,它将包含在您的输出中。例如,以下函数:def lambda_handler(event, context): # TODO implement body = { 'Test': 'abc', 'Value': 123 } return body`当像这样调用时:`"Hello": { "Type": "Task", "Resource": "arn:aws:lambda:eu-west-1:xxxxxxxxx:function:HelloWorld:$LATEST", "ResultPath": "$.LambdaResult", "Next": "World"},`使用以下输入:`{ "Input": "My input"}`返回以下内容:`{ "Input": "My input", "LambdaResult": { "Test": "abc", "Value": 123 }}
관련 콘텐츠
- 질문됨 9일 전
- 질문됨 한 달 전
- AWS 공식업데이트됨 일 년 전
- AWS 공식업데이트됨 2년 전