Class: AWSCDK::StepFunctionsTasks::MessageAttribute
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::StepFunctionsTasks::MessageAttribute
- Defined in:
- step_functions_tasks/message_attribute.rb
Overview
A message attribute to add to the SNS message.
Instance Attribute Summary collapse
-
#data_type ⇒ AWSCDK::StepFunctionsTasks::MessageAttributeDataType?
readonly
The data type for the attribute.
-
#value ⇒ Object
readonly
The value of the attribute.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(value:, data_type: nil) ⇒ MessageAttribute
constructor
A new instance of MessageAttribute.
- #to_jsii ⇒ Object
Constructor Details
#initialize(value:, data_type: nil) ⇒ MessageAttribute
Returns a new instance of MessageAttribute.
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_type ⇒ AWSCDK::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 |
#value ⇒ Object (readonly)
The value of the attribute.
21 22 23 |
# File 'step_functions_tasks/message_attribute.rb', line 21 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |