# EventFilterProperty

The filter that specifies the events to monitor.

- Source: Generated at build time
- Type last changed: v2.211.0 · 13 Aug 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_workspacesweb as workspacesweb } from 'aws-cdk-lib';

declare const all: any;
const eventFilterProperty: workspacesweb.CfnSessionLogger.EventFilterProperty = {
  all: all,
  include: ['include'],
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_workspacesweb as workspacesweb

# all: Any

event_filter_property = workspacesweb.CfnSessionLogger.EventFilterProperty(
    all=all,
    include=["include"]
)
```

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.workspacesweb.*;

Object all;

EventFilterProperty eventFilterProperty = EventFilterProperty.builder()
        .all(all)
        .include(List.of("include"))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.WorkSpacesWeb;

var all;

var eventFilterProperty = new EventFilterProperty {
    All = all,
    Include = new [] { "include" }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var all interface{}

eventFilterProperty := &EventFilterProperty{
	All: all,
	Include: []*string{
		jsii.String("include"),
	},
}
```

## Properties

- `all`: any — The filter that monitors all of the available events, including any new events emitted in the future.

  The `All` and `Include` properties are not required, but one of them should be present. `{}` is a valid input.

- `include`: string[] — The filter that monitors only the listed set of events.

  New events are not auto-monitored. The `All` and `Include` properties are not required, but one of them should be present.
