Class: AWSCDK::CloudTrail::CfnEventDataStore::ContextKeySelectorProperty

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

Overview

An object that contains information types to be included in CloudTrail enriched events.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(equal_to:, type:) ⇒ ContextKeySelectorProperty

Returns a new instance of ContextKeySelectorProperty.

Parameters:

  • equal_to (Array<String>)

    A list of keys defined by Type to be included in CloudTrail enriched events.

  • type (String)

    Specifies the type of the event record field in ContextKeySelector.



967
968
969
970
971
972
# File 'cloud_trail/cfn_event_data_store.rb', line 967

def initialize(equal_to:, type:)
  @equal_to = equal_to
  Jsii::Type.check_type(@equal_to, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "equalTo")
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
end

Instance Attribute Details

#equal_toArray<String> (readonly)

A list of keys defined by Type to be included in CloudTrail enriched events.



978
979
980
# File 'cloud_trail/cfn_event_data_store.rb', line 978

def equal_to
  @equal_to
end

#typeString (readonly)

Specifies the type of the event record field in ContextKeySelector.

Valid values include RequestContext, TagContext.



985
986
987
# File 'cloud_trail/cfn_event_data_store.rb', line 985

def type
  @type
end

Class Method Details

.jsii_propertiesObject



987
988
989
990
991
992
# File 'cloud_trail/cfn_event_data_store.rb', line 987

def self.jsii_properties
  {
    :equal_to => "equalTo",
    :type => "type",
  }
end

Instance Method Details

#to_jsiiObject



994
995
996
997
998
999
1000
1001
# File 'cloud_trail/cfn_event_data_store.rb', line 994

def to_jsii
  result = {}
  result.merge!({
    "equalTo" => @equal_to,
    "type" => @type,
  })
  result.compact
end