首页 文章

CloudWatch Events - Schedule触发器传递给Lambda函数的参数类型是什么?

提问于
浏览
7

这被问到here但没有提供答案 . CloudWatch预定事件传递给Lambda函数(在Java中)的参数类型是什么?

this中,它表示输入类型是"Predefined AWS event types defined in the aws-lambda-java-events library."之一 . 但是,正如我看到的那样,这个库here没有定义计划或cloudwatch事件类型 .

任何帮助将非常感谢!

2 回答

  • 0

    它应该与JSON兼容,以便它适用于AWS Lambda支持的任何语言 . 我'm guessing it'与事件对象相同,因此请尝试 Map<String, Object>

  • 0

    跟随Mark B. 's comment, it turns out the parameter is a LinkedHashMap with the keys and values according to what' s在this页面的最底部定义 .

相关问题