Ability to point in interface that value should be treated as element of array
Opened this issue · 0 comments
w1zdun commented
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.