Skip to content

Commit

Permalink
revert to rename Event property condition
Browse files Browse the repository at this point in the history
  • Loading branch information
yamatatsu committed Feb 5, 2022
1 parent c0ee09f commit 61ac068
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-iotevents/lib/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export class State {
}

/**
* Returns true if this state has at least one condition as `Event.when`s.
* Returns true if this state has at least one condition via events.
*
* @internal
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class TestStack extends cdk.Stack {
stateName: 'online',
onEnter: [{
eventName: 'test-event',
// meaning `when: 'currentInput("test_input") && $input.test_input.payload.temperature == 31.5'`
// meaning `condition: 'currentInput("test_input") && $input.test_input.payload.temperature == 31.5'`
condition: iotevents.Expression.and(
iotevents.Expression.currentInput(input),
iotevents.Expression.eq(
Expand Down

0 comments on commit 61ac068

Please sign in to comment.