Class CfnSecurityProfilePropsMixin.BehaviorCriteriaProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.iot.CfnSecurityProfilePropsMixin.BehaviorCriteriaProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSecurityProfilePropsMixin.BehaviorCriteriaProperty>
- Enclosing interface:
CfnSecurityProfilePropsMixin.BehaviorCriteriaProperty
@Stability(Stable)
public static final class CfnSecurityProfilePropsMixin.BehaviorCriteriaProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSecurityProfilePropsMixin.BehaviorCriteriaProperty>
A builder for
CfnSecurityProfilePropsMixin.BehaviorCriteriaProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.comparisonOperator(String comparisonOperator) consecutiveDatapointsToAlarm(Number consecutiveDatapointsToAlarm) consecutiveDatapointsToClear(Number consecutiveDatapointsToClear) durationSeconds(Number durationSeconds) mlDetectionConfig(CfnSecurityProfilePropsMixin.MachineLearningDetectionConfigProperty mlDetectionConfig) mlDetectionConfig(IResolvable mlDetectionConfig) statisticalThreshold(CfnSecurityProfilePropsMixin.StatisticalThresholdProperty statisticalThreshold) statisticalThreshold(IResolvable statisticalThreshold) Sets the value ofCfnSecurityProfilePropsMixin.BehaviorCriteriaProperty.getValue()value(IResolvable value) Sets the value ofCfnSecurityProfilePropsMixin.BehaviorCriteriaProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
comparisonOperator
@Stability(Stable) public CfnSecurityProfilePropsMixin.BehaviorCriteriaProperty.Builder comparisonOperator(String comparisonOperator) - Parameters:
comparisonOperator- The operator that relates the thing measured (metric) to the criteria (containing avalueorstatisticalThreshold). Valid operators include:string-list:in-setandnot-in-setnumber-list:in-setandnot-in-setip-address-list:in-cidr-setandnot-in-cidr-setnumber:less-than,less-than-equals,greater-than, andgreater-than-equals
- Returns:
this
-
consecutiveDatapointsToAlarm
@Stability(Stable) public CfnSecurityProfilePropsMixin.BehaviorCriteriaProperty.Builder consecutiveDatapointsToAlarm(Number consecutiveDatapointsToAlarm) Sets the value ofCfnSecurityProfilePropsMixin.BehaviorCriteriaProperty.getConsecutiveDatapointsToAlarm()- Parameters:
consecutiveDatapointsToAlarm- If a device is in violation of the behavior for the specified number of consecutive datapoints, an alarm occurs. If not specified, the default is 1.- Returns:
this
-
consecutiveDatapointsToClear
@Stability(Stable) public CfnSecurityProfilePropsMixin.BehaviorCriteriaProperty.Builder consecutiveDatapointsToClear(Number consecutiveDatapointsToClear) Sets the value ofCfnSecurityProfilePropsMixin.BehaviorCriteriaProperty.getConsecutiveDatapointsToClear()- Parameters:
consecutiveDatapointsToClear- If an alarm has occurred and the offending device is no longer in violation of the behavior for the specified number of consecutive datapoints, the alarm is cleared. If not specified, the default is 1.- Returns:
this
-
durationSeconds
@Stability(Stable) public CfnSecurityProfilePropsMixin.BehaviorCriteriaProperty.Builder durationSeconds(Number durationSeconds) - Parameters:
durationSeconds- Use this to specify the time duration over which the behavior is evaluated, for those criteria that have a time dimension (for example,NUM_MESSAGES_SENT). For astatisticalThreshholdmetric comparison, measurements from all devices are accumulated over this time duration before being used to calculate percentiles, and later, measurements from an individual device are also accumulated over this time duration before being given a percentile rank. Cannot be used with list-based metric datatypes.- Returns:
this
-
mlDetectionConfig
@Stability(Stable) public CfnSecurityProfilePropsMixin.BehaviorCriteriaProperty.Builder mlDetectionConfig(IResolvable mlDetectionConfig) - Parameters:
mlDetectionConfig- The confidence level of the detection model.- Returns:
this
-
mlDetectionConfig
@Stability(Stable) public CfnSecurityProfilePropsMixin.BehaviorCriteriaProperty.Builder mlDetectionConfig(CfnSecurityProfilePropsMixin.MachineLearningDetectionConfigProperty mlDetectionConfig) - Parameters:
mlDetectionConfig- The confidence level of the detection model.- Returns:
this
-
statisticalThreshold
@Stability(Stable) public CfnSecurityProfilePropsMixin.BehaviorCriteriaProperty.Builder statisticalThreshold(IResolvable statisticalThreshold) - Parameters:
statisticalThreshold- A statistical ranking (percentile)that indicates a threshold value by which a behavior is determined to be in compliance or in violation of the behavior.- Returns:
this
-
statisticalThreshold
@Stability(Stable) public CfnSecurityProfilePropsMixin.BehaviorCriteriaProperty.Builder statisticalThreshold(CfnSecurityProfilePropsMixin.StatisticalThresholdProperty statisticalThreshold) - Parameters:
statisticalThreshold- A statistical ranking (percentile)that indicates a threshold value by which a behavior is determined to be in compliance or in violation of the behavior.- Returns:
this
-
value
@Stability(Stable) public CfnSecurityProfilePropsMixin.BehaviorCriteriaProperty.Builder value(IResolvable value) Sets the value ofCfnSecurityProfilePropsMixin.BehaviorCriteriaProperty.getValue()- Parameters:
value- The value to be compared with themetric.- Returns:
this
-
value
@Stability(Stable) public CfnSecurityProfilePropsMixin.BehaviorCriteriaProperty.Builder value(CfnSecurityProfilePropsMixin.MetricValueProperty value) Sets the value ofCfnSecurityProfilePropsMixin.BehaviorCriteriaProperty.getValue()- Parameters:
value- The value to be compared with themetric.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSecurityProfilePropsMixin.BehaviorCriteriaProperty>- Returns:
- a new instance of
CfnSecurityProfilePropsMixin.BehaviorCriteriaProperty - Throws:
NullPointerException- if any required attribute was not provided
-