Class: AWSCDK::EventSchemas::CfnRegistry::TagsEntryProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
event_schemas/cfn_registry.rb

Overview

Tags to associate with the schema registry.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, value:) ⇒ TagsEntryProperty

Returns a new instance of TagsEntryProperty.

Parameters:

  • key (String)

    The key of a key-value pair.

  • value (String)

    The value of a key-value pair.



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

#keyString (readonly)

The key of a key-value pair.



565
566
567
# File 'event_schemas/cfn_registry.rb', line 565

def key
  @key
end

#valueString (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_propertiesObject



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_jsiiObject



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