Class: AWSCDK::CloudTrail::CfnTrail::AggregationConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudTrail::CfnTrail::AggregationConfigurationProperty
- Defined in:
- cloud_trail/cfn_trail.rb
Overview
An object that contains configuration settings for aggregating events.
Instance Attribute Summary collapse
-
#event_category ⇒ String
readonly
Specifies the event category for which aggregation should be performed.
-
#templates ⇒ Array<String>
readonly
A list of aggregation templates that can be used to configure event aggregation.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(event_category:, templates:) ⇒ AggregationConfigurationProperty
constructor
A new instance of AggregationConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(event_category:, templates:) ⇒ AggregationConfigurationProperty
Returns a new instance of AggregationConfigurationProperty.
994 995 996 997 998 999 |
# File 'cloud_trail/cfn_trail.rb', line 994 def initialize(event_category:, templates:) @event_category = event_category Jsii::Type.check_type(@event_category, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "eventCategory") @templates = templates Jsii::Type.check_type(@templates, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "templates") end |
Instance Attribute Details
#event_category ⇒ String (readonly)
Specifies the event category for which aggregation should be performed.
1005 1006 1007 |
# File 'cloud_trail/cfn_trail.rb', line 1005 def event_category @event_category end |
#templates ⇒ Array<String> (readonly)
A list of aggregation templates that can be used to configure event aggregation.
1010 1011 1012 |
# File 'cloud_trail/cfn_trail.rb', line 1010 def templates @templates end |
Class Method Details
.jsii_properties ⇒ Object
1012 1013 1014 1015 1016 1017 |
# File 'cloud_trail/cfn_trail.rb', line 1012 def self.jsii_properties { :event_category => "eventCategory", :templates => "templates", } end |
Instance Method Details
#to_jsii ⇒ Object
1019 1020 1021 1022 1023 1024 1025 1026 |
# File 'cloud_trail/cfn_trail.rb', line 1019 def to_jsii result = {} result.merge!({ "eventCategory" => @event_category, "templates" => @templates, }) result.compact end |