简体   繁体   English

从 AWS Lambda 获取调用 cloudwatch 规则

[英]Get invoking cloudwatch rule from AWS Lambda

If I have a lambda that's only invoked from a cloudwatch rule, is there a way to get the invoking rule's ARN from the lambda without having it passed in via a parameter?如果我有一个仅从 cloudwatch 规则调用的 lambda,有没有办法从 lambda 获取调用规则的 ARN 而无需通过参数传入?

See the example here .请参阅此处的示例。 The schedule's ARN should be in the event parameter passed to your Lambda function.计划的 ARN 应该在传递给您的event参数中 Lambda function。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM