module Stratosphere.GuardDuty.Detector.CFNFeatureAdditionalConfigurationProperty (
CFNFeatureAdditionalConfigurationProperty(..),
mkCFNFeatureAdditionalConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CFNFeatureAdditionalConfigurationProperty
=
CFNFeatureAdditionalConfigurationProperty {CFNFeatureAdditionalConfigurationProperty -> ()
haddock_workaround_ :: (),
CFNFeatureAdditionalConfigurationProperty -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
CFNFeatureAdditionalConfigurationProperty -> Maybe (Value Text)
status :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (CFNFeatureAdditionalConfigurationProperty
-> CFNFeatureAdditionalConfigurationProperty -> Bool
(CFNFeatureAdditionalConfigurationProperty
-> CFNFeatureAdditionalConfigurationProperty -> Bool)
-> (CFNFeatureAdditionalConfigurationProperty
-> CFNFeatureAdditionalConfigurationProperty -> Bool)
-> Eq CFNFeatureAdditionalConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CFNFeatureAdditionalConfigurationProperty
-> CFNFeatureAdditionalConfigurationProperty -> Bool
== :: CFNFeatureAdditionalConfigurationProperty
-> CFNFeatureAdditionalConfigurationProperty -> Bool
$c/= :: CFNFeatureAdditionalConfigurationProperty
-> CFNFeatureAdditionalConfigurationProperty -> Bool
/= :: CFNFeatureAdditionalConfigurationProperty
-> CFNFeatureAdditionalConfigurationProperty -> Bool
Prelude.Eq, Int -> CFNFeatureAdditionalConfigurationProperty -> ShowS
[CFNFeatureAdditionalConfigurationProperty] -> ShowS
CFNFeatureAdditionalConfigurationProperty -> String
(Int -> CFNFeatureAdditionalConfigurationProperty -> ShowS)
-> (CFNFeatureAdditionalConfigurationProperty -> String)
-> ([CFNFeatureAdditionalConfigurationProperty] -> ShowS)
-> Show CFNFeatureAdditionalConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CFNFeatureAdditionalConfigurationProperty -> ShowS
showsPrec :: Int -> CFNFeatureAdditionalConfigurationProperty -> ShowS
$cshow :: CFNFeatureAdditionalConfigurationProperty -> String
show :: CFNFeatureAdditionalConfigurationProperty -> String
$cshowList :: [CFNFeatureAdditionalConfigurationProperty] -> ShowS
showList :: [CFNFeatureAdditionalConfigurationProperty] -> ShowS
Prelude.Show)
mkCFNFeatureAdditionalConfigurationProperty ::
CFNFeatureAdditionalConfigurationProperty
mkCFNFeatureAdditionalConfigurationProperty :: CFNFeatureAdditionalConfigurationProperty
mkCFNFeatureAdditionalConfigurationProperty
= CFNFeatureAdditionalConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
status :: Maybe (Value Text)
status = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CFNFeatureAdditionalConfigurationProperty where
toResourceProperties :: CFNFeatureAdditionalConfigurationProperty -> ResourceProperties
toResourceProperties CFNFeatureAdditionalConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: CFNFeatureAdditionalConfigurationProperty -> ()
name :: CFNFeatureAdditionalConfigurationProperty -> Maybe (Value Text)
status :: CFNFeatureAdditionalConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
status :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::GuardDuty::Detector.CFNFeatureAdditionalConfiguration",
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
"Name" (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)
name,
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
"Status" (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)
status])}
instance JSON.ToJSON CFNFeatureAdditionalConfigurationProperty where
toJSON :: CFNFeatureAdditionalConfigurationProperty -> Value
toJSON CFNFeatureAdditionalConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: CFNFeatureAdditionalConfigurationProperty -> ()
name :: CFNFeatureAdditionalConfigurationProperty -> Maybe (Value Text)
status :: CFNFeatureAdditionalConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
status :: Maybe (Value Text)
..}
= [(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
"Name" (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)
name,
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
"Status" (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)
status]))
instance Property "Name" CFNFeatureAdditionalConfigurationProperty where
type PropertyType "Name" CFNFeatureAdditionalConfigurationProperty = Value Prelude.Text
set :: PropertyType "Name" CFNFeatureAdditionalConfigurationProperty
-> CFNFeatureAdditionalConfigurationProperty
-> CFNFeatureAdditionalConfigurationProperty
set PropertyType "Name" CFNFeatureAdditionalConfigurationProperty
newValue CFNFeatureAdditionalConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: CFNFeatureAdditionalConfigurationProperty -> ()
name :: CFNFeatureAdditionalConfigurationProperty -> Maybe (Value Text)
status :: CFNFeatureAdditionalConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
status :: Maybe (Value Text)
..}
= CFNFeatureAdditionalConfigurationProperty
{name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" CFNFeatureAdditionalConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
status :: Maybe (Value Text)
haddock_workaround_ :: ()
status :: Maybe (Value Text)
..}
instance Property "Status" CFNFeatureAdditionalConfigurationProperty where
type PropertyType "Status" CFNFeatureAdditionalConfigurationProperty = Value Prelude.Text
set :: PropertyType "Status" CFNFeatureAdditionalConfigurationProperty
-> CFNFeatureAdditionalConfigurationProperty
-> CFNFeatureAdditionalConfigurationProperty
set PropertyType "Status" CFNFeatureAdditionalConfigurationProperty
newValue CFNFeatureAdditionalConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: CFNFeatureAdditionalConfigurationProperty -> ()
name :: CFNFeatureAdditionalConfigurationProperty -> Maybe (Value Text)
status :: CFNFeatureAdditionalConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
status :: Maybe (Value Text)
..}
= CFNFeatureAdditionalConfigurationProperty
{status :: Maybe (Value Text)
status = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Status" CFNFeatureAdditionalConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
name :: Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
..}