Class: AWSCDK::StepFunctionsTasks::CustomModelTag
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::StepFunctionsTasks::CustomModelTag
- Defined in:
- step_functions_tasks/custom_model_tag.rb
Overview
The key/value pair for a tag.
Instance Attribute Summary collapse
-
#key ⇒ String
readonly
Key for the tag.
-
#value ⇒ String
readonly
Value for the tag.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key:, value:) ⇒ CustomModelTag
constructor
A new instance of CustomModelTag.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key:, value:) ⇒ CustomModelTag
Returns a new instance of CustomModelTag.
9 10 11 12 13 14 |
# File 'step_functions_tasks/custom_model_tag.rb', line 9 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)
Key for the tag.
19 20 21 |
# File 'step_functions_tasks/custom_model_tag.rb', line 19 def key @key end |
#value ⇒ String (readonly)
Value for the tag.
23 24 25 |
# File 'step_functions_tasks/custom_model_tag.rb', line 23 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'step_functions_tasks/custom_model_tag.rb', line 25 def self.jsii_properties { :key => "key", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'step_functions_tasks/custom_model_tag.rb', line 32 def to_jsii result = {} result.merge!({ "key" => @key, "value" => @value, }) result.compact end |