Class: AWSCDK::Logs::CfnScheduledQuery::TagsItemsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Logs::CfnScheduledQuery::TagsItemsProperty
- Defined in:
- logs/cfn_scheduled_query.rb
Overview
Instance Attribute Summary collapse
- #key ⇒ String readonly
- #value ⇒ String readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key:, value:) ⇒ TagsItemsProperty
constructor
A new instance of TagsItemsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key:, value:) ⇒ TagsItemsProperty
Returns a new instance of TagsItemsProperty.
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
#key ⇒ String (readonly)
755 756 757 |
# File 'logs/cfn_scheduled_query.rb', line 755 def key @key end |
#value ⇒ String (readonly)
758 759 760 |
# File 'logs/cfn_scheduled_query.rb', line 758 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |