Class CfnEventDataStore.AdvancedFieldSelectorProperty
A single selector statement in an advanced event selector.
Inheritance
Namespace: Amazon.CDK.AWS.CloudTrail
Assembly: Amazon.CDK.AWS.CloudTrail.dll
Syntax (csharp)
public class AdvancedFieldSelectorProperty : Object, CfnEventDataStore.IAdvancedFieldSelectorProperty
Syntax (vb)
Public Class AdvancedFieldSelectorProperty
Inherits Object
Implements CfnEventDataStore.IAdvancedFieldSelectorProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// 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 advancedFieldSelectorProperty = new AdvancedFieldSelectorProperty {
Field = "field",
// the properties below are optional
EndsWith = new [] { "endsWith" },
EqualTo = new [] { "equalTo" },
NotEndsWith = new [] { "notEndsWith" },
NotEquals = new [] { "notEquals" },
NotStartsWith = new [] { "notStartsWith" },
StartsWith = new [] { "startsWith" }
};
Synopsis
Constructors
AdvancedFieldSelectorProperty() |
Properties
EndsWith | An operator that includes events that match the last few characters of the event record field specified as the value of |
EqualTo | An operator that includes events that match the exact value of the event record field specified as the value of |
Field | A field in a CloudTrail event record on which to filter events to be logged. |
NotEndsWith | An operator that excludes events that match the last few characters of the event record field specified as the value of |
NotEquals | An operator that excludes events that match the exact value of the event record field specified as the value of |
NotStartsWith | An operator that excludes events that match the first few characters of the event record field specified as the value of |
StartsWith | An operator that includes events that match the first few characters of the event record field specified as the value of |
Constructors
AdvancedFieldSelectorProperty()
public AdvancedFieldSelectorProperty()
Properties
EndsWith
An operator that includes events that match the last few characters of the event record field specified as the value of Field
.
public string[] EndsWith { get; set; }
Property Value
System.String[]
Remarks
EqualTo
An operator that includes events that match the exact value of the event record field specified as the value of Field
.
public string[] EqualTo { get; set; }
Property Value
System.String[]
Remarks
This is the only valid operator that you can use with the readOnly
, eventCategory
, and resources.type
fields.
Field
A field in a CloudTrail event record on which to filter events to be logged.
public string Field { get; set; }
Property Value
System.String
Remarks
For event data stores for AWS Config configuration items, Audit Manager evidence, or non- AWS events, the field is used only for selecting events as filtering is not supported.
For CloudTrail event records, supported fields include readOnly
, eventCategory
, eventSource
(for management events), eventName
, resources.type
, and resources.ARN
.
For event data stores for AWS Config configuration items, Audit Manager evidence, or non- AWS events, the only supported field is eventCategory
.
You can have only one resources.type
field per selector. To log data events on more than one resource type, add another selector.
The trailing slash is intentional; do not exclude it. Replace the text between less than and greater than symbols (<>) with resource-specific information.
When resources.type equals AWS::DynamoDB::Table
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type equals AWS::Lambda::Function
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type equals AWS::CloudTrail::Channel
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type equals AWS::CodeWhisperer::Profile
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type equals AWS::Cognito::IdentityPool
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::DynamoDB::Stream
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::EC2::Snapshot
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::EMRWAL::Workspace
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::FinSpace::Environment
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::Glue::Table
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::GuardDuty::Detector
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::KendraRanking::ExecutionPlan
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::ManagedBlockchain::Node
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::SageMaker::ExperimentTrialComponent
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::SageMaker::FeatureGroup
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::S3::AccessPoint
, and the operator is set to Equals
or NotEquals
, the ARN must be in one of the following formats. To log events on all objects in an S3 access point, we recommend that you use only the access point ARN, don’t include the object path, and use the StartsWith
or NotStartsWith
operators.
When resources.type
equals AWS::S3ObjectLambda::AccessPoint
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::S3Outposts::Object
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type equals AWS::VerifiedPermissions::PolicyStore
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
NotEndsWith
An operator that excludes events that match the last few characters of the event record field specified as the value of Field
.
public string[] NotEndsWith { get; set; }
Property Value
System.String[]
Remarks
NotEquals
An operator that excludes events that match the exact value of the event record field specified as the value of Field
.
public string[] NotEquals { get; set; }
Property Value
System.String[]
Remarks
NotStartsWith
An operator that excludes events that match the first few characters of the event record field specified as the value of Field
.
public string[] NotStartsWith { get; set; }
Property Value
System.String[]
Remarks
StartsWith
An operator that includes events that match the first few characters of the event record field specified as the value of Field
.
public string[] StartsWith { get; set; }
Property Value
System.String[]