Class: AWSCDK::Invoicing::CfnInvoiceUnit::ResourceTagProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
invoicing/cfn_invoice_unit.rb

Overview

The tag structure that contains a tag key and value.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, value:) ⇒ ResourceTagProperty

Returns a new instance of ResourceTagProperty.

Parameters:

  • key (String)

    The object key of your of your resource tag.

  • value (String)

    The specific value of the resource tag.



598
599
600
601
602
603
# File 'invoicing/cfn_invoice_unit.rb', line 598

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 object key of your of your resource tag.



609
610
611
# File 'invoicing/cfn_invoice_unit.rb', line 609

def key
  @key
end

#valueString (readonly)

The specific value of the resource tag.



614
615
616
# File 'invoicing/cfn_invoice_unit.rb', line 614

def value
  @value
end

Class Method Details

.jsii_propertiesObject



616
617
618
619
620
621
# File 'invoicing/cfn_invoice_unit.rb', line 616

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

Instance Method Details

#to_jsiiObject



623
624
625
626
627
628
629
630
# File 'invoicing/cfn_invoice_unit.rb', line 623

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