module Stratosphere.AppSync.Resolver.PipelineConfigProperty (
PipelineConfigProperty(..), mkPipelineConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PipelineConfigProperty
=
PipelineConfigProperty {PipelineConfigProperty -> ()
haddock_workaround_ :: (),
PipelineConfigProperty -> Maybe (ValueList Text)
functions :: (Prelude.Maybe (ValueList Prelude.Text))}
deriving stock (PipelineConfigProperty -> PipelineConfigProperty -> Bool
(PipelineConfigProperty -> PipelineConfigProperty -> Bool)
-> (PipelineConfigProperty -> PipelineConfigProperty -> Bool)
-> Eq PipelineConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PipelineConfigProperty -> PipelineConfigProperty -> Bool
== :: PipelineConfigProperty -> PipelineConfigProperty -> Bool
$c/= :: PipelineConfigProperty -> PipelineConfigProperty -> Bool
/= :: PipelineConfigProperty -> PipelineConfigProperty -> Bool
Prelude.Eq, Int -> PipelineConfigProperty -> ShowS
[PipelineConfigProperty] -> ShowS
PipelineConfigProperty -> String
(Int -> PipelineConfigProperty -> ShowS)
-> (PipelineConfigProperty -> String)
-> ([PipelineConfigProperty] -> ShowS)
-> Show PipelineConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PipelineConfigProperty -> ShowS
showsPrec :: Int -> PipelineConfigProperty -> ShowS
$cshow :: PipelineConfigProperty -> String
show :: PipelineConfigProperty -> String
$cshowList :: [PipelineConfigProperty] -> ShowS
showList :: [PipelineConfigProperty] -> ShowS
Prelude.Show)
mkPipelineConfigProperty :: PipelineConfigProperty
mkPipelineConfigProperty :: PipelineConfigProperty
mkPipelineConfigProperty
= PipelineConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), functions :: Maybe (ValueList Text)
functions = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties PipelineConfigProperty where
toResourceProperties :: PipelineConfigProperty -> ResourceProperties
toResourceProperties PipelineConfigProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: PipelineConfigProperty -> ()
functions :: PipelineConfigProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
functions :: Maybe (ValueList Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AppSync::Resolver.PipelineConfig",
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 -> ValueList 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
"Functions" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
functions])}
instance JSON.ToJSON PipelineConfigProperty where
toJSON :: PipelineConfigProperty -> Value
toJSON PipelineConfigProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: PipelineConfigProperty -> ()
functions :: PipelineConfigProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
functions :: Maybe (ValueList 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 -> ValueList 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
"Functions" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
functions]))
instance Property "Functions" PipelineConfigProperty where
type PropertyType "Functions" PipelineConfigProperty = ValueList Prelude.Text
set :: PropertyType "Functions" PipelineConfigProperty
-> PipelineConfigProperty -> PipelineConfigProperty
set PropertyType "Functions" PipelineConfigProperty
newValue PipelineConfigProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: PipelineConfigProperty -> ()
functions :: PipelineConfigProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
functions :: Maybe (ValueList Text)
..}
= PipelineConfigProperty {functions :: Maybe (ValueList Text)
functions = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Functions" PipelineConfigProperty
ValueList Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}