> **Experimental**
>
> `@aws-cdk/aws-iotevents-alpha` is an [**experimental**](https://docs.aws.amazon.com/cdk/api/stability.html) (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](https://docs.aws.amazon.com/cdk/api/stability.html)
- Source: [`lib/event.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-iotevents-alpha/lib/event.ts#L7)

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

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

Golang:

```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

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

  **Default:** no actions will be performed

- `condition`: [Expression](https://docs.aws.amazon.com/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.
