Class: AWSCDK::DataBrew::CfnRuleset::ThresholdProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DataBrew::CfnRuleset::ThresholdProperty
- 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
-
#type ⇒ String?
readonly
The type of a threshold.
-
#unit ⇒ String?
readonly
Unit of threshold value.
-
#value ⇒ Numeric
readonly
The value of a threshold.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(value:, type: nil, unit: nil) ⇒ ThresholdProperty
constructor
A new instance of ThresholdProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(value:, type: nil, unit: nil) ⇒ ThresholdProperty
Returns a new instance of ThresholdProperty.
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
#type ⇒ String? (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 |
#unit ⇒ String? (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 |
#value ⇒ Numeric (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_properties ⇒ Object
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_jsii ⇒ Object
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 |