Class: AWSCDK::Forecast::CfnDataset::TagsItemsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Forecast::CfnDataset::TagsItemsProperty
- Defined in:
- forecast/cfn_dataset.rb
Overview
A key-value pair to associate with a resource.
Instance Attribute Summary collapse
-
#key ⇒ String
readonly
The key name of the tag.
-
#value ⇒ String
readonly
The value for the tag.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key:, value:) ⇒ TagsItemsProperty
constructor
A new instance of TagsItemsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key:, value:) ⇒ TagsItemsProperty
Returns a new instance of TagsItemsProperty.
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
#key ⇒ String (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 |
#value ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |