Skip to content

Commit

Permalink
fix(aws-events): ruleName can now be specified
Browse files Browse the repository at this point in the history
Fix bug where ruleName property would not be propagated to the L1.

Fixes #708.
  • Loading branch information
Rico Huijbers committed Sep 17, 2018
1 parent 815915e commit f9eb921
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/@aws-cdk/aws-events/lib/rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export class EventRule extends EventRuleRef {
super(parent, name);

const resource = new cloudformation.RuleResource(this, 'Resource', {
ruleName: props.ruleName,
description: props.description,
state: props.enabled == null ? 'ENABLED' : (props.enabled ? 'ENABLED' : 'DISABLED'),
scheduleExpression: new Token(() => this.scheduleExpression),
Expand Down

0 comments on commit f9eb921

Please sign in to comment.