module Stratosphere.SecurityHub.AutomationRuleV2.AutomationRulesFindingFieldsUpdateV2Property (
AutomationRulesFindingFieldsUpdateV2Property(..),
mkAutomationRulesFindingFieldsUpdateV2Property
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AutomationRulesFindingFieldsUpdateV2Property
=
AutomationRulesFindingFieldsUpdateV2Property {AutomationRulesFindingFieldsUpdateV2Property -> ()
haddock_workaround_ :: (),
:: (Prelude.Maybe (Value Prelude.Text)),
AutomationRulesFindingFieldsUpdateV2Property
-> Maybe (Value Integer)
severityId :: (Prelude.Maybe (Value Prelude.Integer)),
AutomationRulesFindingFieldsUpdateV2Property
-> Maybe (Value Integer)
statusId :: (Prelude.Maybe (Value Prelude.Integer))}
deriving stock (AutomationRulesFindingFieldsUpdateV2Property
-> AutomationRulesFindingFieldsUpdateV2Property -> Bool
(AutomationRulesFindingFieldsUpdateV2Property
-> AutomationRulesFindingFieldsUpdateV2Property -> Bool)
-> (AutomationRulesFindingFieldsUpdateV2Property
-> AutomationRulesFindingFieldsUpdateV2Property -> Bool)
-> Eq AutomationRulesFindingFieldsUpdateV2Property
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AutomationRulesFindingFieldsUpdateV2Property
-> AutomationRulesFindingFieldsUpdateV2Property -> Bool
== :: AutomationRulesFindingFieldsUpdateV2Property
-> AutomationRulesFindingFieldsUpdateV2Property -> Bool
$c/= :: AutomationRulesFindingFieldsUpdateV2Property
-> AutomationRulesFindingFieldsUpdateV2Property -> Bool
/= :: AutomationRulesFindingFieldsUpdateV2Property
-> AutomationRulesFindingFieldsUpdateV2Property -> Bool
Prelude.Eq, Int -> AutomationRulesFindingFieldsUpdateV2Property -> ShowS
[AutomationRulesFindingFieldsUpdateV2Property] -> ShowS
AutomationRulesFindingFieldsUpdateV2Property -> String
(Int -> AutomationRulesFindingFieldsUpdateV2Property -> ShowS)
-> (AutomationRulesFindingFieldsUpdateV2Property -> String)
-> ([AutomationRulesFindingFieldsUpdateV2Property] -> ShowS)
-> Show AutomationRulesFindingFieldsUpdateV2Property
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AutomationRulesFindingFieldsUpdateV2Property -> ShowS
showsPrec :: Int -> AutomationRulesFindingFieldsUpdateV2Property -> ShowS
$cshow :: AutomationRulesFindingFieldsUpdateV2Property -> String
show :: AutomationRulesFindingFieldsUpdateV2Property -> String
$cshowList :: [AutomationRulesFindingFieldsUpdateV2Property] -> ShowS
showList :: [AutomationRulesFindingFieldsUpdateV2Property] -> ShowS
Prelude.Show)
mkAutomationRulesFindingFieldsUpdateV2Property ::
AutomationRulesFindingFieldsUpdateV2Property
mkAutomationRulesFindingFieldsUpdateV2Property :: AutomationRulesFindingFieldsUpdateV2Property
mkAutomationRulesFindingFieldsUpdateV2Property
= AutomationRulesFindingFieldsUpdateV2Property
{haddock_workaround_ :: ()
haddock_workaround_ = (), comment :: Maybe (Value Text)
comment = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
severityId :: Maybe (Value Integer)
severityId = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing, statusId :: Maybe (Value Integer)
statusId = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AutomationRulesFindingFieldsUpdateV2Property where
toResourceProperties :: AutomationRulesFindingFieldsUpdateV2Property -> ResourceProperties
toResourceProperties
AutomationRulesFindingFieldsUpdateV2Property {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: AutomationRulesFindingFieldsUpdateV2Property -> ()
comment :: AutomationRulesFindingFieldsUpdateV2Property -> Maybe (Value Text)
severityId :: AutomationRulesFindingFieldsUpdateV2Property
-> Maybe (Value Integer)
statusId :: AutomationRulesFindingFieldsUpdateV2Property
-> Maybe (Value Integer)
haddock_workaround_ :: ()
comment :: Maybe (Value Text)
severityId :: Maybe (Value Integer)
statusId :: Maybe (Value Integer)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SecurityHub::AutomationRuleV2.AutomationRulesFindingFieldsUpdateV2",
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
"Comment" (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)
comment,
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
"SeverityId" (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)
severityId,
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
"StatusId" (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)
statusId])}
instance JSON.ToJSON AutomationRulesFindingFieldsUpdateV2Property where
toJSON :: AutomationRulesFindingFieldsUpdateV2Property -> Value
toJSON AutomationRulesFindingFieldsUpdateV2Property {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: AutomationRulesFindingFieldsUpdateV2Property -> ()
comment :: AutomationRulesFindingFieldsUpdateV2Property -> Maybe (Value Text)
severityId :: AutomationRulesFindingFieldsUpdateV2Property
-> Maybe (Value Integer)
statusId :: AutomationRulesFindingFieldsUpdateV2Property
-> Maybe (Value Integer)
haddock_workaround_ :: ()
comment :: Maybe (Value Text)
severityId :: Maybe (Value Integer)
statusId :: Maybe (Value Integer)
..}
= [(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
"Comment" (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)
comment,
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
"SeverityId" (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)
severityId,
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
"StatusId" (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)
statusId]))
instance Property "Comment" AutomationRulesFindingFieldsUpdateV2Property where
type PropertyType "Comment" AutomationRulesFindingFieldsUpdateV2Property = Value Prelude.Text
set :: PropertyType "Comment" AutomationRulesFindingFieldsUpdateV2Property
-> AutomationRulesFindingFieldsUpdateV2Property
-> AutomationRulesFindingFieldsUpdateV2Property
set PropertyType "Comment" AutomationRulesFindingFieldsUpdateV2Property
newValue AutomationRulesFindingFieldsUpdateV2Property {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: AutomationRulesFindingFieldsUpdateV2Property -> ()
comment :: AutomationRulesFindingFieldsUpdateV2Property -> Maybe (Value Text)
severityId :: AutomationRulesFindingFieldsUpdateV2Property
-> Maybe (Value Integer)
statusId :: AutomationRulesFindingFieldsUpdateV2Property
-> Maybe (Value Integer)
haddock_workaround_ :: ()
comment :: Maybe (Value Text)
severityId :: Maybe (Value Integer)
statusId :: Maybe (Value Integer)
..}
= AutomationRulesFindingFieldsUpdateV2Property
{comment :: Maybe (Value Text)
comment = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Comment" AutomationRulesFindingFieldsUpdateV2Property
Value Text
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
severityId :: Maybe (Value Integer)
statusId :: Maybe (Value Integer)
haddock_workaround_ :: ()
severityId :: Maybe (Value Integer)
statusId :: Maybe (Value Integer)
..}
instance Property "SeverityId" AutomationRulesFindingFieldsUpdateV2Property where
type PropertyType "SeverityId" AutomationRulesFindingFieldsUpdateV2Property = Value Prelude.Integer
set :: PropertyType
"SeverityId" AutomationRulesFindingFieldsUpdateV2Property
-> AutomationRulesFindingFieldsUpdateV2Property
-> AutomationRulesFindingFieldsUpdateV2Property
set PropertyType
"SeverityId" AutomationRulesFindingFieldsUpdateV2Property
newValue AutomationRulesFindingFieldsUpdateV2Property {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: AutomationRulesFindingFieldsUpdateV2Property -> ()
comment :: AutomationRulesFindingFieldsUpdateV2Property -> Maybe (Value Text)
severityId :: AutomationRulesFindingFieldsUpdateV2Property
-> Maybe (Value Integer)
statusId :: AutomationRulesFindingFieldsUpdateV2Property
-> Maybe (Value Integer)
haddock_workaround_ :: ()
comment :: Maybe (Value Text)
severityId :: Maybe (Value Integer)
statusId :: Maybe (Value Integer)
..}
= AutomationRulesFindingFieldsUpdateV2Property
{severityId :: Maybe (Value Integer)
severityId = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"SeverityId" AutomationRulesFindingFieldsUpdateV2Property
Value Integer
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
comment :: Maybe (Value Text)
statusId :: Maybe (Value Integer)
haddock_workaround_ :: ()
comment :: Maybe (Value Text)
statusId :: Maybe (Value Integer)
..}
instance Property "StatusId" AutomationRulesFindingFieldsUpdateV2Property where
type PropertyType "StatusId" AutomationRulesFindingFieldsUpdateV2Property = Value Prelude.Integer
set :: PropertyType
"StatusId" AutomationRulesFindingFieldsUpdateV2Property
-> AutomationRulesFindingFieldsUpdateV2Property
-> AutomationRulesFindingFieldsUpdateV2Property
set PropertyType
"StatusId" AutomationRulesFindingFieldsUpdateV2Property
newValue AutomationRulesFindingFieldsUpdateV2Property {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: AutomationRulesFindingFieldsUpdateV2Property -> ()
comment :: AutomationRulesFindingFieldsUpdateV2Property -> Maybe (Value Text)
severityId :: AutomationRulesFindingFieldsUpdateV2Property
-> Maybe (Value Integer)
statusId :: AutomationRulesFindingFieldsUpdateV2Property
-> Maybe (Value Integer)
haddock_workaround_ :: ()
comment :: Maybe (Value Text)
severityId :: Maybe (Value Integer)
statusId :: Maybe (Value Integer)
..}
= AutomationRulesFindingFieldsUpdateV2Property
{statusId :: Maybe (Value Integer)
statusId = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"StatusId" AutomationRulesFindingFieldsUpdateV2Property
Value Integer
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
comment :: Maybe (Value Text)
severityId :: Maybe (Value Integer)
haddock_workaround_ :: ()
comment :: Maybe (Value Text)
severityId :: Maybe (Value Integer)
..}