Skip to content

Commit 7873d17

Browse files
committed
cut out the event.
1 parent e5f18b2 commit 7873d17

File tree

3 files changed

+19
-18
lines changed

3 files changed

+19
-18
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/**
2+
* Specifies the actions to be performed when the condition evaluates to TRUE.
3+
*/
4+
export interface Event {
5+
/**
6+
* The name of the event
7+
*/
8+
readonly eventName: string;
9+
10+
/**
11+
* The Boolean expression that, when TRUE, causes the actions to be performed.
12+
*
13+
* @default None - Defaults to perform the actions always.
14+
*/
15+
readonly condition?: string;
16+
}

packages/@aws-cdk/aws-iotevents/lib/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
export * from './input';
21
export * from './detector-model';
2+
export * from './event';
3+
export * from './input';
34
export * from './state';
45

56
// AWS::IoTEvents CloudFormation Resources:

packages/@aws-cdk/aws-iotevents/lib/state.ts

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,6 @@
1+
import { Event } from './event';
12
import { CfnDetectorModel } from './iotevents.generated';
23

3-
/**
4-
* Specifies the actions to be performed when the condition evaluates to TRUE.
5-
*/
6-
export interface Event {
7-
/**
8-
* The name of the event
9-
*/
10-
readonly eventName: string;
11-
12-
/**
13-
* The Boolean expression that, when TRUE, causes the actions to be performed.
14-
*
15-
* @default None - Defaults to perform the actions always.
16-
*/
17-
readonly condition?: string;
18-
}
19-
204
/**
215
* Properties for defining a state of a detector
226
*/

0 commit comments

Comments
 (0)