Class: AWSCDK::IoT::CfnSecurityProfile::MachineLearningDetectionConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t/cfn_security_profile.rb

Overview

The MachineLearningDetectionConfig property type controls confidence of the machine learning model.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(confidence_level: nil) ⇒ MachineLearningDetectionConfigProperty

Returns a new instance of MachineLearningDetectionConfigProperty.

Parameters:

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

    The model confidence level.



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_levelString? (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_propertiesObject



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_jsiiObject



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