Class: AWSCDK::EventSchemas::CfnSchema::TagsEntryProperty

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

Overview

Tags to associate with the schema.

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.



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

#keyString (readonly)

The key of a key-value pair.



626
627
628
# File 'event_schemas/cfn_schema.rb', line 626

def key
  @key
end

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



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_jsiiObject



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