Skip to content

Commit

Permalink
cut out the event.
Browse files Browse the repository at this point in the history
  • Loading branch information
yamatatsu committed Dec 16, 2021
1 parent e5f18b2 commit 7873d17
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 18 deletions.
16 changes: 16 additions & 0 deletions packages/@aws-cdk/aws-iotevents/lib/event.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* Specifies the actions to be performed when the condition evaluates to TRUE.
*/
export interface Event {
/**
* The name of the event
*/
readonly eventName: string;

/**
* The Boolean expression that, when TRUE, causes the actions to be performed.
*
* @default None - Defaults to perform the actions always.
*/
readonly condition?: string;
}
3 changes: 2 additions & 1 deletion packages/@aws-cdk/aws-iotevents/lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export * from './input';
export * from './detector-model';
export * from './event';
export * from './input';
export * from './state';

// AWS::IoTEvents CloudFormation Resources:
Expand Down
18 changes: 1 addition & 17 deletions packages/@aws-cdk/aws-iotevents/lib/state.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
import { Event } from './event';
import { CfnDetectorModel } from './iotevents.generated';

/**
* Specifies the actions to be performed when the condition evaluates to TRUE.
*/
export interface Event {
/**
* The name of the event
*/
readonly eventName: string;

/**
* The Boolean expression that, when TRUE, causes the actions to be performed.
*
* @default None - Defaults to perform the actions always.
*/
readonly condition?: string;
}

/**
* Properties for defining a state of a detector
*/
Expand Down

0 comments on commit 7873d17

Please sign in to comment.