Class: AWSCDK::IoT::CfnSecurityProfile::StatisticalThresholdProperty

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

Overview

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.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(statistic: nil) ⇒ StatisticalThresholdProperty

Returns a new instance of StatisticalThresholdProperty.

Parameters:

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

    The percentile that resolves to a threshold value by which compliance with a behavior is determined.



1136
1137
1138
1139
# File 'io_t/cfn_security_profile.rb', line 1136

def initialize(statistic: nil)
  @statistic = statistic
  Jsii::Type.check_type(@statistic, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "statistic") unless @statistic.nil?
end

Instance Attribute Details

#statisticString? (readonly)

The percentile that resolves to a threshold value by which compliance with a behavior is determined.

Metrics are collected over the specified period ( duration_seconds ) from all reporting devices in your account and statistical ranks are calculated. Then, the measurements from a device are collected over the same period. If the accumulated measurements from the device fall above or below ( comparison_operator ) the value associated with the percentile specified, then the device is considered to be in compliance with the behavior, otherwise a violation occurs.



1147
1148
1149
# File 'io_t/cfn_security_profile.rb', line 1147

def statistic
  @statistic
end

Class Method Details

.jsii_propertiesObject



1149
1150
1151
1152
1153
# File 'io_t/cfn_security_profile.rb', line 1149

def self.jsii_properties
  {
    :statistic => "statistic",
  }
end

Instance Method Details

#to_jsiiObject



1155
1156
1157
1158
1159
1160
1161
# File 'io_t/cfn_security_profile.rb', line 1155

def to_jsii
  result = {}
  result.merge!({
    "statistic" => @statistic,
  })
  result.compact
end