module Stratosphere.FraudDetector.Detector (
        module Exports, Detector(..), mkDetector
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.FraudDetector.Detector.EventTypeProperty as Exports
import {-# SOURCE #-} Stratosphere.FraudDetector.Detector.ModelProperty as Exports
import {-# SOURCE #-} Stratosphere.FraudDetector.Detector.RuleProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data Detector
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-frauddetector-detector.html>
    Detector {Detector -> ()
haddock_workaround_ :: (),
              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-frauddetector-detector.html#cfn-frauddetector-detector-associatedmodels>
              Detector -> Maybe [ModelProperty]
associatedModels :: (Prelude.Maybe [ModelProperty]),
              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-frauddetector-detector.html#cfn-frauddetector-detector-description>
              Detector -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-frauddetector-detector.html#cfn-frauddetector-detector-detectorid>
              Detector -> Value Text
detectorId :: (Value Prelude.Text),
              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-frauddetector-detector.html#cfn-frauddetector-detector-detectorversionstatus>
              Detector -> Maybe (Value Text)
detectorVersionStatus :: (Prelude.Maybe (Value Prelude.Text)),
              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-frauddetector-detector.html#cfn-frauddetector-detector-eventtype>
              Detector -> EventTypeProperty
eventType :: EventTypeProperty,
              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-frauddetector-detector.html#cfn-frauddetector-detector-ruleexecutionmode>
              Detector -> Maybe (Value Text)
ruleExecutionMode :: (Prelude.Maybe (Value Prelude.Text)),
              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-frauddetector-detector.html#cfn-frauddetector-detector-rules>
              Detector -> [RuleProperty]
rules :: [RuleProperty],
              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-frauddetector-detector.html#cfn-frauddetector-detector-tags>
              Detector -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
  deriving stock (Detector -> Detector -> Bool
(Detector -> Detector -> Bool)
-> (Detector -> Detector -> Bool) -> Eq Detector
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Detector -> Detector -> Bool
== :: Detector -> Detector -> Bool
$c/= :: Detector -> Detector -> Bool
/= :: Detector -> Detector -> Bool
Prelude.Eq, Int -> Detector -> ShowS
[Detector] -> ShowS
Detector -> String
(Int -> Detector -> ShowS)
-> (Detector -> String) -> ([Detector] -> ShowS) -> Show Detector
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Detector -> ShowS
showsPrec :: Int -> Detector -> ShowS
$cshow :: Detector -> String
show :: Detector -> String
$cshowList :: [Detector] -> ShowS
showList :: [Detector] -> ShowS
Prelude.Show)
mkDetector ::
  Value Prelude.Text
  -> EventTypeProperty -> [RuleProperty] -> Detector
mkDetector :: Value Text -> EventTypeProperty -> [RuleProperty] -> Detector
mkDetector Value Text
detectorId EventTypeProperty
eventType [RuleProperty]
rules
  = Detector
      {haddock_workaround_ :: ()
haddock_workaround_ = (), detectorId :: Value Text
detectorId = Value Text
detectorId,
       eventType :: EventTypeProperty
eventType = EventTypeProperty
eventType, rules :: [RuleProperty]
rules = [RuleProperty]
rules,
       associatedModels :: Maybe [ModelProperty]
associatedModels = Maybe [ModelProperty]
forall a. Maybe a
Prelude.Nothing, description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       detectorVersionStatus :: Maybe (Value Text)
detectorVersionStatus = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       ruleExecutionMode :: Maybe (Value Text)
ruleExecutionMode = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Detector where
  toResourceProperties :: Detector -> ResourceProperties
toResourceProperties Detector {[RuleProperty]
Maybe [Tag]
Maybe [ModelProperty]
Maybe (Value Text)
()
Value Text
EventTypeProperty
haddock_workaround_ :: Detector -> ()
associatedModels :: Detector -> Maybe [ModelProperty]
description :: Detector -> Maybe (Value Text)
detectorId :: Detector -> Value Text
detectorVersionStatus :: Detector -> Maybe (Value Text)
eventType :: Detector -> EventTypeProperty
ruleExecutionMode :: Detector -> Maybe (Value Text)
rules :: Detector -> [RuleProperty]
tags :: Detector -> Maybe [Tag]
haddock_workaround_ :: ()
associatedModels :: Maybe [ModelProperty]
description :: Maybe (Value Text)
detectorId :: Value Text
detectorVersionStatus :: Maybe (Value Text)
eventType :: EventTypeProperty
ruleExecutionMode :: Maybe (Value Text)
rules :: [RuleProperty]
tags :: Maybe [Tag]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::FraudDetector::Detector",
         supportsTags :: Bool
supportsTags = Bool
Prelude.True,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"DetectorId" 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..= Value Text
detectorId, Key
"EventType" Key -> EventTypeProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= EventTypeProperty
eventType,
                            Key
"Rules" Key -> [RuleProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [RuleProperty]
rules]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> [ModelProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AssociatedModels" ([ModelProperty] -> (Key, Value))
-> Maybe [ModelProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ModelProperty]
associatedModels,
                               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
"Description" (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)
description,
                               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
"DetectorVersionStatus"
                                 (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)
detectorVersionStatus,
                               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
"RuleExecutionMode" (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)
ruleExecutionMode,
                               Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))}
instance JSON.ToJSON Detector where
  toJSON :: Detector -> Value
toJSON Detector {[RuleProperty]
Maybe [Tag]
Maybe [ModelProperty]
Maybe (Value Text)
()
Value Text
EventTypeProperty
haddock_workaround_ :: Detector -> ()
associatedModels :: Detector -> Maybe [ModelProperty]
description :: Detector -> Maybe (Value Text)
detectorId :: Detector -> Value Text
detectorVersionStatus :: Detector -> Maybe (Value Text)
eventType :: Detector -> EventTypeProperty
ruleExecutionMode :: Detector -> Maybe (Value Text)
rules :: Detector -> [RuleProperty]
tags :: Detector -> Maybe [Tag]
haddock_workaround_ :: ()
associatedModels :: Maybe [ModelProperty]
description :: Maybe (Value Text)
detectorId :: Value Text
detectorVersionStatus :: Maybe (Value Text)
eventType :: EventTypeProperty
ruleExecutionMode :: Maybe (Value Text)
rules :: [RuleProperty]
tags :: Maybe [Tag]
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"DetectorId" 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..= Value Text
detectorId, Key
"EventType" Key -> EventTypeProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= EventTypeProperty
eventType,
               Key
"Rules" Key -> [RuleProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [RuleProperty]
rules]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> [ModelProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AssociatedModels" ([ModelProperty] -> (Key, Value))
-> Maybe [ModelProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ModelProperty]
associatedModels,
                  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
"Description" (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)
description,
                  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
"DetectorVersionStatus"
                    (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)
detectorVersionStatus,
                  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
"RuleExecutionMode" (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)
ruleExecutionMode,
                  Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])))
instance Property "AssociatedModels" Detector where
  type PropertyType "AssociatedModels" Detector = [ModelProperty]
  set :: PropertyType "AssociatedModels" Detector -> Detector -> Detector
set PropertyType "AssociatedModels" Detector
newValue Detector {[RuleProperty]
Maybe [Tag]
Maybe [ModelProperty]
Maybe (Value Text)
()
Value Text
EventTypeProperty
haddock_workaround_ :: Detector -> ()
associatedModels :: Detector -> Maybe [ModelProperty]
description :: Detector -> Maybe (Value Text)
detectorId :: Detector -> Value Text
detectorVersionStatus :: Detector -> Maybe (Value Text)
eventType :: Detector -> EventTypeProperty
ruleExecutionMode :: Detector -> Maybe (Value Text)
rules :: Detector -> [RuleProperty]
tags :: Detector -> Maybe [Tag]
haddock_workaround_ :: ()
associatedModels :: Maybe [ModelProperty]
description :: Maybe (Value Text)
detectorId :: Value Text
detectorVersionStatus :: Maybe (Value Text)
eventType :: EventTypeProperty
ruleExecutionMode :: Maybe (Value Text)
rules :: [RuleProperty]
tags :: Maybe [Tag]
..}
    = Detector {associatedModels :: Maybe [ModelProperty]
associatedModels = [ModelProperty] -> Maybe [ModelProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [ModelProperty]
PropertyType "AssociatedModels" Detector
newValue, [RuleProperty]
Maybe [Tag]
Maybe (Value Text)
()
Value Text
EventTypeProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
detectorId :: Value Text
detectorVersionStatus :: Maybe (Value Text)
eventType :: EventTypeProperty
ruleExecutionMode :: Maybe (Value Text)
rules :: [RuleProperty]
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
detectorId :: Value Text
detectorVersionStatus :: Maybe (Value Text)
eventType :: EventTypeProperty
ruleExecutionMode :: Maybe (Value Text)
rules :: [RuleProperty]
tags :: Maybe [Tag]
..}
instance Property "Description" Detector where
  type PropertyType "Description" Detector = Value Prelude.Text
  set :: PropertyType "Description" Detector -> Detector -> Detector
set PropertyType "Description" Detector
newValue Detector {[RuleProperty]
Maybe [Tag]
Maybe [ModelProperty]
Maybe (Value Text)
()
Value Text
EventTypeProperty
haddock_workaround_ :: Detector -> ()
associatedModels :: Detector -> Maybe [ModelProperty]
description :: Detector -> Maybe (Value Text)
detectorId :: Detector -> Value Text
detectorVersionStatus :: Detector -> Maybe (Value Text)
eventType :: Detector -> EventTypeProperty
ruleExecutionMode :: Detector -> Maybe (Value Text)
rules :: Detector -> [RuleProperty]
tags :: Detector -> Maybe [Tag]
haddock_workaround_ :: ()
associatedModels :: Maybe [ModelProperty]
description :: Maybe (Value Text)
detectorId :: Value Text
detectorVersionStatus :: Maybe (Value Text)
eventType :: EventTypeProperty
ruleExecutionMode :: Maybe (Value Text)
rules :: [RuleProperty]
tags :: Maybe [Tag]
..}
    = Detector {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" Detector
Value Text
newValue, [RuleProperty]
Maybe [Tag]
Maybe [ModelProperty]
Maybe (Value Text)
()
Value Text
EventTypeProperty
haddock_workaround_ :: ()
associatedModels :: Maybe [ModelProperty]
detectorId :: Value Text
detectorVersionStatus :: Maybe (Value Text)
eventType :: EventTypeProperty
ruleExecutionMode :: Maybe (Value Text)
rules :: [RuleProperty]
tags :: Maybe [Tag]
haddock_workaround_ :: ()
associatedModels :: Maybe [ModelProperty]
detectorId :: Value Text
detectorVersionStatus :: Maybe (Value Text)
eventType :: EventTypeProperty
ruleExecutionMode :: Maybe (Value Text)
rules :: [RuleProperty]
tags :: Maybe [Tag]
..}
instance Property "DetectorId" Detector where
  type PropertyType "DetectorId" Detector = Value Prelude.Text
  set :: PropertyType "DetectorId" Detector -> Detector -> Detector
set PropertyType "DetectorId" Detector
newValue Detector {[RuleProperty]
Maybe [Tag]
Maybe [ModelProperty]
Maybe (Value Text)
()
Value Text
EventTypeProperty
haddock_workaround_ :: Detector -> ()
associatedModels :: Detector -> Maybe [ModelProperty]
description :: Detector -> Maybe (Value Text)
detectorId :: Detector -> Value Text
detectorVersionStatus :: Detector -> Maybe (Value Text)
eventType :: Detector -> EventTypeProperty
ruleExecutionMode :: Detector -> Maybe (Value Text)
rules :: Detector -> [RuleProperty]
tags :: Detector -> Maybe [Tag]
haddock_workaround_ :: ()
associatedModels :: Maybe [ModelProperty]
description :: Maybe (Value Text)
detectorId :: Value Text
detectorVersionStatus :: Maybe (Value Text)
eventType :: EventTypeProperty
ruleExecutionMode :: Maybe (Value Text)
rules :: [RuleProperty]
tags :: Maybe [Tag]
..} = Detector {detectorId :: Value Text
detectorId = PropertyType "DetectorId" Detector
Value Text
newValue, [RuleProperty]
Maybe [Tag]
Maybe [ModelProperty]
Maybe (Value Text)
()
EventTypeProperty
haddock_workaround_ :: ()
associatedModels :: Maybe [ModelProperty]
description :: Maybe (Value Text)
detectorVersionStatus :: Maybe (Value Text)
eventType :: EventTypeProperty
ruleExecutionMode :: Maybe (Value Text)
rules :: [RuleProperty]
tags :: Maybe [Tag]
haddock_workaround_ :: ()
associatedModels :: Maybe [ModelProperty]
description :: Maybe (Value Text)
detectorVersionStatus :: Maybe (Value Text)
eventType :: EventTypeProperty
ruleExecutionMode :: Maybe (Value Text)
rules :: [RuleProperty]
tags :: Maybe [Tag]
..}
instance Property "DetectorVersionStatus" Detector where
  type PropertyType "DetectorVersionStatus" Detector = Value Prelude.Text
  set :: PropertyType "DetectorVersionStatus" Detector
-> Detector -> Detector
set PropertyType "DetectorVersionStatus" Detector
newValue Detector {[RuleProperty]
Maybe [Tag]
Maybe [ModelProperty]
Maybe (Value Text)
()
Value Text
EventTypeProperty
haddock_workaround_ :: Detector -> ()
associatedModels :: Detector -> Maybe [ModelProperty]
description :: Detector -> Maybe (Value Text)
detectorId :: Detector -> Value Text
detectorVersionStatus :: Detector -> Maybe (Value Text)
eventType :: Detector -> EventTypeProperty
ruleExecutionMode :: Detector -> Maybe (Value Text)
rules :: Detector -> [RuleProperty]
tags :: Detector -> Maybe [Tag]
haddock_workaround_ :: ()
associatedModels :: Maybe [ModelProperty]
description :: Maybe (Value Text)
detectorId :: Value Text
detectorVersionStatus :: Maybe (Value Text)
eventType :: EventTypeProperty
ruleExecutionMode :: Maybe (Value Text)
rules :: [RuleProperty]
tags :: Maybe [Tag]
..}
    = Detector {detectorVersionStatus :: Maybe (Value Text)
detectorVersionStatus = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DetectorVersionStatus" Detector
Value Text
newValue, [RuleProperty]
Maybe [Tag]
Maybe [ModelProperty]
Maybe (Value Text)
()
Value Text
EventTypeProperty
haddock_workaround_ :: ()
associatedModels :: Maybe [ModelProperty]
description :: Maybe (Value Text)
detectorId :: Value Text
eventType :: EventTypeProperty
ruleExecutionMode :: Maybe (Value Text)
rules :: [RuleProperty]
tags :: Maybe [Tag]
haddock_workaround_ :: ()
associatedModels :: Maybe [ModelProperty]
description :: Maybe (Value Text)
detectorId :: Value Text
eventType :: EventTypeProperty
ruleExecutionMode :: Maybe (Value Text)
rules :: [RuleProperty]
tags :: Maybe [Tag]
..}
instance Property "EventType" Detector where
  type PropertyType "EventType" Detector = EventTypeProperty
  set :: PropertyType "EventType" Detector -> Detector -> Detector
set PropertyType "EventType" Detector
newValue Detector {[RuleProperty]
Maybe [Tag]
Maybe [ModelProperty]
Maybe (Value Text)
()
Value Text
EventTypeProperty
haddock_workaround_ :: Detector -> ()
associatedModels :: Detector -> Maybe [ModelProperty]
description :: Detector -> Maybe (Value Text)
detectorId :: Detector -> Value Text
detectorVersionStatus :: Detector -> Maybe (Value Text)
eventType :: Detector -> EventTypeProperty
ruleExecutionMode :: Detector -> Maybe (Value Text)
rules :: Detector -> [RuleProperty]
tags :: Detector -> Maybe [Tag]
haddock_workaround_ :: ()
associatedModels :: Maybe [ModelProperty]
description :: Maybe (Value Text)
detectorId :: Value Text
detectorVersionStatus :: Maybe (Value Text)
eventType :: EventTypeProperty
ruleExecutionMode :: Maybe (Value Text)
rules :: [RuleProperty]
tags :: Maybe [Tag]
..} = Detector {eventType :: EventTypeProperty
eventType = PropertyType "EventType" Detector
EventTypeProperty
newValue, [RuleProperty]
Maybe [Tag]
Maybe [ModelProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
associatedModels :: Maybe [ModelProperty]
description :: Maybe (Value Text)
detectorId :: Value Text
detectorVersionStatus :: Maybe (Value Text)
ruleExecutionMode :: Maybe (Value Text)
rules :: [RuleProperty]
tags :: Maybe [Tag]
haddock_workaround_ :: ()
associatedModels :: Maybe [ModelProperty]
description :: Maybe (Value Text)
detectorId :: Value Text
detectorVersionStatus :: Maybe (Value Text)
ruleExecutionMode :: Maybe (Value Text)
rules :: [RuleProperty]
tags :: Maybe [Tag]
..}
instance Property "RuleExecutionMode" Detector where
  type PropertyType "RuleExecutionMode" Detector = Value Prelude.Text
  set :: PropertyType "RuleExecutionMode" Detector -> Detector -> Detector
set PropertyType "RuleExecutionMode" Detector
newValue Detector {[RuleProperty]
Maybe [Tag]
Maybe [ModelProperty]
Maybe (Value Text)
()
Value Text
EventTypeProperty
haddock_workaround_ :: Detector -> ()
associatedModels :: Detector -> Maybe [ModelProperty]
description :: Detector -> Maybe (Value Text)
detectorId :: Detector -> Value Text
detectorVersionStatus :: Detector -> Maybe (Value Text)
eventType :: Detector -> EventTypeProperty
ruleExecutionMode :: Detector -> Maybe (Value Text)
rules :: Detector -> [RuleProperty]
tags :: Detector -> Maybe [Tag]
haddock_workaround_ :: ()
associatedModels :: Maybe [ModelProperty]
description :: Maybe (Value Text)
detectorId :: Value Text
detectorVersionStatus :: Maybe (Value Text)
eventType :: EventTypeProperty
ruleExecutionMode :: Maybe (Value Text)
rules :: [RuleProperty]
tags :: Maybe [Tag]
..}
    = Detector {ruleExecutionMode :: Maybe (Value Text)
ruleExecutionMode = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RuleExecutionMode" Detector
Value Text
newValue, [RuleProperty]
Maybe [Tag]
Maybe [ModelProperty]
Maybe (Value Text)
()
Value Text
EventTypeProperty
haddock_workaround_ :: ()
associatedModels :: Maybe [ModelProperty]
description :: Maybe (Value Text)
detectorId :: Value Text
detectorVersionStatus :: Maybe (Value Text)
eventType :: EventTypeProperty
rules :: [RuleProperty]
tags :: Maybe [Tag]
haddock_workaround_ :: ()
associatedModels :: Maybe [ModelProperty]
description :: Maybe (Value Text)
detectorId :: Value Text
detectorVersionStatus :: Maybe (Value Text)
eventType :: EventTypeProperty
rules :: [RuleProperty]
tags :: Maybe [Tag]
..}
instance Property "Rules" Detector where
  type PropertyType "Rules" Detector = [RuleProperty]
  set :: PropertyType "Rules" Detector -> Detector -> Detector
set PropertyType "Rules" Detector
newValue Detector {[RuleProperty]
Maybe [Tag]
Maybe [ModelProperty]
Maybe (Value Text)
()
Value Text
EventTypeProperty
haddock_workaround_ :: Detector -> ()
associatedModels :: Detector -> Maybe [ModelProperty]
description :: Detector -> Maybe (Value Text)
detectorId :: Detector -> Value Text
detectorVersionStatus :: Detector -> Maybe (Value Text)
eventType :: Detector -> EventTypeProperty
ruleExecutionMode :: Detector -> Maybe (Value Text)
rules :: Detector -> [RuleProperty]
tags :: Detector -> Maybe [Tag]
haddock_workaround_ :: ()
associatedModels :: Maybe [ModelProperty]
description :: Maybe (Value Text)
detectorId :: Value Text
detectorVersionStatus :: Maybe (Value Text)
eventType :: EventTypeProperty
ruleExecutionMode :: Maybe (Value Text)
rules :: [RuleProperty]
tags :: Maybe [Tag]
..} = Detector {rules :: [RuleProperty]
rules = [RuleProperty]
PropertyType "Rules" Detector
newValue, Maybe [Tag]
Maybe [ModelProperty]
Maybe (Value Text)
()
Value Text
EventTypeProperty
haddock_workaround_ :: ()
associatedModels :: Maybe [ModelProperty]
description :: Maybe (Value Text)
detectorId :: Value Text
detectorVersionStatus :: Maybe (Value Text)
eventType :: EventTypeProperty
ruleExecutionMode :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
associatedModels :: Maybe [ModelProperty]
description :: Maybe (Value Text)
detectorId :: Value Text
detectorVersionStatus :: Maybe (Value Text)
eventType :: EventTypeProperty
ruleExecutionMode :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "Tags" Detector where
  type PropertyType "Tags" Detector = [Tag]
  set :: PropertyType "Tags" Detector -> Detector -> Detector
set PropertyType "Tags" Detector
newValue Detector {[RuleProperty]
Maybe [Tag]
Maybe [ModelProperty]
Maybe (Value Text)
()
Value Text
EventTypeProperty
haddock_workaround_ :: Detector -> ()
associatedModels :: Detector -> Maybe [ModelProperty]
description :: Detector -> Maybe (Value Text)
detectorId :: Detector -> Value Text
detectorVersionStatus :: Detector -> Maybe (Value Text)
eventType :: Detector -> EventTypeProperty
ruleExecutionMode :: Detector -> Maybe (Value Text)
rules :: Detector -> [RuleProperty]
tags :: Detector -> Maybe [Tag]
haddock_workaround_ :: ()
associatedModels :: Maybe [ModelProperty]
description :: Maybe (Value Text)
detectorId :: Value Text
detectorVersionStatus :: Maybe (Value Text)
eventType :: EventTypeProperty
ruleExecutionMode :: Maybe (Value Text)
rules :: [RuleProperty]
tags :: Maybe [Tag]
..}
    = Detector {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" Detector
newValue, [RuleProperty]
Maybe [ModelProperty]
Maybe (Value Text)
()
Value Text
EventTypeProperty
haddock_workaround_ :: ()
associatedModels :: Maybe [ModelProperty]
description :: Maybe (Value Text)
detectorId :: Value Text
detectorVersionStatus :: Maybe (Value Text)
eventType :: EventTypeProperty
ruleExecutionMode :: Maybe (Value Text)
rules :: [RuleProperty]
haddock_workaround_ :: ()
associatedModels :: Maybe [ModelProperty]
description :: Maybe (Value Text)
detectorId :: Value Text
detectorVersionStatus :: Maybe (Value Text)
eventType :: EventTypeProperty
ruleExecutionMode :: Maybe (Value Text)
rules :: [RuleProperty]
..}