interface AdvancedEventSelectorProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CloudTrail.CfnEventDataStore.AdvancedEventSelectorProperty |
Java | software.amazon.awscdk.services.cloudtrail.CfnEventDataStore.AdvancedEventSelectorProperty |
Python | aws_cdk.aws_cloudtrail.CfnEventDataStore.AdvancedEventSelectorProperty |
TypeScript | @aws-cdk/aws-cloudtrail » CfnEventDataStore » AdvancedEventSelectorProperty |
Advanced event selectors let you create fine-grained selectors for the following AWS CloudTrail event record fields.
They help you control costs by logging only those events that are important to you. For more information about advanced event selectors, see Logging data events in the AWS CloudTrail User Guide .
readOnly
eventSource
eventName
eventCategory
resources.type
resources.ARN
You cannot apply both event selectors and advanced event selectors to a trail.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cloudtrail from '@aws-cdk/aws-cloudtrail';
const advancedEventSelectorProperty: cloudtrail.CfnEventDataStore.AdvancedEventSelectorProperty = {
fieldSelectors: [{
field: 'field',
// the properties below are optional
endsWith: ['endsWith'],
equalTo: ['equalTo'],
notEndsWith: ['notEndsWith'],
notEquals: ['notEquals'],
notStartsWith: ['notStartsWith'],
startsWith: ['startsWith'],
}],
// the properties below are optional
name: 'name',
};
Properties
Name | Type | Description |
---|---|---|
field | IResolvable | IResolvable | Advanced [] | Contains all selector statements in an advanced event selector. |
name? | string | An optional, descriptive name for an advanced event selector, such as "Log data events for only two S3 buckets". |
fieldSelectors
Type:
IResolvable
|
IResolvable
|
Advanced
[]
Contains all selector statements in an advanced event selector.
name?
Type:
string
(optional)
An optional, descriptive name for an advanced event selector, such as "Log data events for only two S3 buckets".