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