Class: AWSCDK::CustomerProfiles::CfnCalculatedAttributeDefinition::ThresholdProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
customer_profiles/cfn_calculated_attribute_definition.rb

Overview

The threshold for the calculated attribute.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(operator:, value:) ⇒ ThresholdProperty

Returns a new instance of ThresholdProperty.

Parameters:

  • operator (String)

    The operator of the threshold.

  • value (String)

    The value of the threshold.



894
895
896
897
898
899
# File 'customer_profiles/cfn_calculated_attribute_definition.rb', line 894

def initialize(operator:, value:)
  @operator = operator
  Jsii::Type.check_type(@operator, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "operator")
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value")
end

Instance Attribute Details

#operatorString (readonly)

The operator of the threshold.



905
906
907
# File 'customer_profiles/cfn_calculated_attribute_definition.rb', line 905

def operator
  @operator
end

#valueString (readonly)

The value of the threshold.



910
911
912
# File 'customer_profiles/cfn_calculated_attribute_definition.rb', line 910

def value
  @value
end

Class Method Details

.jsii_propertiesObject



912
913
914
915
916
917
# File 'customer_profiles/cfn_calculated_attribute_definition.rb', line 912

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

Instance Method Details

#to_jsiiObject



919
920
921
922
923
924
925
926
# File 'customer_profiles/cfn_calculated_attribute_definition.rb', line 919

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