Class: AWSCDK::StepFunctions::CfnActivity::TagsEntryProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
step_functions/cfn_activity.rb

Overview

The TagsEntry property specifies tags to identify an activity.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, value:) ⇒ TagsEntryProperty

Returns a new instance of TagsEntryProperty.

Parameters:

  • key (String)

    The key for a key-value pair in a tag entry.

  • value (String)

    The value for a key-value pair in a tag entry.



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

#keyString (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

#valueString (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_propertiesObject



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_jsiiObject



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