Class: AWSCDK::Forecast::CfnDataset::TagsItemsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
forecast/cfn_dataset.rb

Overview

A key-value pair to associate with a resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, value:) ⇒ TagsItemsProperty

Returns a new instance of TagsItemsProperty.

Parameters:

  • key (String)

    The key name of the tag.

  • value (String)

    The value for the tag.



726
727
728
729
730
731
# File 'forecast/cfn_dataset.rb', line 726

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 name of the tag.

You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.



739
740
741
# File 'forecast/cfn_dataset.rb', line 739

def key
  @key
end

#valueString (readonly)

The value for the tag.

You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.



746
747
748
# File 'forecast/cfn_dataset.rb', line 746

def value
  @value
end

Class Method Details

.jsii_propertiesObject



748
749
750
751
752
753
# File 'forecast/cfn_dataset.rb', line 748

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

Instance Method Details

#to_jsiiObject



755
756
757
758
759
760
761
762
# File 'forecast/cfn_dataset.rb', line 755

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