Interface CfnRuleset.ThresholdProperty

All Superinterfaces:
All Known Implementing Classes:
Enclosing class:

@Stability(Stable) public static interface CfnRuleset.ThresholdProperty extends
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.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 ThresholdProperty thresholdProperty = ThresholdProperty.builder()
         // the properties below are optional
  • Method Details

    • getValue

      @Stability(Stable) @NotNull Number getValue()
      The value of a threshold.
    • getType

      @Stability(Stable) @Nullable default String getType()
      The type of a threshold.

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

    • getUnit

      @Stability(Stable) @Nullable default String getUnit()
      Unit of threshold value.

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

    • builder

      @Stability(Stable) static CfnRuleset.ThresholdProperty.Builder builder()
      a CfnRuleset.ThresholdProperty.Builder of CfnRuleset.ThresholdProperty