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