aws-cdk-stack-builder-tool
aws-cdk-stack-builder-tool copied to clipboard
Ability to point in interface that value should be treated as element of array
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.