Class: AWSCDK::StepFunctions::CfnStateMachine::TagsEntryProperty

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

Overview

The TagsEntry property specifies tags to identify a state machine.

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.



931
932
933
934
935
936
# File 'step_functions/cfn_state_machine.rb', line 931

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.



942
943
944
# File 'step_functions/cfn_state_machine.rb', line 942

def key
  @key
end

#valueString (readonly)

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



947
948
949
# File 'step_functions/cfn_state_machine.rb', line 947

def value
  @value
end

Class Method Details

.jsii_propertiesObject



949
950
951
952
953
954
# File 'step_functions/cfn_state_machine.rb', line 949

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

Instance Method Details

#to_jsiiObject



956
957
958
959
960
961
962
963
# File 'step_functions/cfn_state_machine.rb', line 956

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