# DataCollectionOptionsProperty

Struct · External

Information about the data collection options enabled for a VM cluster.

- Source: Generated at build time
- Type last changed: v2.205.0 · 15 Jul 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_odb as odb } from 'aws-cdk-lib';
const dataCollectionOptionsProperty: odb.CfnCloudVmCluster.DataCollectionOptionsProperty = {
  isDiagnosticsEventsEnabled: false,
  isHealthMonitoringEnabled: false,
  isIncidentLogsEnabled: false,
};
```

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_odb as odb

data_collection_options_property = odb.CfnCloudVmCluster.DataCollectionOptionsProperty(
    is_diagnostics_events_enabled=False,
    is_health_monitoring_enabled=False,
    is_incident_logs_enabled=False
)
```

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

DataCollectionOptionsProperty dataCollectionOptionsProperty = DataCollectionOptionsProperty.builder()
        .isDiagnosticsEventsEnabled(false)
        .isHealthMonitoringEnabled(false)
        .isIncidentLogsEnabled(false)
        .build();
```

C#:

```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.ODB;

var dataCollectionOptionsProperty = new DataCollectionOptionsProperty {
    IsDiagnosticsEventsEnabled = false,
    IsHealthMonitoringEnabled = false,
    IsIncidentLogsEnabled = false
};
```

Go:

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

dataCollectionOptionsProperty := &DataCollectionOptionsProperty{
	IsDiagnosticsEventsEnabled: jsii.Boolean(false),
	IsHealthMonitoringEnabled: jsii.Boolean(false),
	IsIncidentLogsEnabled: jsii.Boolean(false),
}
```

## Properties

- `isDiagnosticsEventsEnabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Specifies whether diagnostic collection is enabled for the VM cluster.

- `isHealthMonitoringEnabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Specifies whether health monitoring is enabled for the VM cluster.

- `isIncidentLogsEnabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Specifies whether incident logs are enabled for the VM cluster.
