module Stratosphere.IoT.SecurityProfile.MachineLearningDetectionConfigProperty (
MachineLearningDetectionConfigProperty(..),
mkMachineLearningDetectionConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MachineLearningDetectionConfigProperty
=
MachineLearningDetectionConfigProperty {MachineLearningDetectionConfigProperty -> ()
haddock_workaround_ :: (),
MachineLearningDetectionConfigProperty -> Maybe (Value Text)
confidenceLevel :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (MachineLearningDetectionConfigProperty
-> MachineLearningDetectionConfigProperty -> Bool
(MachineLearningDetectionConfigProperty
-> MachineLearningDetectionConfigProperty -> Bool)
-> (MachineLearningDetectionConfigProperty
-> MachineLearningDetectionConfigProperty -> Bool)
-> Eq MachineLearningDetectionConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MachineLearningDetectionConfigProperty
-> MachineLearningDetectionConfigProperty -> Bool
== :: MachineLearningDetectionConfigProperty
-> MachineLearningDetectionConfigProperty -> Bool
$c/= :: MachineLearningDetectionConfigProperty
-> MachineLearningDetectionConfigProperty -> Bool
/= :: MachineLearningDetectionConfigProperty
-> MachineLearningDetectionConfigProperty -> Bool
Prelude.Eq, Int -> MachineLearningDetectionConfigProperty -> ShowS
[MachineLearningDetectionConfigProperty] -> ShowS
MachineLearningDetectionConfigProperty -> String
(Int -> MachineLearningDetectionConfigProperty -> ShowS)
-> (MachineLearningDetectionConfigProperty -> String)
-> ([MachineLearningDetectionConfigProperty] -> ShowS)
-> Show MachineLearningDetectionConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MachineLearningDetectionConfigProperty -> ShowS
showsPrec :: Int -> MachineLearningDetectionConfigProperty -> ShowS
$cshow :: MachineLearningDetectionConfigProperty -> String
show :: MachineLearningDetectionConfigProperty -> String
$cshowList :: [MachineLearningDetectionConfigProperty] -> ShowS
showList :: [MachineLearningDetectionConfigProperty] -> ShowS
Prelude.Show)
mkMachineLearningDetectionConfigProperty ::
MachineLearningDetectionConfigProperty
mkMachineLearningDetectionConfigProperty :: MachineLearningDetectionConfigProperty
mkMachineLearningDetectionConfigProperty
= MachineLearningDetectionConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), confidenceLevel :: Maybe (Value Text)
confidenceLevel = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MachineLearningDetectionConfigProperty where
toResourceProperties :: MachineLearningDetectionConfigProperty -> ResourceProperties
toResourceProperties MachineLearningDetectionConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: MachineLearningDetectionConfigProperty -> ()
confidenceLevel :: MachineLearningDetectionConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
confidenceLevel :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IoT::SecurityProfile.MachineLearningDetectionConfig",
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
"ConfidenceLevel" (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)
confidenceLevel])}
instance JSON.ToJSON MachineLearningDetectionConfigProperty where
toJSON :: MachineLearningDetectionConfigProperty -> Value
toJSON MachineLearningDetectionConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: MachineLearningDetectionConfigProperty -> ()
confidenceLevel :: MachineLearningDetectionConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
confidenceLevel :: Maybe (Value Text)
..}
= [(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
"ConfidenceLevel" (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)
confidenceLevel]))
instance Property "ConfidenceLevel" MachineLearningDetectionConfigProperty where
type PropertyType "ConfidenceLevel" MachineLearningDetectionConfigProperty = Value Prelude.Text
set :: PropertyType
"ConfidenceLevel" MachineLearningDetectionConfigProperty
-> MachineLearningDetectionConfigProperty
-> MachineLearningDetectionConfigProperty
set PropertyType
"ConfidenceLevel" MachineLearningDetectionConfigProperty
newValue MachineLearningDetectionConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: MachineLearningDetectionConfigProperty -> ()
confidenceLevel :: MachineLearningDetectionConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
confidenceLevel :: Maybe (Value Text)
..}
= MachineLearningDetectionConfigProperty
{confidenceLevel :: Maybe (Value Text)
confidenceLevel = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"ConfidenceLevel" MachineLearningDetectionConfigProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}