interface Event
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.IoTEvents.Alpha.Event |
![]() | github.com/aws/aws-cdk-go/awscdkioteventsalpha/v2#Event |
![]() | software.amazon.awscdk.services.iotevents.alpha.Event |
![]() | aws_cdk.aws_iotevents_alpha.Event |
![]() | @aws-cdk/aws-iotevents-alpha ยป Event |
Specifies the actions to be performed when the condition evaluates to true
.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as iotevents_alpha from '@aws-cdk/aws-iotevents-alpha';
declare const action: iotevents_alpha.IAction;
declare const expression: iotevents_alpha.Expression;
const event: iotevents_alpha.Event = {
eventName: 'eventName',
// the properties below are optional
actions: [action],
condition: expression,
};
Properties
Name | Type | Description |
---|---|---|
event | string | The name of the event. |
actions? | IAction [] | The actions to be performed. |
condition? | Expression | The Boolean expression that, when true , causes the actions to be performed. |
eventName
Type:
string
The name of the event.
actions?
Type:
IAction
[]
(optional, default: no actions will be performed)
The actions to be performed.
condition?
Type:
Expression
(optional, default: none (the actions are always executed))
The Boolean expression that, when true
, causes the actions to be performed.