@aws-cdk_aws-iotevents-alpha.Event

interface Event ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.IoTEvents.Alpha.Event
Gogithub.com/aws/aws-cdk-go/awscdkioteventsalpha/v2#Event
Javasoftware.amazon.awscdk.services.iotevents.alpha.Event
Pythonaws_cdk.aws_iotevents_alpha.Event
TypeScript (source)@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

NameTypeDescription
eventName๐Ÿ”นstringThe name of the event.
actions?๐Ÿ”นIAction[]The actions to be performed.
condition?๐Ÿ”นExpressionThe 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.