Skip to content

Commit

Permalink
fix(AWS EventBridge): Allow intrinsic functions in pattern (#10120)
Browse files Browse the repository at this point in the history
  • Loading branch information
bboure committed Oct 20, 2021
1 parent f8f3bcf commit 1c105a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -400,7 +400,7 @@ class AwsCompileEventBridgeEvents {
Properties: {
// default event bus is used when EventBusName is not set
EventBusName: eventBusName === 'default' ? undefined : eventBusName,
EventPattern: JSON.stringify(Pattern),
EventPattern: Pattern,
Name: RuleName,
ScheduleExpression: Schedule,
State,
Expand Down
Expand Up @@ -510,7 +510,7 @@ describe('EventBridgeEvents', () => {
});

it('should correctly set EventPattern on a created rule', () => {
expect(ruleResource.Properties.EventPattern).to.deep.equal(JSON.stringify(pattern));
expect(ruleResource.Properties.EventPattern).to.deep.equal(pattern);
});

it('should correctly set Input on the target for the created rule', () => {
Expand Down

0 comments on commit 1c105a4

Please sign in to comment.