module Stratosphere.IoT.SecurityProfile.BehaviorCriteriaProperty (
module Exports, BehaviorCriteriaProperty(..),
mkBehaviorCriteriaProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.IoT.SecurityProfile.MachineLearningDetectionConfigProperty as Exports
import {-# SOURCE #-} Stratosphere.IoT.SecurityProfile.MetricValueProperty as Exports
import {-# SOURCE #-} Stratosphere.IoT.SecurityProfile.StatisticalThresholdProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data BehaviorCriteriaProperty
=
BehaviorCriteriaProperty {BehaviorCriteriaProperty -> ()
haddock_workaround_ :: (),
BehaviorCriteriaProperty -> Maybe (Value Text)
comparisonOperator :: (Prelude.Maybe (Value Prelude.Text)),
BehaviorCriteriaProperty -> Maybe (Value Integer)
consecutiveDatapointsToAlarm :: (Prelude.Maybe (Value Prelude.Integer)),
BehaviorCriteriaProperty -> Maybe (Value Integer)
consecutiveDatapointsToClear :: (Prelude.Maybe (Value Prelude.Integer)),
BehaviorCriteriaProperty -> Maybe (Value Integer)
durationSeconds :: (Prelude.Maybe (Value Prelude.Integer)),
BehaviorCriteriaProperty
-> Maybe MachineLearningDetectionConfigProperty
mlDetectionConfig :: (Prelude.Maybe MachineLearningDetectionConfigProperty),
BehaviorCriteriaProperty -> Maybe StatisticalThresholdProperty
statisticalThreshold :: (Prelude.Maybe StatisticalThresholdProperty),
BehaviorCriteriaProperty -> Maybe MetricValueProperty
value :: (Prelude.Maybe MetricValueProperty)}
deriving stock (BehaviorCriteriaProperty -> BehaviorCriteriaProperty -> Bool
(BehaviorCriteriaProperty -> BehaviorCriteriaProperty -> Bool)
-> (BehaviorCriteriaProperty -> BehaviorCriteriaProperty -> Bool)
-> Eq BehaviorCriteriaProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: BehaviorCriteriaProperty -> BehaviorCriteriaProperty -> Bool
== :: BehaviorCriteriaProperty -> BehaviorCriteriaProperty -> Bool
$c/= :: BehaviorCriteriaProperty -> BehaviorCriteriaProperty -> Bool
/= :: BehaviorCriteriaProperty -> BehaviorCriteriaProperty -> Bool
Prelude.Eq, Int -> BehaviorCriteriaProperty -> ShowS
[BehaviorCriteriaProperty] -> ShowS
BehaviorCriteriaProperty -> String
(Int -> BehaviorCriteriaProperty -> ShowS)
-> (BehaviorCriteriaProperty -> String)
-> ([BehaviorCriteriaProperty] -> ShowS)
-> Show BehaviorCriteriaProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> BehaviorCriteriaProperty -> ShowS
showsPrec :: Int -> BehaviorCriteriaProperty -> ShowS
$cshow :: BehaviorCriteriaProperty -> String
show :: BehaviorCriteriaProperty -> String
$cshowList :: [BehaviorCriteriaProperty] -> ShowS
showList :: [BehaviorCriteriaProperty] -> ShowS
Prelude.Show)
mkBehaviorCriteriaProperty :: BehaviorCriteriaProperty
mkBehaviorCriteriaProperty :: BehaviorCriteriaProperty
mkBehaviorCriteriaProperty
= BehaviorCriteriaProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), comparisonOperator :: Maybe (Value Text)
comparisonOperator = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
consecutiveDatapointsToAlarm :: Maybe (Value Integer)
consecutiveDatapointsToAlarm = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
consecutiveDatapointsToClear :: Maybe (Value Integer)
consecutiveDatapointsToClear = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
durationSeconds :: Maybe (Value Integer)
durationSeconds = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
mlDetectionConfig :: Maybe MachineLearningDetectionConfigProperty
mlDetectionConfig = Maybe MachineLearningDetectionConfigProperty
forall a. Maybe a
Prelude.Nothing,
statisticalThreshold :: Maybe StatisticalThresholdProperty
statisticalThreshold = Maybe StatisticalThresholdProperty
forall a. Maybe a
Prelude.Nothing, value :: Maybe MetricValueProperty
value = Maybe MetricValueProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties BehaviorCriteriaProperty where
toResourceProperties :: BehaviorCriteriaProperty -> ResourceProperties
toResourceProperties BehaviorCriteriaProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe MachineLearningDetectionConfigProperty
Maybe MetricValueProperty
Maybe StatisticalThresholdProperty
()
haddock_workaround_ :: BehaviorCriteriaProperty -> ()
comparisonOperator :: BehaviorCriteriaProperty -> Maybe (Value Text)
consecutiveDatapointsToAlarm :: BehaviorCriteriaProperty -> Maybe (Value Integer)
consecutiveDatapointsToClear :: BehaviorCriteriaProperty -> Maybe (Value Integer)
durationSeconds :: BehaviorCriteriaProperty -> Maybe (Value Integer)
mlDetectionConfig :: BehaviorCriteriaProperty
-> Maybe MachineLearningDetectionConfigProperty
statisticalThreshold :: BehaviorCriteriaProperty -> Maybe StatisticalThresholdProperty
value :: BehaviorCriteriaProperty -> Maybe MetricValueProperty
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
consecutiveDatapointsToAlarm :: Maybe (Value Integer)
consecutiveDatapointsToClear :: Maybe (Value Integer)
durationSeconds :: Maybe (Value Integer)
mlDetectionConfig :: Maybe MachineLearningDetectionConfigProperty
statisticalThreshold :: Maybe StatisticalThresholdProperty
value :: Maybe MetricValueProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IoT::SecurityProfile.BehaviorCriteria",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ComparisonOperator" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
comparisonOperator,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ConsecutiveDatapointsToAlarm"
(Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
consecutiveDatapointsToAlarm,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ConsecutiveDatapointsToClear"
(Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
consecutiveDatapointsToClear,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DurationSeconds" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
durationSeconds,
Key -> MachineLearningDetectionConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MlDetectionConfig" (MachineLearningDetectionConfigProperty -> (Key, Value))
-> Maybe MachineLearningDetectionConfigProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MachineLearningDetectionConfigProperty
mlDetectionConfig,
Key -> StatisticalThresholdProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StatisticalThreshold" (StatisticalThresholdProperty -> (Key, Value))
-> Maybe StatisticalThresholdProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe StatisticalThresholdProperty
statisticalThreshold,
Key -> MetricValueProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Value" (MetricValueProperty -> (Key, Value))
-> Maybe MetricValueProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MetricValueProperty
value])}
instance JSON.ToJSON BehaviorCriteriaProperty where
toJSON :: BehaviorCriteriaProperty -> Value
toJSON BehaviorCriteriaProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe MachineLearningDetectionConfigProperty
Maybe MetricValueProperty
Maybe StatisticalThresholdProperty
()
haddock_workaround_ :: BehaviorCriteriaProperty -> ()
comparisonOperator :: BehaviorCriteriaProperty -> Maybe (Value Text)
consecutiveDatapointsToAlarm :: BehaviorCriteriaProperty -> Maybe (Value Integer)
consecutiveDatapointsToClear :: BehaviorCriteriaProperty -> Maybe (Value Integer)
durationSeconds :: BehaviorCriteriaProperty -> Maybe (Value Integer)
mlDetectionConfig :: BehaviorCriteriaProperty
-> Maybe MachineLearningDetectionConfigProperty
statisticalThreshold :: BehaviorCriteriaProperty -> Maybe StatisticalThresholdProperty
value :: BehaviorCriteriaProperty -> Maybe MetricValueProperty
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
consecutiveDatapointsToAlarm :: Maybe (Value Integer)
consecutiveDatapointsToClear :: Maybe (Value Integer)
durationSeconds :: Maybe (Value Integer)
mlDetectionConfig :: Maybe MachineLearningDetectionConfigProperty
statisticalThreshold :: Maybe StatisticalThresholdProperty
value :: Maybe MetricValueProperty
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ComparisonOperator" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
comparisonOperator,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ConsecutiveDatapointsToAlarm"
(Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
consecutiveDatapointsToAlarm,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ConsecutiveDatapointsToClear"
(Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
consecutiveDatapointsToClear,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DurationSeconds" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
durationSeconds,
Key -> MachineLearningDetectionConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MlDetectionConfig" (MachineLearningDetectionConfigProperty -> (Key, Value))
-> Maybe MachineLearningDetectionConfigProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MachineLearningDetectionConfigProperty
mlDetectionConfig,
Key -> StatisticalThresholdProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StatisticalThreshold" (StatisticalThresholdProperty -> (Key, Value))
-> Maybe StatisticalThresholdProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe StatisticalThresholdProperty
statisticalThreshold,
Key -> MetricValueProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Value" (MetricValueProperty -> (Key, Value))
-> Maybe MetricValueProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MetricValueProperty
value]))
instance Property "ComparisonOperator" BehaviorCriteriaProperty where
type PropertyType "ComparisonOperator" BehaviorCriteriaProperty = Value Prelude.Text
set :: PropertyType "ComparisonOperator" BehaviorCriteriaProperty
-> BehaviorCriteriaProperty -> BehaviorCriteriaProperty
set PropertyType "ComparisonOperator" BehaviorCriteriaProperty
newValue BehaviorCriteriaProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe MachineLearningDetectionConfigProperty
Maybe MetricValueProperty
Maybe StatisticalThresholdProperty
()
haddock_workaround_ :: BehaviorCriteriaProperty -> ()
comparisonOperator :: BehaviorCriteriaProperty -> Maybe (Value Text)
consecutiveDatapointsToAlarm :: BehaviorCriteriaProperty -> Maybe (Value Integer)
consecutiveDatapointsToClear :: BehaviorCriteriaProperty -> Maybe (Value Integer)
durationSeconds :: BehaviorCriteriaProperty -> Maybe (Value Integer)
mlDetectionConfig :: BehaviorCriteriaProperty
-> Maybe MachineLearningDetectionConfigProperty
statisticalThreshold :: BehaviorCriteriaProperty -> Maybe StatisticalThresholdProperty
value :: BehaviorCriteriaProperty -> Maybe MetricValueProperty
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
consecutiveDatapointsToAlarm :: Maybe (Value Integer)
consecutiveDatapointsToClear :: Maybe (Value Integer)
durationSeconds :: Maybe (Value Integer)
mlDetectionConfig :: Maybe MachineLearningDetectionConfigProperty
statisticalThreshold :: Maybe StatisticalThresholdProperty
value :: Maybe MetricValueProperty
..}
= BehaviorCriteriaProperty
{comparisonOperator :: Maybe (Value Text)
comparisonOperator = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ComparisonOperator" BehaviorCriteriaProperty
Value Text
newValue, Maybe (Value Integer)
Maybe MachineLearningDetectionConfigProperty
Maybe MetricValueProperty
Maybe StatisticalThresholdProperty
()
haddock_workaround_ :: ()
consecutiveDatapointsToAlarm :: Maybe (Value Integer)
consecutiveDatapointsToClear :: Maybe (Value Integer)
durationSeconds :: Maybe (Value Integer)
mlDetectionConfig :: Maybe MachineLearningDetectionConfigProperty
statisticalThreshold :: Maybe StatisticalThresholdProperty
value :: Maybe MetricValueProperty
haddock_workaround_ :: ()
consecutiveDatapointsToAlarm :: Maybe (Value Integer)
consecutiveDatapointsToClear :: Maybe (Value Integer)
durationSeconds :: Maybe (Value Integer)
mlDetectionConfig :: Maybe MachineLearningDetectionConfigProperty
statisticalThreshold :: Maybe StatisticalThresholdProperty
value :: Maybe MetricValueProperty
..}
instance Property "ConsecutiveDatapointsToAlarm" BehaviorCriteriaProperty where
type PropertyType "ConsecutiveDatapointsToAlarm" BehaviorCriteriaProperty = Value Prelude.Integer
set :: PropertyType
"ConsecutiveDatapointsToAlarm" BehaviorCriteriaProperty
-> BehaviorCriteriaProperty -> BehaviorCriteriaProperty
set PropertyType
"ConsecutiveDatapointsToAlarm" BehaviorCriteriaProperty
newValue BehaviorCriteriaProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe MachineLearningDetectionConfigProperty
Maybe MetricValueProperty
Maybe StatisticalThresholdProperty
()
haddock_workaround_ :: BehaviorCriteriaProperty -> ()
comparisonOperator :: BehaviorCriteriaProperty -> Maybe (Value Text)
consecutiveDatapointsToAlarm :: BehaviorCriteriaProperty -> Maybe (Value Integer)
consecutiveDatapointsToClear :: BehaviorCriteriaProperty -> Maybe (Value Integer)
durationSeconds :: BehaviorCriteriaProperty -> Maybe (Value Integer)
mlDetectionConfig :: BehaviorCriteriaProperty
-> Maybe MachineLearningDetectionConfigProperty
statisticalThreshold :: BehaviorCriteriaProperty -> Maybe StatisticalThresholdProperty
value :: BehaviorCriteriaProperty -> Maybe MetricValueProperty
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
consecutiveDatapointsToAlarm :: Maybe (Value Integer)
consecutiveDatapointsToClear :: Maybe (Value Integer)
durationSeconds :: Maybe (Value Integer)
mlDetectionConfig :: Maybe MachineLearningDetectionConfigProperty
statisticalThreshold :: Maybe StatisticalThresholdProperty
value :: Maybe MetricValueProperty
..}
= BehaviorCriteriaProperty
{consecutiveDatapointsToAlarm :: Maybe (Value Integer)
consecutiveDatapointsToAlarm = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"ConsecutiveDatapointsToAlarm" BehaviorCriteriaProperty
Value Integer
newValue, Maybe (Value Integer)
Maybe (Value Text)
Maybe MachineLearningDetectionConfigProperty
Maybe MetricValueProperty
Maybe StatisticalThresholdProperty
()
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
consecutiveDatapointsToClear :: Maybe (Value Integer)
durationSeconds :: Maybe (Value Integer)
mlDetectionConfig :: Maybe MachineLearningDetectionConfigProperty
statisticalThreshold :: Maybe StatisticalThresholdProperty
value :: Maybe MetricValueProperty
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
consecutiveDatapointsToClear :: Maybe (Value Integer)
durationSeconds :: Maybe (Value Integer)
mlDetectionConfig :: Maybe MachineLearningDetectionConfigProperty
statisticalThreshold :: Maybe StatisticalThresholdProperty
value :: Maybe MetricValueProperty
..}
instance Property "ConsecutiveDatapointsToClear" BehaviorCriteriaProperty where
type PropertyType "ConsecutiveDatapointsToClear" BehaviorCriteriaProperty = Value Prelude.Integer
set :: PropertyType
"ConsecutiveDatapointsToClear" BehaviorCriteriaProperty
-> BehaviorCriteriaProperty -> BehaviorCriteriaProperty
set PropertyType
"ConsecutiveDatapointsToClear" BehaviorCriteriaProperty
newValue BehaviorCriteriaProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe MachineLearningDetectionConfigProperty
Maybe MetricValueProperty
Maybe StatisticalThresholdProperty
()
haddock_workaround_ :: BehaviorCriteriaProperty -> ()
comparisonOperator :: BehaviorCriteriaProperty -> Maybe (Value Text)
consecutiveDatapointsToAlarm :: BehaviorCriteriaProperty -> Maybe (Value Integer)
consecutiveDatapointsToClear :: BehaviorCriteriaProperty -> Maybe (Value Integer)
durationSeconds :: BehaviorCriteriaProperty -> Maybe (Value Integer)
mlDetectionConfig :: BehaviorCriteriaProperty
-> Maybe MachineLearningDetectionConfigProperty
statisticalThreshold :: BehaviorCriteriaProperty -> Maybe StatisticalThresholdProperty
value :: BehaviorCriteriaProperty -> Maybe MetricValueProperty
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
consecutiveDatapointsToAlarm :: Maybe (Value Integer)
consecutiveDatapointsToClear :: Maybe (Value Integer)
durationSeconds :: Maybe (Value Integer)
mlDetectionConfig :: Maybe MachineLearningDetectionConfigProperty
statisticalThreshold :: Maybe StatisticalThresholdProperty
value :: Maybe MetricValueProperty
..}
= BehaviorCriteriaProperty
{consecutiveDatapointsToClear :: Maybe (Value Integer)
consecutiveDatapointsToClear = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"ConsecutiveDatapointsToClear" BehaviorCriteriaProperty
Value Integer
newValue, Maybe (Value Integer)
Maybe (Value Text)
Maybe MachineLearningDetectionConfigProperty
Maybe MetricValueProperty
Maybe StatisticalThresholdProperty
()
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
consecutiveDatapointsToAlarm :: Maybe (Value Integer)
durationSeconds :: Maybe (Value Integer)
mlDetectionConfig :: Maybe MachineLearningDetectionConfigProperty
statisticalThreshold :: Maybe StatisticalThresholdProperty
value :: Maybe MetricValueProperty
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
consecutiveDatapointsToAlarm :: Maybe (Value Integer)
durationSeconds :: Maybe (Value Integer)
mlDetectionConfig :: Maybe MachineLearningDetectionConfigProperty
statisticalThreshold :: Maybe StatisticalThresholdProperty
value :: Maybe MetricValueProperty
..}
instance Property "DurationSeconds" BehaviorCriteriaProperty where
type PropertyType "DurationSeconds" BehaviorCriteriaProperty = Value Prelude.Integer
set :: PropertyType "DurationSeconds" BehaviorCriteriaProperty
-> BehaviorCriteriaProperty -> BehaviorCriteriaProperty
set PropertyType "DurationSeconds" BehaviorCriteriaProperty
newValue BehaviorCriteriaProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe MachineLearningDetectionConfigProperty
Maybe MetricValueProperty
Maybe StatisticalThresholdProperty
()
haddock_workaround_ :: BehaviorCriteriaProperty -> ()
comparisonOperator :: BehaviorCriteriaProperty -> Maybe (Value Text)
consecutiveDatapointsToAlarm :: BehaviorCriteriaProperty -> Maybe (Value Integer)
consecutiveDatapointsToClear :: BehaviorCriteriaProperty -> Maybe (Value Integer)
durationSeconds :: BehaviorCriteriaProperty -> Maybe (Value Integer)
mlDetectionConfig :: BehaviorCriteriaProperty
-> Maybe MachineLearningDetectionConfigProperty
statisticalThreshold :: BehaviorCriteriaProperty -> Maybe StatisticalThresholdProperty
value :: BehaviorCriteriaProperty -> Maybe MetricValueProperty
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
consecutiveDatapointsToAlarm :: Maybe (Value Integer)
consecutiveDatapointsToClear :: Maybe (Value Integer)
durationSeconds :: Maybe (Value Integer)
mlDetectionConfig :: Maybe MachineLearningDetectionConfigProperty
statisticalThreshold :: Maybe StatisticalThresholdProperty
value :: Maybe MetricValueProperty
..}
= BehaviorCriteriaProperty
{durationSeconds :: Maybe (Value Integer)
durationSeconds = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DurationSeconds" BehaviorCriteriaProperty
Value Integer
newValue, Maybe (Value Integer)
Maybe (Value Text)
Maybe MachineLearningDetectionConfigProperty
Maybe MetricValueProperty
Maybe StatisticalThresholdProperty
()
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
consecutiveDatapointsToAlarm :: Maybe (Value Integer)
consecutiveDatapointsToClear :: Maybe (Value Integer)
mlDetectionConfig :: Maybe MachineLearningDetectionConfigProperty
statisticalThreshold :: Maybe StatisticalThresholdProperty
value :: Maybe MetricValueProperty
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
consecutiveDatapointsToAlarm :: Maybe (Value Integer)
consecutiveDatapointsToClear :: Maybe (Value Integer)
mlDetectionConfig :: Maybe MachineLearningDetectionConfigProperty
statisticalThreshold :: Maybe StatisticalThresholdProperty
value :: Maybe MetricValueProperty
..}
instance Property "MlDetectionConfig" BehaviorCriteriaProperty where
type PropertyType "MlDetectionConfig" BehaviorCriteriaProperty = MachineLearningDetectionConfigProperty
set :: PropertyType "MlDetectionConfig" BehaviorCriteriaProperty
-> BehaviorCriteriaProperty -> BehaviorCriteriaProperty
set PropertyType "MlDetectionConfig" BehaviorCriteriaProperty
newValue BehaviorCriteriaProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe MachineLearningDetectionConfigProperty
Maybe MetricValueProperty
Maybe StatisticalThresholdProperty
()
haddock_workaround_ :: BehaviorCriteriaProperty -> ()
comparisonOperator :: BehaviorCriteriaProperty -> Maybe (Value Text)
consecutiveDatapointsToAlarm :: BehaviorCriteriaProperty -> Maybe (Value Integer)
consecutiveDatapointsToClear :: BehaviorCriteriaProperty -> Maybe (Value Integer)
durationSeconds :: BehaviorCriteriaProperty -> Maybe (Value Integer)
mlDetectionConfig :: BehaviorCriteriaProperty
-> Maybe MachineLearningDetectionConfigProperty
statisticalThreshold :: BehaviorCriteriaProperty -> Maybe StatisticalThresholdProperty
value :: BehaviorCriteriaProperty -> Maybe MetricValueProperty
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
consecutiveDatapointsToAlarm :: Maybe (Value Integer)
consecutiveDatapointsToClear :: Maybe (Value Integer)
durationSeconds :: Maybe (Value Integer)
mlDetectionConfig :: Maybe MachineLearningDetectionConfigProperty
statisticalThreshold :: Maybe StatisticalThresholdProperty
value :: Maybe MetricValueProperty
..}
= BehaviorCriteriaProperty
{mlDetectionConfig :: Maybe MachineLearningDetectionConfigProperty
mlDetectionConfig = MachineLearningDetectionConfigProperty
-> Maybe MachineLearningDetectionConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MlDetectionConfig" BehaviorCriteriaProperty
MachineLearningDetectionConfigProperty
newValue, Maybe (Value Integer)
Maybe (Value Text)
Maybe MetricValueProperty
Maybe StatisticalThresholdProperty
()
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
consecutiveDatapointsToAlarm :: Maybe (Value Integer)
consecutiveDatapointsToClear :: Maybe (Value Integer)
durationSeconds :: Maybe (Value Integer)
statisticalThreshold :: Maybe StatisticalThresholdProperty
value :: Maybe MetricValueProperty
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
consecutiveDatapointsToAlarm :: Maybe (Value Integer)
consecutiveDatapointsToClear :: Maybe (Value Integer)
durationSeconds :: Maybe (Value Integer)
statisticalThreshold :: Maybe StatisticalThresholdProperty
value :: Maybe MetricValueProperty
..}
instance Property "StatisticalThreshold" BehaviorCriteriaProperty where
type PropertyType "StatisticalThreshold" BehaviorCriteriaProperty = StatisticalThresholdProperty
set :: PropertyType "StatisticalThreshold" BehaviorCriteriaProperty
-> BehaviorCriteriaProperty -> BehaviorCriteriaProperty
set PropertyType "StatisticalThreshold" BehaviorCriteriaProperty
newValue BehaviorCriteriaProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe MachineLearningDetectionConfigProperty
Maybe MetricValueProperty
Maybe StatisticalThresholdProperty
()
haddock_workaround_ :: BehaviorCriteriaProperty -> ()
comparisonOperator :: BehaviorCriteriaProperty -> Maybe (Value Text)
consecutiveDatapointsToAlarm :: BehaviorCriteriaProperty -> Maybe (Value Integer)
consecutiveDatapointsToClear :: BehaviorCriteriaProperty -> Maybe (Value Integer)
durationSeconds :: BehaviorCriteriaProperty -> Maybe (Value Integer)
mlDetectionConfig :: BehaviorCriteriaProperty
-> Maybe MachineLearningDetectionConfigProperty
statisticalThreshold :: BehaviorCriteriaProperty -> Maybe StatisticalThresholdProperty
value :: BehaviorCriteriaProperty -> Maybe MetricValueProperty
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
consecutiveDatapointsToAlarm :: Maybe (Value Integer)
consecutiveDatapointsToClear :: Maybe (Value Integer)
durationSeconds :: Maybe (Value Integer)
mlDetectionConfig :: Maybe MachineLearningDetectionConfigProperty
statisticalThreshold :: Maybe StatisticalThresholdProperty
value :: Maybe MetricValueProperty
..}
= BehaviorCriteriaProperty
{statisticalThreshold :: Maybe StatisticalThresholdProperty
statisticalThreshold = StatisticalThresholdProperty -> Maybe StatisticalThresholdProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "StatisticalThreshold" BehaviorCriteriaProperty
StatisticalThresholdProperty
newValue, Maybe (Value Integer)
Maybe (Value Text)
Maybe MachineLearningDetectionConfigProperty
Maybe MetricValueProperty
()
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
consecutiveDatapointsToAlarm :: Maybe (Value Integer)
consecutiveDatapointsToClear :: Maybe (Value Integer)
durationSeconds :: Maybe (Value Integer)
mlDetectionConfig :: Maybe MachineLearningDetectionConfigProperty
value :: Maybe MetricValueProperty
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
consecutiveDatapointsToAlarm :: Maybe (Value Integer)
consecutiveDatapointsToClear :: Maybe (Value Integer)
durationSeconds :: Maybe (Value Integer)
mlDetectionConfig :: Maybe MachineLearningDetectionConfigProperty
value :: Maybe MetricValueProperty
..}
instance Property "Value" BehaviorCriteriaProperty where
type PropertyType "Value" BehaviorCriteriaProperty = MetricValueProperty
set :: PropertyType "Value" BehaviorCriteriaProperty
-> BehaviorCriteriaProperty -> BehaviorCriteriaProperty
set PropertyType "Value" BehaviorCriteriaProperty
newValue BehaviorCriteriaProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe MachineLearningDetectionConfigProperty
Maybe MetricValueProperty
Maybe StatisticalThresholdProperty
()
haddock_workaround_ :: BehaviorCriteriaProperty -> ()
comparisonOperator :: BehaviorCriteriaProperty -> Maybe (Value Text)
consecutiveDatapointsToAlarm :: BehaviorCriteriaProperty -> Maybe (Value Integer)
consecutiveDatapointsToClear :: BehaviorCriteriaProperty -> Maybe (Value Integer)
durationSeconds :: BehaviorCriteriaProperty -> Maybe (Value Integer)
mlDetectionConfig :: BehaviorCriteriaProperty
-> Maybe MachineLearningDetectionConfigProperty
statisticalThreshold :: BehaviorCriteriaProperty -> Maybe StatisticalThresholdProperty
value :: BehaviorCriteriaProperty -> Maybe MetricValueProperty
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
consecutiveDatapointsToAlarm :: Maybe (Value Integer)
consecutiveDatapointsToClear :: Maybe (Value Integer)
durationSeconds :: Maybe (Value Integer)
mlDetectionConfig :: Maybe MachineLearningDetectionConfigProperty
statisticalThreshold :: Maybe StatisticalThresholdProperty
value :: Maybe MetricValueProperty
..}
= BehaviorCriteriaProperty {value :: Maybe MetricValueProperty
value = MetricValueProperty -> Maybe MetricValueProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Value" BehaviorCriteriaProperty
MetricValueProperty
newValue, Maybe (Value Integer)
Maybe (Value Text)
Maybe MachineLearningDetectionConfigProperty
Maybe StatisticalThresholdProperty
()
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
consecutiveDatapointsToAlarm :: Maybe (Value Integer)
consecutiveDatapointsToClear :: Maybe (Value Integer)
durationSeconds :: Maybe (Value Integer)
mlDetectionConfig :: Maybe MachineLearningDetectionConfigProperty
statisticalThreshold :: Maybe StatisticalThresholdProperty
haddock_workaround_ :: ()
comparisonOperator :: Maybe (Value Text)
consecutiveDatapointsToAlarm :: Maybe (Value Integer)
consecutiveDatapointsToClear :: Maybe (Value Integer)
durationSeconds :: Maybe (Value Integer)
mlDetectionConfig :: Maybe MachineLearningDetectionConfigProperty
statisticalThreshold :: Maybe StatisticalThresholdProperty
..}