https://pulumi.com logo
g

glamorous-waitress-51149

08/05/2019, 8:35 AM
Copy code
const eventRule = new aws.cloudwatch.EventRule(prefix + "ping-rule", {
    name: prefix + "ping-rule",
    scheduleExpression: "rate(3 minutes)"
});

const eventTarget = new aws.cloudwatch.EventTarget(prefix + "ping-target", {
    rule: eventRule.name,
    arn: apiLambda.arn,
    input: "foo"
});