Class: AWSCDK::DataBrew::CfnRuleset::ThresholdProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
data_brew/cfn_ruleset.rb

Overview

The threshold used with a non-aggregate check expression.

The non-aggregate check expression will be applied to each row in a specific column. Then the threshold will be used to determine whether the validation succeeds.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value:, type: nil, unit: nil) ⇒ ThresholdProperty

Returns a new instance of ThresholdProperty.

Parameters:

  • value (Numeric)

    The value of a threshold.

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

    The type of a threshold.

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

    Unit of threshold value.



739
740
741
742
743
744
745
746
# File 'data_brew/cfn_ruleset.rb', line 739

def initialize(value:, type: nil, unit: nil)
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "value")
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") unless @type.nil?
  @unit = unit
  Jsii::Type.check_type(@unit, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "unit") unless @unit.nil?
end

Instance Attribute Details

#typeString? (readonly)

The type of a threshold.

Used for comparison of an actual count of rows that satisfy the rule to the threshold value.



759
760
761
# File 'data_brew/cfn_ruleset.rb', line 759

def type
  @type
end

#unitString? (readonly)

Unit of threshold value.

Can be either a COUNT or PERCENTAGE of the full sample size used for validation.



766
767
768
# File 'data_brew/cfn_ruleset.rb', line 766

def unit
  @unit
end

#valueNumeric (readonly)

The value of a threshold.



752
753
754
# File 'data_brew/cfn_ruleset.rb', line 752

def value
  @value
end

Class Method Details

.jsii_propertiesObject



768
769
770
771
772
773
774
# File 'data_brew/cfn_ruleset.rb', line 768

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

Instance Method Details

#to_jsiiObject



776
777
778
779
780
781
782
783
784
# File 'data_brew/cfn_ruleset.rb', line 776

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