Class: AWSCDK::EventSchemas::CfnRegistry::TagsEntryProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EventSchemas::CfnRegistry::TagsEntryProperty
- Defined in:
- event_schemas/cfn_registry.rb
Overview
Tags to associate with the schema registry.
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.
554 555 556 557 558 559 |
# File 'event_schemas/cfn_registry.rb', line 554 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.
565 566 567 |
# File 'event_schemas/cfn_registry.rb', line 565 def key @key end |
#value ⇒ String (readonly)
The value of a key-value pair.
570 571 572 |
# File 'event_schemas/cfn_registry.rb', line 570 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
572 573 574 575 576 577 |
# File 'event_schemas/cfn_registry.rb', line 572 def self.jsii_properties { :key => "key", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
579 580 581 582 583 584 585 586 |
# File 'event_schemas/cfn_registry.rb', line 579 def to_jsii result = {} result.merge!({ "key" => @key, "value" => @value, }) result.compact end |