Skip to content

Ability to point in interface that value should be treated as element of array #9

@w1zdun

Description

@w1zdun

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions