Class: AWSCDK::CloudTrail::AddEventSelectorOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudTrail::AddEventSelectorOptions
- Defined in:
- cloud_trail/add_event_selector_options.rb
Overview
Options for adding an event selector.
Instance Attribute Summary collapse
-
#exclude_management_event_sources ⇒ Array<AWSCDK::CloudTrail::ManagementEventSources>?
readonly
An optional list of service event sources from which you do not want management events to be logged on your trail.
-
#include_management_events ⇒ Boolean?
readonly
Specifies whether the event selector includes management events for the trail.
-
#read_write_type ⇒ AWSCDK::CloudTrail::ReadWriteType?
readonly
Specifies whether to log read-only events, write-only events, or all events.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(exclude_management_event_sources: nil, include_management_events: nil, read_write_type: nil) ⇒ AddEventSelectorOptions
constructor
A new instance of AddEventSelectorOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(exclude_management_event_sources: nil, include_management_events: nil, read_write_type: nil) ⇒ AddEventSelectorOptions
Returns a new instance of AddEventSelectorOptions.
10 11 12 13 14 15 16 17 |
# File 'cloud_trail/add_event_selector_options.rb', line 10 def initialize(exclude_management_event_sources: nil, include_management_events: nil, read_write_type: nil) @exclude_management_event_sources = exclude_management_event_sources Jsii::Type.check_type(@exclude_management_event_sources, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jbG91ZHRyYWlsLk1hbmFnZW1lbnRFdmVudFNvdXJjZXMifSwia2luZCI6ImFycmF5In19")), "excludeManagementEventSources") unless @exclude_management_event_sources.nil? @include_management_events = include_management_events Jsii::Type.check_type(@include_management_events, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "includeManagementEvents") unless @include_management_events.nil? @read_write_type = read_write_type Jsii::Type.check_type(@read_write_type, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR0cmFpbC5SZWFkV3JpdGVUeXBlIn0=")), "readWriteType") unless @read_write_type.nil? end |
Instance Attribute Details
#exclude_management_event_sources ⇒ Array<AWSCDK::CloudTrail::ManagementEventSources>? (readonly)
Note:
Default: []
An optional list of service event sources from which you do not want management events to be logged on your trail.
23 24 25 |
# File 'cloud_trail/add_event_selector_options.rb', line 23 def exclude_management_event_sources @exclude_management_event_sources end |
#include_management_events ⇒ Boolean? (readonly)
Note:
Default: true
Specifies whether the event selector includes management events for the trail.
28 29 30 |
# File 'cloud_trail/add_event_selector_options.rb', line 28 def include_management_events @include_management_events end |
#read_write_type ⇒ AWSCDK::CloudTrail::ReadWriteType? (readonly)
Note:
Default: ReadWriteType.All
Specifies whether to log read-only events, write-only events, or all events.
33 34 35 |
# File 'cloud_trail/add_event_selector_options.rb', line 33 def read_write_type @read_write_type end |
Class Method Details
.jsii_properties ⇒ Object
35 36 37 38 39 40 41 |
# File 'cloud_trail/add_event_selector_options.rb', line 35 def self.jsii_properties { :exclude_management_event_sources => "excludeManagementEventSources", :include_management_events => "includeManagementEvents", :read_write_type => "readWriteType", } end |
Instance Method Details
#to_jsii ⇒ Object
43 44 45 46 47 48 49 50 51 |
# File 'cloud_trail/add_event_selector_options.rb', line 43 def to_jsii result = {} result.merge!({ "excludeManagementEventSources" => @exclude_management_event_sources, "includeManagementEvents" => @include_management_events, "readWriteType" => @read_write_type, }) result.compact end |