Class: AWSCDK::CloudTrail::CfnTrail::AggregationConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cloud_trail/cfn_trail.rb

Overview

An object that contains configuration settings for aggregating events.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(event_category:, templates:) ⇒ AggregationConfigurationProperty

Returns a new instance of AggregationConfigurationProperty.

Parameters:

  • event_category (String)

    Specifies the event category for which aggregation should be performed.

  • templates (Array<String>)

    A list of aggregation templates that can be used to configure event aggregation.



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_categoryString (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

#templatesArray<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_propertiesObject



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_jsiiObject



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