Skip to content

[aws-events] : "roleARN" property added to L2 "Rule" construct #33722

@chawsddoc

Description

@chawsddoc

Describe the feature

"roleARN" property added to L2 "Rule" construct

L2 Rule Construct: https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_events.Rule.html#class-rule-construct

Currently this is supported within the L1 Construct, and can be modified through escape hatches, however there is an interest in having this supported within the L2 Construct baseline like the below:

example for L2 Rule add role properties

const rule = new events.Rule(this, 'rule', {
  eventPattern: {
    source: ["aws.ec2"],
  },
  role: Event_Role,
});

Use Case

This would allows the creation of this resource with this property to be easier when utilizing an L2 Construct.

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

Latest Version

Environment details (OS name and version, etc.)

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-eventsRelated to CloudWatch Eventseffort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions