# CustomEventsProperty

This structure specifies whether this app monitor allows the web client to define and send custom events.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_rum as rum } from 'aws-cdk-lib';
const customEventsProperty: rum.CfnAppMonitor.CustomEventsProperty = {
  status: 'status',
};
```

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_rum as rum

custom_events_property = rum.CfnAppMonitor.CustomEventsProperty(
    status="status"
)
```

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

CustomEventsProperty customEventsProperty = CustomEventsProperty.builder()
        .status("status")
        .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.RUM;

var customEventsProperty = new CustomEventsProperty {
    Status = "status"
};
```

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"

customEventsProperty := &CustomEventsProperty{
	Status: jsii.String("status"),
}
```

## Properties

- `status`: string — Set this to `ENABLED` to allow the web client to send custom events for this app monitor.

  Valid values are `ENABLED` and `DISABLED` .
