> **Experimental**
>
> `@aws-cdk/aws-iotevents-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# Event

Specifies the actions to be performed when the condition evaluates to `true`.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/event.ts`](https://github.com/aws/aws-cdk/blob/v2.276.0-alpha.0/packages/@aws-cdk/aws-iotevents-alpha/lib/event.ts#L7)

## 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,
};
```

## Properties

- `actions`: [IAction](/cdk/api/v2/docs/@aws-cdk_aws-iotevents-alpha.IAction.html)[] — The actions to be performed.

  **Default:** no actions will be performed

- `condition`: [Expression](/cdk/api/v2/docs/@aws-cdk_aws-iotevents-alpha.Expression.html) — The Boolean expression that, when `true`, causes the actions to be performed.

  **Default:** none (the actions are always executed)

- `eventName`: string (required) — The name of the event.
