Class: AWSCDK::CloudTrail::CfnTrail::AdvancedEventSelectorProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudTrail::CfnTrail::AdvancedEventSelectorProperty
- Defined in:
- cloud_trail/cfn_trail.rb
Overview
Advanced event selectors let you create fine-grained selectors for AWS CloudTrail management, data, and network activity events.
They help you control costs by logging only those events that are important to you. For more information about configuring advanced event selectors, see the Logging data events , Logging network activity events , and Logging management events topics in the AWS CloudTrail User Guide .
You cannot apply both event selectors and advanced event selectors to a trail.
Supported CloudTrail event record fields for management events
event_category(required)event_sourceread_only
The following additional fields are available for event data stores:
event_nameevent_typesession_credential_from_consoleuserIdentity.arn
Supported CloudTrail event record fields for data events
event_category(required)event_nameevent_sourceevent_typeresources.ARNresources.type(required)read_onlysession_credential_from_consoleuserIdentity.arn
Supported CloudTrail event record fields for network activity events
event_category(required)event_source(required)event_nameerror_code- The only valid value forerror_codeisVpceAccessDenied.vpc_endpoint_id
For event data stores for CloudTrail Insights events, AWS Config configuration items, Audit Manager evidence, or events outside of AWS , the only supported field is
event_category.
Instance Attribute Summary collapse
-
#field_selectors ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::CloudTrail::CfnTrail::AdvancedFieldSelectorProperty>
readonly
Contains all selector statements in an advanced event selector.
-
#name ⇒ String?
readonly
An optional, descriptive name for an advanced event selector, such as "Log data events for only two S3 buckets".
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(field_selectors:, name: nil) ⇒ AdvancedEventSelectorProperty
constructor
A new instance of AdvancedEventSelectorProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(field_selectors:, name: nil) ⇒ AdvancedEventSelectorProperty
Returns a new instance of AdvancedEventSelectorProperty.
803 804 805 806 807 808 |
# File 'cloud_trail/cfn_trail.rb', line 803 def initialize(field_selectors:, name: nil) @field_selectors = field_selectors Jsii::Type.check_type(@field_selectors, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR0cmFpbC5DZm5UcmFpbC5BZHZhbmNlZEZpZWxkU2VsZWN0b3JQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "fieldSelectors") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? end |
Instance Attribute Details
#field_selectors ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::CloudTrail::CfnTrail::AdvancedFieldSelectorProperty> (readonly)
Contains all selector statements in an advanced event selector.
814 815 816 |
# File 'cloud_trail/cfn_trail.rb', line 814 def field_selectors @field_selectors end |
#name ⇒ String? (readonly)
An optional, descriptive name for an advanced event selector, such as "Log data events for only two S3 buckets".
819 820 821 |
# File 'cloud_trail/cfn_trail.rb', line 819 def name @name end |
Class Method Details
.jsii_properties ⇒ Object
821 822 823 824 825 826 |
# File 'cloud_trail/cfn_trail.rb', line 821 def self.jsii_properties { :field_selectors => "fieldSelectors", :name => "name", } end |
Instance Method Details
#to_jsii ⇒ Object
828 829 830 831 832 833 834 835 |
# File 'cloud_trail/cfn_trail.rb', line 828 def to_jsii result = {} result.merge!({ "fieldSelectors" => @field_selectors, "name" => @name, }) result.compact end |