module Stratosphere.GuardDuty.Detector.CFNMalwareProtectionConfigurationProperty (
module Exports, CFNMalwareProtectionConfigurationProperty(..),
mkCFNMalwareProtectionConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.GuardDuty.Detector.CFNScanEc2InstanceWithFindingsConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data CFNMalwareProtectionConfigurationProperty
=
CFNMalwareProtectionConfigurationProperty {CFNMalwareProtectionConfigurationProperty -> ()
haddock_workaround_ :: (),
CFNMalwareProtectionConfigurationProperty
-> Maybe CFNScanEc2InstanceWithFindingsConfigurationProperty
scanEc2InstanceWithFindings :: (Prelude.Maybe CFNScanEc2InstanceWithFindingsConfigurationProperty)}
deriving stock (CFNMalwareProtectionConfigurationProperty
-> CFNMalwareProtectionConfigurationProperty -> Bool
(CFNMalwareProtectionConfigurationProperty
-> CFNMalwareProtectionConfigurationProperty -> Bool)
-> (CFNMalwareProtectionConfigurationProperty
-> CFNMalwareProtectionConfigurationProperty -> Bool)
-> Eq CFNMalwareProtectionConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CFNMalwareProtectionConfigurationProperty
-> CFNMalwareProtectionConfigurationProperty -> Bool
== :: CFNMalwareProtectionConfigurationProperty
-> CFNMalwareProtectionConfigurationProperty -> Bool
$c/= :: CFNMalwareProtectionConfigurationProperty
-> CFNMalwareProtectionConfigurationProperty -> Bool
/= :: CFNMalwareProtectionConfigurationProperty
-> CFNMalwareProtectionConfigurationProperty -> Bool
Prelude.Eq, Int -> CFNMalwareProtectionConfigurationProperty -> ShowS
[CFNMalwareProtectionConfigurationProperty] -> ShowS
CFNMalwareProtectionConfigurationProperty -> String
(Int -> CFNMalwareProtectionConfigurationProperty -> ShowS)
-> (CFNMalwareProtectionConfigurationProperty -> String)
-> ([CFNMalwareProtectionConfigurationProperty] -> ShowS)
-> Show CFNMalwareProtectionConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CFNMalwareProtectionConfigurationProperty -> ShowS
showsPrec :: Int -> CFNMalwareProtectionConfigurationProperty -> ShowS
$cshow :: CFNMalwareProtectionConfigurationProperty -> String
show :: CFNMalwareProtectionConfigurationProperty -> String
$cshowList :: [CFNMalwareProtectionConfigurationProperty] -> ShowS
showList :: [CFNMalwareProtectionConfigurationProperty] -> ShowS
Prelude.Show)
mkCFNMalwareProtectionConfigurationProperty ::
CFNMalwareProtectionConfigurationProperty
mkCFNMalwareProtectionConfigurationProperty :: CFNMalwareProtectionConfigurationProperty
mkCFNMalwareProtectionConfigurationProperty
= CFNMalwareProtectionConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
scanEc2InstanceWithFindings :: Maybe CFNScanEc2InstanceWithFindingsConfigurationProperty
scanEc2InstanceWithFindings = Maybe CFNScanEc2InstanceWithFindingsConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CFNMalwareProtectionConfigurationProperty where
toResourceProperties :: CFNMalwareProtectionConfigurationProperty -> ResourceProperties
toResourceProperties CFNMalwareProtectionConfigurationProperty {Maybe CFNScanEc2InstanceWithFindingsConfigurationProperty
()
haddock_workaround_ :: CFNMalwareProtectionConfigurationProperty -> ()
scanEc2InstanceWithFindings :: CFNMalwareProtectionConfigurationProperty
-> Maybe CFNScanEc2InstanceWithFindingsConfigurationProperty
haddock_workaround_ :: ()
scanEc2InstanceWithFindings :: Maybe CFNScanEc2InstanceWithFindingsConfigurationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::GuardDuty::Detector.CFNMalwareProtectionConfiguration",
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
-> CFNScanEc2InstanceWithFindingsConfigurationProperty
-> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ScanEc2InstanceWithFindings"
(CFNScanEc2InstanceWithFindingsConfigurationProperty
-> (Key, Value))
-> Maybe CFNScanEc2InstanceWithFindingsConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CFNScanEc2InstanceWithFindingsConfigurationProperty
scanEc2InstanceWithFindings])}
instance JSON.ToJSON CFNMalwareProtectionConfigurationProperty where
toJSON :: CFNMalwareProtectionConfigurationProperty -> Value
toJSON CFNMalwareProtectionConfigurationProperty {Maybe CFNScanEc2InstanceWithFindingsConfigurationProperty
()
haddock_workaround_ :: CFNMalwareProtectionConfigurationProperty -> ()
scanEc2InstanceWithFindings :: CFNMalwareProtectionConfigurationProperty
-> Maybe CFNScanEc2InstanceWithFindingsConfigurationProperty
haddock_workaround_ :: ()
scanEc2InstanceWithFindings :: Maybe CFNScanEc2InstanceWithFindingsConfigurationProperty
..}
= [(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
-> CFNScanEc2InstanceWithFindingsConfigurationProperty
-> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ScanEc2InstanceWithFindings"
(CFNScanEc2InstanceWithFindingsConfigurationProperty
-> (Key, Value))
-> Maybe CFNScanEc2InstanceWithFindingsConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CFNScanEc2InstanceWithFindingsConfigurationProperty
scanEc2InstanceWithFindings]))
instance Property "ScanEc2InstanceWithFindings" CFNMalwareProtectionConfigurationProperty where
type PropertyType "ScanEc2InstanceWithFindings" CFNMalwareProtectionConfigurationProperty = CFNScanEc2InstanceWithFindingsConfigurationProperty
set :: PropertyType
"ScanEc2InstanceWithFindings"
CFNMalwareProtectionConfigurationProperty
-> CFNMalwareProtectionConfigurationProperty
-> CFNMalwareProtectionConfigurationProperty
set PropertyType
"ScanEc2InstanceWithFindings"
CFNMalwareProtectionConfigurationProperty
newValue CFNMalwareProtectionConfigurationProperty {Maybe CFNScanEc2InstanceWithFindingsConfigurationProperty
()
haddock_workaround_ :: CFNMalwareProtectionConfigurationProperty -> ()
scanEc2InstanceWithFindings :: CFNMalwareProtectionConfigurationProperty
-> Maybe CFNScanEc2InstanceWithFindingsConfigurationProperty
haddock_workaround_ :: ()
scanEc2InstanceWithFindings :: Maybe CFNScanEc2InstanceWithFindingsConfigurationProperty
..}
= CFNMalwareProtectionConfigurationProperty
{scanEc2InstanceWithFindings :: Maybe CFNScanEc2InstanceWithFindingsConfigurationProperty
scanEc2InstanceWithFindings = CFNScanEc2InstanceWithFindingsConfigurationProperty
-> Maybe CFNScanEc2InstanceWithFindingsConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"ScanEc2InstanceWithFindings"
CFNMalwareProtectionConfigurationProperty
CFNScanEc2InstanceWithFindingsConfigurationProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}