In below code generated from tool, "eventName" and "eventSource" attributes should be arrays in the same way as "source" and "detailType":
new events.Rule(this, "Event_r53dump", {
eventPattern: {
detail: {
eventName: "ChangeResourceRecordSets",
eventSource: "route53.amazonaws.com",
},
detailType: ["AWS API Call via CloudTrail"],
source: ["aws.route53"],
},
targets: [new eventsTargets.LambdaFunction(r53dump)],
});
It will be great to have ability to influence code generation behavior to add square brackets.
In below code generated from tool, "eventName" and "eventSource" attributes should be arrays in the same way as "source" and "detailType":
It will be great to have ability to influence code generation behavior to add square brackets.