module Stratosphere.Pipes.Pipe.BatchJobDependencyProperty (
        BatchJobDependencyProperty(..), mkBatchJobDependencyProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data BatchJobDependencyProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-batchjobdependency.html>
    BatchJobDependencyProperty {BatchJobDependencyProperty -> ()
haddock_workaround_ :: (),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-batchjobdependency.html#cfn-pipes-pipe-batchjobdependency-jobid>
                                BatchJobDependencyProperty -> Maybe (Value Text)
jobId :: (Prelude.Maybe (Value Prelude.Text)),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-batchjobdependency.html#cfn-pipes-pipe-batchjobdependency-type>
                                BatchJobDependencyProperty -> Maybe (Value Text)
type' :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (BatchJobDependencyProperty -> BatchJobDependencyProperty -> Bool
(BatchJobDependencyProperty -> BatchJobDependencyProperty -> Bool)
-> (BatchJobDependencyProperty
    -> BatchJobDependencyProperty -> Bool)
-> Eq BatchJobDependencyProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: BatchJobDependencyProperty -> BatchJobDependencyProperty -> Bool
== :: BatchJobDependencyProperty -> BatchJobDependencyProperty -> Bool
$c/= :: BatchJobDependencyProperty -> BatchJobDependencyProperty -> Bool
/= :: BatchJobDependencyProperty -> BatchJobDependencyProperty -> Bool
Prelude.Eq, Int -> BatchJobDependencyProperty -> ShowS
[BatchJobDependencyProperty] -> ShowS
BatchJobDependencyProperty -> String
(Int -> BatchJobDependencyProperty -> ShowS)
-> (BatchJobDependencyProperty -> String)
-> ([BatchJobDependencyProperty] -> ShowS)
-> Show BatchJobDependencyProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> BatchJobDependencyProperty -> ShowS
showsPrec :: Int -> BatchJobDependencyProperty -> ShowS
$cshow :: BatchJobDependencyProperty -> String
show :: BatchJobDependencyProperty -> String
$cshowList :: [BatchJobDependencyProperty] -> ShowS
showList :: [BatchJobDependencyProperty] -> ShowS
Prelude.Show)
mkBatchJobDependencyProperty :: BatchJobDependencyProperty
mkBatchJobDependencyProperty :: BatchJobDependencyProperty
mkBatchJobDependencyProperty
  = BatchJobDependencyProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), jobId :: Maybe (Value Text)
jobId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       type' :: Maybe (Value Text)
type' = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties BatchJobDependencyProperty where
  toResourceProperties :: BatchJobDependencyProperty -> ResourceProperties
toResourceProperties BatchJobDependencyProperty {Maybe (Value Text)
()
haddock_workaround_ :: BatchJobDependencyProperty -> ()
jobId :: BatchJobDependencyProperty -> Maybe (Value Text)
type' :: BatchJobDependencyProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
jobId :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Pipes::Pipe.BatchJobDependency",
         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
"JobId" (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)
jobId,
                            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
"Type" (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)
type'])}
instance JSON.ToJSON BatchJobDependencyProperty where
  toJSON :: BatchJobDependencyProperty -> Value
toJSON BatchJobDependencyProperty {Maybe (Value Text)
()
haddock_workaround_ :: BatchJobDependencyProperty -> ()
jobId :: BatchJobDependencyProperty -> Maybe (Value Text)
type' :: BatchJobDependencyProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
jobId :: Maybe (Value Text)
type' :: 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
"JobId" (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)
jobId,
               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
"Type" (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)
type']))
instance Property "JobId" BatchJobDependencyProperty where
  type PropertyType "JobId" BatchJobDependencyProperty = Value Prelude.Text
  set :: PropertyType "JobId" BatchJobDependencyProperty
-> BatchJobDependencyProperty -> BatchJobDependencyProperty
set PropertyType "JobId" BatchJobDependencyProperty
newValue BatchJobDependencyProperty {Maybe (Value Text)
()
haddock_workaround_ :: BatchJobDependencyProperty -> ()
jobId :: BatchJobDependencyProperty -> Maybe (Value Text)
type' :: BatchJobDependencyProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
jobId :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
    = BatchJobDependencyProperty {jobId :: Maybe (Value Text)
jobId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "JobId" BatchJobDependencyProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
type' :: Maybe (Value Text)
haddock_workaround_ :: ()
type' :: Maybe (Value Text)
..}
instance Property "Type" BatchJobDependencyProperty where
  type PropertyType "Type" BatchJobDependencyProperty = Value Prelude.Text
  set :: PropertyType "Type" BatchJobDependencyProperty
-> BatchJobDependencyProperty -> BatchJobDependencyProperty
set PropertyType "Type" BatchJobDependencyProperty
newValue BatchJobDependencyProperty {Maybe (Value Text)
()
haddock_workaround_ :: BatchJobDependencyProperty -> ()
jobId :: BatchJobDependencyProperty -> Maybe (Value Text)
type' :: BatchJobDependencyProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
jobId :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
    = BatchJobDependencyProperty {type' :: Maybe (Value Text)
type' = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Type" BatchJobDependencyProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
jobId :: Maybe (Value Text)
haddock_workaround_ :: ()
jobId :: Maybe (Value Text)
..}