Event
- class aws_cdk.aws_iotevents.Event(*, event_name, actions=None, condition=None)
Bases:
object
(experimental) Specifies the actions to be performed when the condition evaluates to
true
.- Parameters:
event_name (
str
) – (experimental) The name of the event.actions (
Optional
[Sequence
[IAction
]]) – (experimental) The actions to be performed. Default: - no actions will be performedcondition (
Optional
[Expression
]) – (experimental) The Boolean expression that, whentrue
, causes the actions to be performed. Default: - none (the actions are always executed)
- Stability:
experimental
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_iotevents as iotevents # action: iotevents.IAction # expression: iotevents.Expression event = iotevents.Event( event_name="eventName", # the properties below are optional actions=[action], condition=expression )
Attributes
- actions
(experimental) The actions to be performed.
- Default:
no actions will be performed
- Stability:
experimental
- condition
(experimental) The Boolean expression that, when
true
, causes the actions to be performed.- Default:
none (the actions are always executed)
- Stability:
experimental
- event_name
(experimental) The name of the event.
- Stability:
experimental