Class: AWSCDK::EventSchemas::CfnDiscoverer::TagsEntryProperty

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

Overview

Tags to associate with the discoverer.

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.



581
582
583
584
585
586
# File 'event_schemas/cfn_discoverer.rb', line 581

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.



592
593
594
# File 'event_schemas/cfn_discoverer.rb', line 592

def key
  @key
end

#valueString (readonly)

The value of a key-value pair.



597
598
599
# File 'event_schemas/cfn_discoverer.rb', line 597

def value
  @value
end

Class Method Details

.jsii_propertiesObject



599
600
601
602
603
604
# File 'event_schemas/cfn_discoverer.rb', line 599

def self.jsii_properties
  {
    :key => "key",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



606
607
608
609
610
611
612
613
# File 'event_schemas/cfn_discoverer.rb', line 606

def to_jsii
  result = {}
  result.merge!({
    "key" => @key,
    "value" => @value,
  })
  result.compact
end