Experimental
@aws-cdk/aws-iotevents-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
Event Struct
Specifies the actions to be performed when the condition evaluates to true.
| Stability | Experimental |
|---|---|
| Source | lib/event.ts |
Example
ts
// 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,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_iotevents_alpha as iotevents_alpha
# action: iotevents_alpha.IAction
# expression: iotevents_alpha.Expression
event = iotevents_alpha.Event(
event_name="eventName",
# the properties below are optional
actions=[action],
condition=expression
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iotevents.alpha.*;
IAction action;
Expression expression;
Event event = Event.builder()
.eventName("eventName")
// the properties below are optional
.actions(List.of(action))
.condition(expression)
.build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.IoTEvents.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoTEvents.Alpha;
IAction action;
Expression expression;
var event = new Event {
EventName = "eventName",
// the properties below are optional
Actions = new [] { action },
Condition = expression
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdkioteventsalpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import iotevents_alpha "github.com/aws/aws-cdk-go/awscdkioteventsalpha"
var action IAction
var expression Expression
event := &Event{
EventName: jsii.String("eventName"),
// the properties below are optional
Actions: []IAction{
action,
},
Condition: expression,
}
Properties
actionsoptionalIAction[]actionsoptionaltyping.List[IAction]actionsoptionalList<IAction>ActionsoptionalIAction[]Actionsoptional*[]IAction #The actions to be performed.
Default: no actions will be performed
conditionoptionalExpressionconditionoptionalExpressionconditionoptionalExpressionConditionoptionalExpressionConditionoptionalExpression #The Boolean expression that, when `true`, causes the actions to be performed.
Default: none (the actions are always executed)
The name of the event.