# InsightSelectorProperty

A JSON string that contains a list of Insights types that are logged on an event data store.

- Source: Generated at build time
- Type last changed: v2.109.0 · 16 Nov 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_cloudtrail as cloudtrail } from 'aws-cdk-lib';
const insightSelectorProperty: cloudtrail.CfnEventDataStore.InsightSelectorProperty = {
  insightType: 'insightType',
};
```

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_cloudtrail as cloudtrail

insight_selector_property = cloudtrail.CfnEventDataStore.InsightSelectorProperty(
    insight_type="insightType"
)
```

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

InsightSelectorProperty insightSelectorProperty = InsightSelectorProperty.builder()
        .insightType("insightType")
        .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.CloudTrail;

var insightSelectorProperty = new InsightSelectorProperty {
    InsightType = "insightType"
};
```

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"

insightSelectorProperty := &InsightSelectorProperty{
	InsightType: jsii.String("insightType"),
}
```

## Properties

- `insightType`: string — The type of Insights events to log on an event data store. `ApiCallRateInsight` and `ApiErrorRateInsight` are valid Insight types.

  The `ApiCallRateInsight` Insights type analyzes write-only management API calls that are aggregated per minute against a baseline API call volume.

  The `ApiErrorRateInsight` Insights type analyzes management API calls that result in error codes. The error is shown if the API call is unsuccessful.
