Class: AWSCDK::EventSchemas::CfnSchema::TagsEntryProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EventSchemas::CfnSchema::TagsEntryProperty
- Defined in:
- event_schemas/cfn_schema.rb
Overview
Tags to associate with the schema.
Instance Attribute Summary collapse
-
#key ⇒ String
readonly
The key of a key-value pair.
-
#value ⇒ String
readonly
The value of a key-value pair.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key:, value:) ⇒ TagsEntryProperty
constructor
A new instance of TagsEntryProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key:, value:) ⇒ TagsEntryProperty
Returns a new instance of TagsEntryProperty.
615 616 617 618 619 620 |
# File 'event_schemas/cfn_schema.rb', line 615 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)
The key of a key-value pair.
626 627 628 |
# File 'event_schemas/cfn_schema.rb', line 626 def key @key end |
#value ⇒ String (readonly)
The value of a key-value pair.
631 632 633 |
# File 'event_schemas/cfn_schema.rb', line 631 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
633 634 635 636 637 638 |
# File 'event_schemas/cfn_schema.rb', line 633 def self.jsii_properties { :key => "key", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
640 641 642 643 644 645 646 647 |
# File 'event_schemas/cfn_schema.rb', line 640 def to_jsii result = {} result.merge!({ "key" => @key, "value" => @value, }) result.compact end |