Class: AWSCDK::Logs::CfnScheduledQuery::TagsItemsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
logs/cfn_scheduled_query.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, value:) ⇒ TagsItemsProperty

Returns a new instance of TagsItemsProperty.

Parameters:

  • key (String)
  • value (String)


746
747
748
749
750
751
# File 'logs/cfn_scheduled_query.rb', line 746

def initialize(key:, value:)
  @key = key
  Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key")
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value")
end

Instance Attribute Details

#keyString (readonly)



755
756
757
# File 'logs/cfn_scheduled_query.rb', line 755

def key
  @key
end

#valueString (readonly)



758
759
760
# File 'logs/cfn_scheduled_query.rb', line 758

def value
  @value
end

Class Method Details

.jsii_propertiesObject



760
761
762
763
764
765
# File 'logs/cfn_scheduled_query.rb', line 760

def self.jsii_properties
  {
    :key => "key",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



767
768
769
770
771
772
773
774
# File 'logs/cfn_scheduled_query.rb', line 767

def to_jsii
  result = {}
  result.merge!({
    "key" => @key,
    "value" => @value,
  })
  result.compact
end