Class: AWSCDK::IoT::CfnSecurityProfile::MachineLearningDetectionConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoT::CfnSecurityProfile::MachineLearningDetectionConfigProperty
- Defined in:
- io_t/cfn_security_profile.rb
Overview
The MachineLearningDetectionConfig property type controls confidence of the machine learning model.
Instance Attribute Summary collapse
-
#confidence_level ⇒ String?
readonly
The model confidence level.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(confidence_level: nil) ⇒ MachineLearningDetectionConfigProperty
constructor
A new instance of MachineLearningDetectionConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(confidence_level: nil) ⇒ MachineLearningDetectionConfigProperty
Returns a new instance of MachineLearningDetectionConfigProperty.
873 874 875 876 |
# File 'io_t/cfn_security_profile.rb', line 873 def initialize(confidence_level: nil) @confidence_level = confidence_level Jsii::Type.check_type(@confidence_level, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "confidenceLevel") unless @confidence_level.nil? end |
Instance Attribute Details
#confidence_level ⇒ String? (readonly)
The model confidence level.
There are three levels of confidence, "high" , "medium" , and "low" .
The higher the confidence level, the lower the sensitivity, and the lower the alarm frequency will be.
886 887 888 |
# File 'io_t/cfn_security_profile.rb', line 886 def confidence_level @confidence_level end |
Class Method Details
.jsii_properties ⇒ Object
888 889 890 891 892 |
# File 'io_t/cfn_security_profile.rb', line 888 def self.jsii_properties { :confidence_level => "confidenceLevel", } end |
Instance Method Details
#to_jsii ⇒ Object
894 895 896 897 898 899 900 |
# File 'io_t/cfn_security_profile.rb', line 894 def to_jsii result = {} result.merge!({ "confidenceLevel" => @confidence_level, }) result.compact end |