- 
                Notifications
    You must be signed in to change notification settings 
- Fork 4.3k
Closed
Labels
@aws-cdk/aws-eventsRelated to CloudWatch EventsRelated to CloudWatch Eventseffort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p2
Description
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
Labels
@aws-cdk/aws-eventsRelated to CloudWatch EventsRelated to CloudWatch Eventseffort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p2