Class: AWSCDK::StepFunctionsTasks::MessageAttribute

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
step_functions_tasks/message_attribute.rb

Overview

A message attribute to add to the SNS message.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value:, data_type: nil) ⇒ MessageAttribute

Returns a new instance of MessageAttribute.

Parameters:



11
12
13
14
15
16
# File 'step_functions_tasks/message_attribute.rb', line 11

def initialize(value:, data_type: nil)
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "value")
  @data_type = data_type
  Jsii::Type.check_type(@data_type, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9uc190YXNrcy5NZXNzYWdlQXR0cmlidXRlRGF0YVR5cGUifQ==")), "dataType") unless @data_type.nil?
end

Instance Attribute Details

#data_typeAWSCDK::StepFunctionsTasks::MessageAttributeDataType? (readonly)

Note:

Default: determined by type inspection if possible, fallback is String

The data type for the attribute.



27
28
29
# File 'step_functions_tasks/message_attribute.rb', line 27

def data_type
  @data_type
end

#valueObject (readonly)

The value of the attribute.

Returns:

  • (Object)


21
22
23
# File 'step_functions_tasks/message_attribute.rb', line 21

def value
  @value
end

Class Method Details

.jsii_propertiesObject



29
30
31
32
33
34
# File 'step_functions_tasks/message_attribute.rb', line 29

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

Instance Method Details

#to_jsiiObject



36
37
38
39
40
41
42
43
# File 'step_functions_tasks/message_attribute.rb', line 36

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