Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
w1zdun opened this issue Nov 15, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@w1zdun
Copy link

w1zdun commented Nov 15, 2023

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.

@spugachev spugachev self-assigned this Nov 15, 2023
@spugachev spugachev added the enhancement New feature or request label Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants