Class: AWSCDK::StepFunctions::CfnActivity::TagsEntryProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::StepFunctions::CfnActivity::TagsEntryProperty
- Defined in:
- step_functions/cfn_activity.rb
Overview
The TagsEntry property specifies tags to identify an activity.
Instance Attribute Summary collapse
-
#key ⇒ String
readonly
The
keyfor a key-value pair in a tag entry. -
#value ⇒ String
readonly
The
valuefor a key-value pair in a tag entry.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key:, value:) ⇒ TagsEntryProperty
constructor
A new instance of TagsEntryProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key:, value:) ⇒ TagsEntryProperty
Returns a new instance of TagsEntryProperty.
624 625 626 627 628 629 |
# File 'step_functions/cfn_activity.rb', line 624 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 for a key-value pair in a tag entry.
635 636 637 |
# File 'step_functions/cfn_activity.rb', line 635 def key @key end |
#value ⇒ String (readonly)
The value for a key-value pair in a tag entry.
640 641 642 |
# File 'step_functions/cfn_activity.rb', line 640 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
642 643 644 645 646 647 |
# File 'step_functions/cfn_activity.rb', line 642 def self.jsii_properties { :key => "key", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
649 650 651 652 653 654 655 656 |
# File 'step_functions/cfn_activity.rb', line 649 def to_jsii result = {} result.merge!({ "key" => @key, "value" => @value, }) result.compact end |