module Stratosphere.Pipes.Pipe.PipeEnrichmentParametersProperty (
        module Exports, PipeEnrichmentParametersProperty(..),
        mkPipeEnrichmentParametersProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Pipes.Pipe.PipeEnrichmentHttpParametersProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PipeEnrichmentParametersProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipeenrichmentparameters.html>
    PipeEnrichmentParametersProperty {PipeEnrichmentParametersProperty -> ()
haddock_workaround_ :: (),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipeenrichmentparameters.html#cfn-pipes-pipe-pipeenrichmentparameters-httpparameters>
                                      PipeEnrichmentParametersProperty
-> Maybe PipeEnrichmentHttpParametersProperty
httpParameters :: (Prelude.Maybe PipeEnrichmentHttpParametersProperty),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipeenrichmentparameters.html#cfn-pipes-pipe-pipeenrichmentparameters-inputtemplate>
                                      PipeEnrichmentParametersProperty -> Maybe (Value Text)
inputTemplate :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (PipeEnrichmentParametersProperty
-> PipeEnrichmentParametersProperty -> Bool
(PipeEnrichmentParametersProperty
 -> PipeEnrichmentParametersProperty -> Bool)
-> (PipeEnrichmentParametersProperty
    -> PipeEnrichmentParametersProperty -> Bool)
-> Eq PipeEnrichmentParametersProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PipeEnrichmentParametersProperty
-> PipeEnrichmentParametersProperty -> Bool
== :: PipeEnrichmentParametersProperty
-> PipeEnrichmentParametersProperty -> Bool
$c/= :: PipeEnrichmentParametersProperty
-> PipeEnrichmentParametersProperty -> Bool
/= :: PipeEnrichmentParametersProperty
-> PipeEnrichmentParametersProperty -> Bool
Prelude.Eq, Int -> PipeEnrichmentParametersProperty -> ShowS
[PipeEnrichmentParametersProperty] -> ShowS
PipeEnrichmentParametersProperty -> String
(Int -> PipeEnrichmentParametersProperty -> ShowS)
-> (PipeEnrichmentParametersProperty -> String)
-> ([PipeEnrichmentParametersProperty] -> ShowS)
-> Show PipeEnrichmentParametersProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PipeEnrichmentParametersProperty -> ShowS
showsPrec :: Int -> PipeEnrichmentParametersProperty -> ShowS
$cshow :: PipeEnrichmentParametersProperty -> String
show :: PipeEnrichmentParametersProperty -> String
$cshowList :: [PipeEnrichmentParametersProperty] -> ShowS
showList :: [PipeEnrichmentParametersProperty] -> ShowS
Prelude.Show)
mkPipeEnrichmentParametersProperty ::
  PipeEnrichmentParametersProperty
mkPipeEnrichmentParametersProperty :: PipeEnrichmentParametersProperty
mkPipeEnrichmentParametersProperty
  = PipeEnrichmentParametersProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), httpParameters :: Maybe PipeEnrichmentHttpParametersProperty
httpParameters = Maybe PipeEnrichmentHttpParametersProperty
forall a. Maybe a
Prelude.Nothing,
       inputTemplate :: Maybe (Value Text)
inputTemplate = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties PipeEnrichmentParametersProperty where
  toResourceProperties :: PipeEnrichmentParametersProperty -> ResourceProperties
toResourceProperties PipeEnrichmentParametersProperty {Maybe (Value Text)
Maybe PipeEnrichmentHttpParametersProperty
()
haddock_workaround_ :: PipeEnrichmentParametersProperty -> ()
httpParameters :: PipeEnrichmentParametersProperty
-> Maybe PipeEnrichmentHttpParametersProperty
inputTemplate :: PipeEnrichmentParametersProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
httpParameters :: Maybe PipeEnrichmentHttpParametersProperty
inputTemplate :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Pipes::Pipe.PipeEnrichmentParameters",
         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 -> PipeEnrichmentHttpParametersProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"HttpParameters" (PipeEnrichmentHttpParametersProperty -> (Key, Value))
-> Maybe PipeEnrichmentHttpParametersProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PipeEnrichmentHttpParametersProperty
httpParameters,
                            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
"InputTemplate" (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)
inputTemplate])}
instance JSON.ToJSON PipeEnrichmentParametersProperty where
  toJSON :: PipeEnrichmentParametersProperty -> Value
toJSON PipeEnrichmentParametersProperty {Maybe (Value Text)
Maybe PipeEnrichmentHttpParametersProperty
()
haddock_workaround_ :: PipeEnrichmentParametersProperty -> ()
httpParameters :: PipeEnrichmentParametersProperty
-> Maybe PipeEnrichmentHttpParametersProperty
inputTemplate :: PipeEnrichmentParametersProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
httpParameters :: Maybe PipeEnrichmentHttpParametersProperty
inputTemplate :: 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 -> PipeEnrichmentHttpParametersProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"HttpParameters" (PipeEnrichmentHttpParametersProperty -> (Key, Value))
-> Maybe PipeEnrichmentHttpParametersProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PipeEnrichmentHttpParametersProperty
httpParameters,
               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
"InputTemplate" (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)
inputTemplate]))
instance Property "HttpParameters" PipeEnrichmentParametersProperty where
  type PropertyType "HttpParameters" PipeEnrichmentParametersProperty = PipeEnrichmentHttpParametersProperty
  set :: PropertyType "HttpParameters" PipeEnrichmentParametersProperty
-> PipeEnrichmentParametersProperty
-> PipeEnrichmentParametersProperty
set PropertyType "HttpParameters" PipeEnrichmentParametersProperty
newValue PipeEnrichmentParametersProperty {Maybe (Value Text)
Maybe PipeEnrichmentHttpParametersProperty
()
haddock_workaround_ :: PipeEnrichmentParametersProperty -> ()
httpParameters :: PipeEnrichmentParametersProperty
-> Maybe PipeEnrichmentHttpParametersProperty
inputTemplate :: PipeEnrichmentParametersProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
httpParameters :: Maybe PipeEnrichmentHttpParametersProperty
inputTemplate :: Maybe (Value Text)
..}
    = PipeEnrichmentParametersProperty
        {httpParameters :: Maybe PipeEnrichmentHttpParametersProperty
httpParameters = PipeEnrichmentHttpParametersProperty
-> Maybe PipeEnrichmentHttpParametersProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "HttpParameters" PipeEnrichmentParametersProperty
PipeEnrichmentHttpParametersProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
inputTemplate :: Maybe (Value Text)
haddock_workaround_ :: ()
inputTemplate :: Maybe (Value Text)
..}
instance Property "InputTemplate" PipeEnrichmentParametersProperty where
  type PropertyType "InputTemplate" PipeEnrichmentParametersProperty = Value Prelude.Text
  set :: PropertyType "InputTemplate" PipeEnrichmentParametersProperty
-> PipeEnrichmentParametersProperty
-> PipeEnrichmentParametersProperty
set PropertyType "InputTemplate" PipeEnrichmentParametersProperty
newValue PipeEnrichmentParametersProperty {Maybe (Value Text)
Maybe PipeEnrichmentHttpParametersProperty
()
haddock_workaround_ :: PipeEnrichmentParametersProperty -> ()
httpParameters :: PipeEnrichmentParametersProperty
-> Maybe PipeEnrichmentHttpParametersProperty
inputTemplate :: PipeEnrichmentParametersProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
httpParameters :: Maybe PipeEnrichmentHttpParametersProperty
inputTemplate :: Maybe (Value Text)
..}
    = PipeEnrichmentParametersProperty
        {inputTemplate :: Maybe (Value Text)
inputTemplate = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "InputTemplate" PipeEnrichmentParametersProperty
Value Text
newValue, Maybe PipeEnrichmentHttpParametersProperty
()
haddock_workaround_ :: ()
httpParameters :: Maybe PipeEnrichmentHttpParametersProperty
haddock_workaround_ :: ()
httpParameters :: Maybe PipeEnrichmentHttpParametersProperty
..}