Class: AWSCDK::BCMDataExports::CfnExport::ResourceTagProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bcm_data_exports/cfn_export.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 key that's associated with the tag.

  • value (String)

    The value that's associated with the tag.



738
739
740
741
742
743
# File 'bcm_data_exports/cfn_export.rb', line 738

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 that's associated with the tag.



749
750
751
# File 'bcm_data_exports/cfn_export.rb', line 749

def key
  @key
end

#valueString (readonly)

The value that's associated with the tag.



754
755
756
# File 'bcm_data_exports/cfn_export.rb', line 754

def value
  @value
end

Class Method Details

.jsii_propertiesObject



756
757
758
759
760
761
# File 'bcm_data_exports/cfn_export.rb', line 756

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

Instance Method Details

#to_jsiiObject



763
764
765
766
767
768
769
770
# File 'bcm_data_exports/cfn_export.rb', line 763

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