module Stratosphere.SecurityHub.AutomationRule (
        module Exports, AutomationRule(..), mkAutomationRule
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SecurityHub.AutomationRule.AutomationRulesActionProperty as Exports
import {-# SOURCE #-} Stratosphere.SecurityHub.AutomationRule.AutomationRulesFindingFiltersProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AutomationRule
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-automationrule.html>
    AutomationRule {AutomationRule -> ()
haddock_workaround_ :: (),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-automationrule.html#cfn-securityhub-automationrule-actions>
                    AutomationRule -> [AutomationRulesActionProperty]
actions :: [AutomationRulesActionProperty],
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-automationrule.html#cfn-securityhub-automationrule-criteria>
                    AutomationRule -> AutomationRulesFindingFiltersProperty
criteria :: AutomationRulesFindingFiltersProperty,
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-automationrule.html#cfn-securityhub-automationrule-description>
                    AutomationRule -> Value Text
description :: (Value Prelude.Text),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-automationrule.html#cfn-securityhub-automationrule-isterminal>
                    AutomationRule -> Maybe (Value Bool)
isTerminal :: (Prelude.Maybe (Value Prelude.Bool)),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-automationrule.html#cfn-securityhub-automationrule-rulename>
                    AutomationRule -> Value Text
ruleName :: (Value Prelude.Text),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-automationrule.html#cfn-securityhub-automationrule-ruleorder>
                    AutomationRule -> Value Integer
ruleOrder :: (Value Prelude.Integer),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-automationrule.html#cfn-securityhub-automationrule-rulestatus>
                    AutomationRule -> Maybe (Value Text)
ruleStatus :: (Prelude.Maybe (Value Prelude.Text)),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-automationrule.html#cfn-securityhub-automationrule-tags>
                    AutomationRule -> Maybe (Map Text (Value Text))
tags :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text)))}
  deriving stock (AutomationRule -> AutomationRule -> Bool
(AutomationRule -> AutomationRule -> Bool)
-> (AutomationRule -> AutomationRule -> Bool) -> Eq AutomationRule
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AutomationRule -> AutomationRule -> Bool
== :: AutomationRule -> AutomationRule -> Bool
$c/= :: AutomationRule -> AutomationRule -> Bool
/= :: AutomationRule -> AutomationRule -> Bool
Prelude.Eq, Int -> AutomationRule -> ShowS
[AutomationRule] -> ShowS
AutomationRule -> String
(Int -> AutomationRule -> ShowS)
-> (AutomationRule -> String)
-> ([AutomationRule] -> ShowS)
-> Show AutomationRule
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AutomationRule -> ShowS
showsPrec :: Int -> AutomationRule -> ShowS
$cshow :: AutomationRule -> String
show :: AutomationRule -> String
$cshowList :: [AutomationRule] -> ShowS
showList :: [AutomationRule] -> ShowS
Prelude.Show)
mkAutomationRule ::
  [AutomationRulesActionProperty]
  -> AutomationRulesFindingFiltersProperty
     -> Value Prelude.Text
        -> Value Prelude.Text -> Value Prelude.Integer -> AutomationRule
mkAutomationRule :: [AutomationRulesActionProperty]
-> AutomationRulesFindingFiltersProperty
-> Value Text
-> Value Text
-> Value Integer
-> AutomationRule
mkAutomationRule [AutomationRulesActionProperty]
actions AutomationRulesFindingFiltersProperty
criteria Value Text
description Value Text
ruleName Value Integer
ruleOrder
  = AutomationRule
      {haddock_workaround_ :: ()
haddock_workaround_ = (), actions :: [AutomationRulesActionProperty]
actions = [AutomationRulesActionProperty]
actions, criteria :: AutomationRulesFindingFiltersProperty
criteria = AutomationRulesFindingFiltersProperty
criteria,
       description :: Value Text
description = Value Text
description, ruleName :: Value Text
ruleName = Value Text
ruleName,
       ruleOrder :: Value Integer
ruleOrder = Value Integer
ruleOrder, isTerminal :: Maybe (Value Bool)
isTerminal = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       ruleStatus :: Maybe (Value Text)
ruleStatus = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, tags :: Maybe (Map Text (Value Text))
tags = Maybe (Map Text (Value Text))
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AutomationRule where
  toResourceProperties :: AutomationRule -> ResourceProperties
toResourceProperties AutomationRule {[AutomationRulesActionProperty]
Maybe (Map Text (Value Text))
Maybe (Value Bool)
Maybe (Value Text)
()
Value Integer
Value Text
AutomationRulesFindingFiltersProperty
haddock_workaround_ :: AutomationRule -> ()
actions :: AutomationRule -> [AutomationRulesActionProperty]
criteria :: AutomationRule -> AutomationRulesFindingFiltersProperty
description :: AutomationRule -> Value Text
isTerminal :: AutomationRule -> Maybe (Value Bool)
ruleName :: AutomationRule -> Value Text
ruleOrder :: AutomationRule -> Value Integer
ruleStatus :: AutomationRule -> Maybe (Value Text)
tags :: AutomationRule -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
actions :: [AutomationRulesActionProperty]
criteria :: AutomationRulesFindingFiltersProperty
description :: Value Text
isTerminal :: Maybe (Value Bool)
ruleName :: Value Text
ruleOrder :: Value Integer
ruleStatus :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SecurityHub::AutomationRule",
         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
"Actions" Key -> [AutomationRulesActionProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [AutomationRulesActionProperty]
actions, Key
"Criteria" Key -> AutomationRulesFindingFiltersProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= AutomationRulesFindingFiltersProperty
criteria,
                            Key
"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..= Value Text
description, Key
"RuleName" 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
ruleName,
                            Key
"RuleOrder" 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..= Value Integer
ruleOrder]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IsTerminal" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
isTerminal,
                               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
"RuleStatus" (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)
ruleStatus,
                               Key -> Map Text (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
"Tags" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
tags]))}
instance JSON.ToJSON AutomationRule where
  toJSON :: AutomationRule -> Value
toJSON AutomationRule {[AutomationRulesActionProperty]
Maybe (Map Text (Value Text))
Maybe (Value Bool)
Maybe (Value Text)
()
Value Integer
Value Text
AutomationRulesFindingFiltersProperty
haddock_workaround_ :: AutomationRule -> ()
actions :: AutomationRule -> [AutomationRulesActionProperty]
criteria :: AutomationRule -> AutomationRulesFindingFiltersProperty
description :: AutomationRule -> Value Text
isTerminal :: AutomationRule -> Maybe (Value Bool)
ruleName :: AutomationRule -> Value Text
ruleOrder :: AutomationRule -> Value Integer
ruleStatus :: AutomationRule -> Maybe (Value Text)
tags :: AutomationRule -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
actions :: [AutomationRulesActionProperty]
criteria :: AutomationRulesFindingFiltersProperty
description :: Value Text
isTerminal :: Maybe (Value Bool)
ruleName :: Value Text
ruleOrder :: Value Integer
ruleStatus :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
    = [(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
"Actions" Key -> [AutomationRulesActionProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [AutomationRulesActionProperty]
actions, Key
"Criteria" Key -> AutomationRulesFindingFiltersProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= AutomationRulesFindingFiltersProperty
criteria,
               Key
"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..= Value Text
description, Key
"RuleName" 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
ruleName,
               Key
"RuleOrder" 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..= Value Integer
ruleOrder]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IsTerminal" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
isTerminal,
                  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
"RuleStatus" (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)
ruleStatus,
                  Key -> Map Text (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
"Tags" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
tags])))
instance Property "Actions" AutomationRule where
  type PropertyType "Actions" AutomationRule = [AutomationRulesActionProperty]
  set :: PropertyType "Actions" AutomationRule
-> AutomationRule -> AutomationRule
set PropertyType "Actions" AutomationRule
newValue AutomationRule {[AutomationRulesActionProperty]
Maybe (Map Text (Value Text))
Maybe (Value Bool)
Maybe (Value Text)
()
Value Integer
Value Text
AutomationRulesFindingFiltersProperty
haddock_workaround_ :: AutomationRule -> ()
actions :: AutomationRule -> [AutomationRulesActionProperty]
criteria :: AutomationRule -> AutomationRulesFindingFiltersProperty
description :: AutomationRule -> Value Text
isTerminal :: AutomationRule -> Maybe (Value Bool)
ruleName :: AutomationRule -> Value Text
ruleOrder :: AutomationRule -> Value Integer
ruleStatus :: AutomationRule -> Maybe (Value Text)
tags :: AutomationRule -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
actions :: [AutomationRulesActionProperty]
criteria :: AutomationRulesFindingFiltersProperty
description :: Value Text
isTerminal :: Maybe (Value Bool)
ruleName :: Value Text
ruleOrder :: Value Integer
ruleStatus :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
    = AutomationRule {actions :: [AutomationRulesActionProperty]
actions = [AutomationRulesActionProperty]
PropertyType "Actions" AutomationRule
newValue, Maybe (Map Text (Value Text))
Maybe (Value Bool)
Maybe (Value Text)
()
Value Integer
Value Text
AutomationRulesFindingFiltersProperty
haddock_workaround_ :: ()
criteria :: AutomationRulesFindingFiltersProperty
description :: Value Text
isTerminal :: Maybe (Value Bool)
ruleName :: Value Text
ruleOrder :: Value Integer
ruleStatus :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
criteria :: AutomationRulesFindingFiltersProperty
description :: Value Text
isTerminal :: Maybe (Value Bool)
ruleName :: Value Text
ruleOrder :: Value Integer
ruleStatus :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
instance Property "Criteria" AutomationRule where
  type PropertyType "Criteria" AutomationRule = AutomationRulesFindingFiltersProperty
  set :: PropertyType "Criteria" AutomationRule
-> AutomationRule -> AutomationRule
set PropertyType "Criteria" AutomationRule
newValue AutomationRule {[AutomationRulesActionProperty]
Maybe (Map Text (Value Text))
Maybe (Value Bool)
Maybe (Value Text)
()
Value Integer
Value Text
AutomationRulesFindingFiltersProperty
haddock_workaround_ :: AutomationRule -> ()
actions :: AutomationRule -> [AutomationRulesActionProperty]
criteria :: AutomationRule -> AutomationRulesFindingFiltersProperty
description :: AutomationRule -> Value Text
isTerminal :: AutomationRule -> Maybe (Value Bool)
ruleName :: AutomationRule -> Value Text
ruleOrder :: AutomationRule -> Value Integer
ruleStatus :: AutomationRule -> Maybe (Value Text)
tags :: AutomationRule -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
actions :: [AutomationRulesActionProperty]
criteria :: AutomationRulesFindingFiltersProperty
description :: Value Text
isTerminal :: Maybe (Value Bool)
ruleName :: Value Text
ruleOrder :: Value Integer
ruleStatus :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
    = AutomationRule {criteria :: AutomationRulesFindingFiltersProperty
criteria = PropertyType "Criteria" AutomationRule
AutomationRulesFindingFiltersProperty
newValue, [AutomationRulesActionProperty]
Maybe (Map Text (Value Text))
Maybe (Value Bool)
Maybe (Value Text)
()
Value Integer
Value Text
haddock_workaround_ :: ()
actions :: [AutomationRulesActionProperty]
description :: Value Text
isTerminal :: Maybe (Value Bool)
ruleName :: Value Text
ruleOrder :: Value Integer
ruleStatus :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
actions :: [AutomationRulesActionProperty]
description :: Value Text
isTerminal :: Maybe (Value Bool)
ruleName :: Value Text
ruleOrder :: Value Integer
ruleStatus :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
instance Property "Description" AutomationRule where
  type PropertyType "Description" AutomationRule = Value Prelude.Text
  set :: PropertyType "Description" AutomationRule
-> AutomationRule -> AutomationRule
set PropertyType "Description" AutomationRule
newValue AutomationRule {[AutomationRulesActionProperty]
Maybe (Map Text (Value Text))
Maybe (Value Bool)
Maybe (Value Text)
()
Value Integer
Value Text
AutomationRulesFindingFiltersProperty
haddock_workaround_ :: AutomationRule -> ()
actions :: AutomationRule -> [AutomationRulesActionProperty]
criteria :: AutomationRule -> AutomationRulesFindingFiltersProperty
description :: AutomationRule -> Value Text
isTerminal :: AutomationRule -> Maybe (Value Bool)
ruleName :: AutomationRule -> Value Text
ruleOrder :: AutomationRule -> Value Integer
ruleStatus :: AutomationRule -> Maybe (Value Text)
tags :: AutomationRule -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
actions :: [AutomationRulesActionProperty]
criteria :: AutomationRulesFindingFiltersProperty
description :: Value Text
isTerminal :: Maybe (Value Bool)
ruleName :: Value Text
ruleOrder :: Value Integer
ruleStatus :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
    = AutomationRule {description :: Value Text
description = PropertyType "Description" AutomationRule
Value Text
newValue, [AutomationRulesActionProperty]
Maybe (Map Text (Value Text))
Maybe (Value Bool)
Maybe (Value Text)
()
Value Integer
Value Text
AutomationRulesFindingFiltersProperty
haddock_workaround_ :: ()
actions :: [AutomationRulesActionProperty]
criteria :: AutomationRulesFindingFiltersProperty
isTerminal :: Maybe (Value Bool)
ruleName :: Value Text
ruleOrder :: Value Integer
ruleStatus :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
actions :: [AutomationRulesActionProperty]
criteria :: AutomationRulesFindingFiltersProperty
isTerminal :: Maybe (Value Bool)
ruleName :: Value Text
ruleOrder :: Value Integer
ruleStatus :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
instance Property "IsTerminal" AutomationRule where
  type PropertyType "IsTerminal" AutomationRule = Value Prelude.Bool
  set :: PropertyType "IsTerminal" AutomationRule
-> AutomationRule -> AutomationRule
set PropertyType "IsTerminal" AutomationRule
newValue AutomationRule {[AutomationRulesActionProperty]
Maybe (Map Text (Value Text))
Maybe (Value Bool)
Maybe (Value Text)
()
Value Integer
Value Text
AutomationRulesFindingFiltersProperty
haddock_workaround_ :: AutomationRule -> ()
actions :: AutomationRule -> [AutomationRulesActionProperty]
criteria :: AutomationRule -> AutomationRulesFindingFiltersProperty
description :: AutomationRule -> Value Text
isTerminal :: AutomationRule -> Maybe (Value Bool)
ruleName :: AutomationRule -> Value Text
ruleOrder :: AutomationRule -> Value Integer
ruleStatus :: AutomationRule -> Maybe (Value Text)
tags :: AutomationRule -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
actions :: [AutomationRulesActionProperty]
criteria :: AutomationRulesFindingFiltersProperty
description :: Value Text
isTerminal :: Maybe (Value Bool)
ruleName :: Value Text
ruleOrder :: Value Integer
ruleStatus :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
    = AutomationRule {isTerminal :: Maybe (Value Bool)
isTerminal = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "IsTerminal" AutomationRule
Value Bool
newValue, [AutomationRulesActionProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Integer
Value Text
AutomationRulesFindingFiltersProperty
haddock_workaround_ :: ()
actions :: [AutomationRulesActionProperty]
criteria :: AutomationRulesFindingFiltersProperty
description :: Value Text
ruleName :: Value Text
ruleOrder :: Value Integer
ruleStatus :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
actions :: [AutomationRulesActionProperty]
criteria :: AutomationRulesFindingFiltersProperty
description :: Value Text
ruleName :: Value Text
ruleOrder :: Value Integer
ruleStatus :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
instance Property "RuleName" AutomationRule where
  type PropertyType "RuleName" AutomationRule = Value Prelude.Text
  set :: PropertyType "RuleName" AutomationRule
-> AutomationRule -> AutomationRule
set PropertyType "RuleName" AutomationRule
newValue AutomationRule {[AutomationRulesActionProperty]
Maybe (Map Text (Value Text))
Maybe (Value Bool)
Maybe (Value Text)
()
Value Integer
Value Text
AutomationRulesFindingFiltersProperty
haddock_workaround_ :: AutomationRule -> ()
actions :: AutomationRule -> [AutomationRulesActionProperty]
criteria :: AutomationRule -> AutomationRulesFindingFiltersProperty
description :: AutomationRule -> Value Text
isTerminal :: AutomationRule -> Maybe (Value Bool)
ruleName :: AutomationRule -> Value Text
ruleOrder :: AutomationRule -> Value Integer
ruleStatus :: AutomationRule -> Maybe (Value Text)
tags :: AutomationRule -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
actions :: [AutomationRulesActionProperty]
criteria :: AutomationRulesFindingFiltersProperty
description :: Value Text
isTerminal :: Maybe (Value Bool)
ruleName :: Value Text
ruleOrder :: Value Integer
ruleStatus :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
    = AutomationRule {ruleName :: Value Text
ruleName = PropertyType "RuleName" AutomationRule
Value Text
newValue, [AutomationRulesActionProperty]
Maybe (Map Text (Value Text))
Maybe (Value Bool)
Maybe (Value Text)
()
Value Integer
Value Text
AutomationRulesFindingFiltersProperty
haddock_workaround_ :: ()
actions :: [AutomationRulesActionProperty]
criteria :: AutomationRulesFindingFiltersProperty
description :: Value Text
isTerminal :: Maybe (Value Bool)
ruleOrder :: Value Integer
ruleStatus :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
actions :: [AutomationRulesActionProperty]
criteria :: AutomationRulesFindingFiltersProperty
description :: Value Text
isTerminal :: Maybe (Value Bool)
ruleOrder :: Value Integer
ruleStatus :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
instance Property "RuleOrder" AutomationRule where
  type PropertyType "RuleOrder" AutomationRule = Value Prelude.Integer
  set :: PropertyType "RuleOrder" AutomationRule
-> AutomationRule -> AutomationRule
set PropertyType "RuleOrder" AutomationRule
newValue AutomationRule {[AutomationRulesActionProperty]
Maybe (Map Text (Value Text))
Maybe (Value Bool)
Maybe (Value Text)
()
Value Integer
Value Text
AutomationRulesFindingFiltersProperty
haddock_workaround_ :: AutomationRule -> ()
actions :: AutomationRule -> [AutomationRulesActionProperty]
criteria :: AutomationRule -> AutomationRulesFindingFiltersProperty
description :: AutomationRule -> Value Text
isTerminal :: AutomationRule -> Maybe (Value Bool)
ruleName :: AutomationRule -> Value Text
ruleOrder :: AutomationRule -> Value Integer
ruleStatus :: AutomationRule -> Maybe (Value Text)
tags :: AutomationRule -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
actions :: [AutomationRulesActionProperty]
criteria :: AutomationRulesFindingFiltersProperty
description :: Value Text
isTerminal :: Maybe (Value Bool)
ruleName :: Value Text
ruleOrder :: Value Integer
ruleStatus :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
    = AutomationRule {ruleOrder :: Value Integer
ruleOrder = PropertyType "RuleOrder" AutomationRule
Value Integer
newValue, [AutomationRulesActionProperty]
Maybe (Map Text (Value Text))
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
AutomationRulesFindingFiltersProperty
haddock_workaround_ :: ()
actions :: [AutomationRulesActionProperty]
criteria :: AutomationRulesFindingFiltersProperty
description :: Value Text
isTerminal :: Maybe (Value Bool)
ruleName :: Value Text
ruleStatus :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
actions :: [AutomationRulesActionProperty]
criteria :: AutomationRulesFindingFiltersProperty
description :: Value Text
isTerminal :: Maybe (Value Bool)
ruleName :: Value Text
ruleStatus :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
instance Property "RuleStatus" AutomationRule where
  type PropertyType "RuleStatus" AutomationRule = Value Prelude.Text
  set :: PropertyType "RuleStatus" AutomationRule
-> AutomationRule -> AutomationRule
set PropertyType "RuleStatus" AutomationRule
newValue AutomationRule {[AutomationRulesActionProperty]
Maybe (Map Text (Value Text))
Maybe (Value Bool)
Maybe (Value Text)
()
Value Integer
Value Text
AutomationRulesFindingFiltersProperty
haddock_workaround_ :: AutomationRule -> ()
actions :: AutomationRule -> [AutomationRulesActionProperty]
criteria :: AutomationRule -> AutomationRulesFindingFiltersProperty
description :: AutomationRule -> Value Text
isTerminal :: AutomationRule -> Maybe (Value Bool)
ruleName :: AutomationRule -> Value Text
ruleOrder :: AutomationRule -> Value Integer
ruleStatus :: AutomationRule -> Maybe (Value Text)
tags :: AutomationRule -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
actions :: [AutomationRulesActionProperty]
criteria :: AutomationRulesFindingFiltersProperty
description :: Value Text
isTerminal :: Maybe (Value Bool)
ruleName :: Value Text
ruleOrder :: Value Integer
ruleStatus :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
    = AutomationRule {ruleStatus :: Maybe (Value Text)
ruleStatus = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RuleStatus" AutomationRule
Value Text
newValue, [AutomationRulesActionProperty]
Maybe (Map Text (Value Text))
Maybe (Value Bool)
()
Value Integer
Value Text
AutomationRulesFindingFiltersProperty
haddock_workaround_ :: ()
actions :: [AutomationRulesActionProperty]
criteria :: AutomationRulesFindingFiltersProperty
description :: Value Text
isTerminal :: Maybe (Value Bool)
ruleName :: Value Text
ruleOrder :: Value Integer
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
actions :: [AutomationRulesActionProperty]
criteria :: AutomationRulesFindingFiltersProperty
description :: Value Text
isTerminal :: Maybe (Value Bool)
ruleName :: Value Text
ruleOrder :: Value Integer
tags :: Maybe (Map Text (Value Text))
..}
instance Property "Tags" AutomationRule where
  type PropertyType "Tags" AutomationRule = Prelude.Map Prelude.Text (Value Prelude.Text)
  set :: PropertyType "Tags" AutomationRule
-> AutomationRule -> AutomationRule
set PropertyType "Tags" AutomationRule
newValue AutomationRule {[AutomationRulesActionProperty]
Maybe (Map Text (Value Text))
Maybe (Value Bool)
Maybe (Value Text)
()
Value Integer
Value Text
AutomationRulesFindingFiltersProperty
haddock_workaround_ :: AutomationRule -> ()
actions :: AutomationRule -> [AutomationRulesActionProperty]
criteria :: AutomationRule -> AutomationRulesFindingFiltersProperty
description :: AutomationRule -> Value Text
isTerminal :: AutomationRule -> Maybe (Value Bool)
ruleName :: AutomationRule -> Value Text
ruleOrder :: AutomationRule -> Value Integer
ruleStatus :: AutomationRule -> Maybe (Value Text)
tags :: AutomationRule -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
actions :: [AutomationRulesActionProperty]
criteria :: AutomationRulesFindingFiltersProperty
description :: Value Text
isTerminal :: Maybe (Value Bool)
ruleName :: Value Text
ruleOrder :: Value Integer
ruleStatus :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
    = AutomationRule {tags :: Maybe (Map Text (Value Text))
tags = Map Text (Value Text) -> Maybe (Map Text (Value Text))
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text (Value Text)
PropertyType "Tags" AutomationRule
newValue, [AutomationRulesActionProperty]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Integer
Value Text
AutomationRulesFindingFiltersProperty
haddock_workaround_ :: ()
actions :: [AutomationRulesActionProperty]
criteria :: AutomationRulesFindingFiltersProperty
description :: Value Text
isTerminal :: Maybe (Value Bool)
ruleName :: Value Text
ruleOrder :: Value Integer
ruleStatus :: Maybe (Value Text)
haddock_workaround_ :: ()
actions :: [AutomationRulesActionProperty]
criteria :: AutomationRulesFindingFiltersProperty
description :: Value Text
isTerminal :: Maybe (Value Bool)
ruleName :: Value Text
ruleOrder :: Value Integer
ruleStatus :: Maybe (Value Text)
..}