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