ContextKeySelectorProperty Struct
An object that contains information types to be included in CloudTrail enriched events.
Example
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
# 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
// 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();
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"
};
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
A list of keys defined by Type to be included in CloudTrail enriched events.
Specifies the type of the event record field in ContextKeySelector.
Valid values include RequestContext, TagContext.