# ContextKeySelectorProperty

An object that contains information types to be included in CloudTrail enriched events.

- Source: Generated at build time
- Type last changed: v2.201.0 · 13 Jun 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_cloudtrail as cloudtrail } from 'aws-cdk-lib';
const contextKeySelectorProperty: cloudtrail.CfnEventDataStore.ContextKeySelectorProperty = {
  equalTo: ['equalTo'],
  type: 'type',
};
```

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

context_key_selector_property = cloudtrail.CfnEventDataStore.ContextKeySelectorProperty(
    equal_to=["equalTo"],
    type="type"
)
```

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

ContextKeySelectorProperty contextKeySelectorProperty = ContextKeySelectorProperty.builder()
        .equalTo(List.of("equalTo"))
        .type("type")
        .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 contextKeySelectorProperty = new ContextKeySelectorProperty {
    EqualTo = new [] { "equalTo" },
    Type = "type"
};
```

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"

contextKeySelectorProperty := &ContextKeySelectorProperty{
	EqualTo: []*string{
		jsii.String("equalTo"),
	},
	Type: jsii.String("type"),
}
```

## Properties

- `equalTo`: string[] (required) — A list of keys defined by Type to be included in CloudTrail enriched events.

- `type`: string (required) — Specifies the type of the event record field in ContextKeySelector.

  Valid values include RequestContext, TagContext.
