Class: AWSCDK::IoTAnalytics::CfnPipeline::MathProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t_analytics/cfn_pipeline.rb

Overview

An activity that computes an arithmetic expression using the message's attributes.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attribute:, math:, name:, _next: nil) ⇒ MathProperty

Returns a new instance of MathProperty.

Parameters:

  • attribute (String)

    The name of the attribute that contains the result of the math operation.

  • math (String)

    An expression that uses one or more existing attributes and must return an integer value.

  • name (String)

    The name of the 'math' activity.

  • _next (String, nil) (defaults to: nil)

    The next activity in the pipeline.



1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
# File 'io_t_analytics/cfn_pipeline.rb', line 1097

def initialize(attribute:, math:, name:, _next: nil)
  @attribute = attribute
  Jsii::Type.check_type(@attribute, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "attribute")
  @math = math
  Jsii::Type.check_type(@math, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "math")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @_next = _next
  Jsii::Type.check_type(@_next, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "next") unless @_next.nil?
end

Instance Attribute Details

#_nextString? (readonly)

The next activity in the pipeline.



1127
1128
1129
# File 'io_t_analytics/cfn_pipeline.rb', line 1127

def _next
  @_next
end

#attributeString (readonly)

The name of the attribute that contains the result of the math operation.



1112
1113
1114
# File 'io_t_analytics/cfn_pipeline.rb', line 1112

def attribute
  @attribute
end

#mathString (readonly)

An expression that uses one or more existing attributes and must return an integer value.



1117
1118
1119
# File 'io_t_analytics/cfn_pipeline.rb', line 1117

def math
  @math
end

#nameString (readonly)

The name of the 'math' activity.



1122
1123
1124
# File 'io_t_analytics/cfn_pipeline.rb', line 1122

def name
  @name
end

Class Method Details

.jsii_propertiesObject



1129
1130
1131
1132
1133
1134
1135
1136
# File 'io_t_analytics/cfn_pipeline.rb', line 1129

def self.jsii_properties
  {
    :attribute => "attribute",
    :math => "math",
    :name => "name",
    :_next => "next",
  }
end

Instance Method Details

#to_jsiiObject



1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
# File 'io_t_analytics/cfn_pipeline.rb', line 1138

def to_jsii
  result = {}
  result.merge!({
    "attribute" => @attribute,
    "math" => @math,
    "name" => @name,
    "next" => @_next,
  })
  result.compact
end