module Stratosphere.Glue.Workflow (
        Workflow(..), mkWorkflow
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data Workflow
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-workflow.html>
    Workflow {Workflow -> ()
haddock_workaround_ :: (),
              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-workflow.html#cfn-glue-workflow-defaultrunproperties>
              Workflow -> Maybe Object
defaultRunProperties :: (Prelude.Maybe JSON.Object),
              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-workflow.html#cfn-glue-workflow-description>
              Workflow -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-workflow.html#cfn-glue-workflow-maxconcurrentruns>
              Workflow -> Maybe (Value Integer)
maxConcurrentRuns :: (Prelude.Maybe (Value Prelude.Integer)),
              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-workflow.html#cfn-glue-workflow-name>
              Workflow -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-workflow.html#cfn-glue-workflow-tags>
              Workflow -> Maybe Object
tags :: (Prelude.Maybe JSON.Object)}
  deriving stock (Workflow -> Workflow -> Bool
(Workflow -> Workflow -> Bool)
-> (Workflow -> Workflow -> Bool) -> Eq Workflow
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Workflow -> Workflow -> Bool
== :: Workflow -> Workflow -> Bool
$c/= :: Workflow -> Workflow -> Bool
/= :: Workflow -> Workflow -> Bool
Prelude.Eq, Int -> Workflow -> ShowS
[Workflow] -> ShowS
Workflow -> String
(Int -> Workflow -> ShowS)
-> (Workflow -> String) -> ([Workflow] -> ShowS) -> Show Workflow
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Workflow -> ShowS
showsPrec :: Int -> Workflow -> ShowS
$cshow :: Workflow -> String
show :: Workflow -> String
$cshowList :: [Workflow] -> ShowS
showList :: [Workflow] -> ShowS
Prelude.Show)
mkWorkflow :: Workflow
mkWorkflow :: Workflow
mkWorkflow
  = Workflow
      {haddock_workaround_ :: ()
haddock_workaround_ = (), defaultRunProperties :: Maybe Object
defaultRunProperties = Maybe Object
forall a. Maybe a
Prelude.Nothing,
       description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, maxConcurrentRuns :: Maybe (Value Integer)
maxConcurrentRuns = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
       name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, tags :: Maybe Object
tags = Maybe Object
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Workflow where
  toResourceProperties :: Workflow -> ResourceProperties
toResourceProperties Workflow {Maybe Object
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: Workflow -> ()
defaultRunProperties :: Workflow -> Maybe Object
description :: Workflow -> Maybe (Value Text)
maxConcurrentRuns :: Workflow -> Maybe (Value Integer)
name :: Workflow -> Maybe (Value Text)
tags :: Workflow -> Maybe Object
haddock_workaround_ :: ()
defaultRunProperties :: Maybe Object
description :: Maybe (Value Text)
maxConcurrentRuns :: Maybe (Value Integer)
name :: Maybe (Value Text)
tags :: Maybe Object
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Glue::Workflow", supportsTags :: Bool
supportsTags = Bool
Prelude.True,
         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 -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DefaultRunProperties" (Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
defaultRunProperties,
                            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
"Description" (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)
description,
                            Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MaxConcurrentRuns" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
maxConcurrentRuns,
                            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
"Name" (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)
name,
                            Key -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" (Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
tags])}
instance JSON.ToJSON Workflow where
  toJSON :: Workflow -> Value
toJSON Workflow {Maybe Object
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: Workflow -> ()
defaultRunProperties :: Workflow -> Maybe Object
description :: Workflow -> Maybe (Value Text)
maxConcurrentRuns :: Workflow -> Maybe (Value Integer)
name :: Workflow -> Maybe (Value Text)
tags :: Workflow -> Maybe Object
haddock_workaround_ :: ()
defaultRunProperties :: Maybe Object
description :: Maybe (Value Text)
maxConcurrentRuns :: Maybe (Value Integer)
name :: Maybe (Value Text)
tags :: Maybe Object
..}
    = [(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 -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DefaultRunProperties" (Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
defaultRunProperties,
               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
"Description" (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)
description,
               Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MaxConcurrentRuns" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
maxConcurrentRuns,
               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
"Name" (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)
name,
               Key -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" (Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
tags]))
instance Property "DefaultRunProperties" Workflow where
  type PropertyType "DefaultRunProperties" Workflow = JSON.Object
  set :: PropertyType "DefaultRunProperties" Workflow
-> Workflow -> Workflow
set PropertyType "DefaultRunProperties" Workflow
newValue Workflow {Maybe Object
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: Workflow -> ()
defaultRunProperties :: Workflow -> Maybe Object
description :: Workflow -> Maybe (Value Text)
maxConcurrentRuns :: Workflow -> Maybe (Value Integer)
name :: Workflow -> Maybe (Value Text)
tags :: Workflow -> Maybe Object
haddock_workaround_ :: ()
defaultRunProperties :: Maybe Object
description :: Maybe (Value Text)
maxConcurrentRuns :: Maybe (Value Integer)
name :: Maybe (Value Text)
tags :: Maybe Object
..}
    = Workflow {defaultRunProperties :: Maybe Object
defaultRunProperties = Object -> Maybe Object
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Object
PropertyType "DefaultRunProperties" Workflow
newValue, Maybe Object
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
description :: Maybe (Value Text)
maxConcurrentRuns :: Maybe (Value Integer)
name :: Maybe (Value Text)
tags :: Maybe Object
haddock_workaround_ :: ()
description :: Maybe (Value Text)
maxConcurrentRuns :: Maybe (Value Integer)
name :: Maybe (Value Text)
tags :: Maybe Object
..}
instance Property "Description" Workflow where
  type PropertyType "Description" Workflow = Value Prelude.Text
  set :: PropertyType "Description" Workflow -> Workflow -> Workflow
set PropertyType "Description" Workflow
newValue Workflow {Maybe Object
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: Workflow -> ()
defaultRunProperties :: Workflow -> Maybe Object
description :: Workflow -> Maybe (Value Text)
maxConcurrentRuns :: Workflow -> Maybe (Value Integer)
name :: Workflow -> Maybe (Value Text)
tags :: Workflow -> Maybe Object
haddock_workaround_ :: ()
defaultRunProperties :: Maybe Object
description :: Maybe (Value Text)
maxConcurrentRuns :: Maybe (Value Integer)
name :: Maybe (Value Text)
tags :: Maybe Object
..}
    = Workflow {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" Workflow
Value Text
newValue, Maybe Object
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
defaultRunProperties :: Maybe Object
maxConcurrentRuns :: Maybe (Value Integer)
name :: Maybe (Value Text)
tags :: Maybe Object
haddock_workaround_ :: ()
defaultRunProperties :: Maybe Object
maxConcurrentRuns :: Maybe (Value Integer)
name :: Maybe (Value Text)
tags :: Maybe Object
..}
instance Property "MaxConcurrentRuns" Workflow where
  type PropertyType "MaxConcurrentRuns" Workflow = Value Prelude.Integer
  set :: PropertyType "MaxConcurrentRuns" Workflow -> Workflow -> Workflow
set PropertyType "MaxConcurrentRuns" Workflow
newValue Workflow {Maybe Object
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: Workflow -> ()
defaultRunProperties :: Workflow -> Maybe Object
description :: Workflow -> Maybe (Value Text)
maxConcurrentRuns :: Workflow -> Maybe (Value Integer)
name :: Workflow -> Maybe (Value Text)
tags :: Workflow -> Maybe Object
haddock_workaround_ :: ()
defaultRunProperties :: Maybe Object
description :: Maybe (Value Text)
maxConcurrentRuns :: Maybe (Value Integer)
name :: Maybe (Value Text)
tags :: Maybe Object
..}
    = Workflow {maxConcurrentRuns :: Maybe (Value Integer)
maxConcurrentRuns = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MaxConcurrentRuns" Workflow
Value Integer
newValue, Maybe Object
Maybe (Value Text)
()
haddock_workaround_ :: ()
defaultRunProperties :: Maybe Object
description :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe Object
haddock_workaround_ :: ()
defaultRunProperties :: Maybe Object
description :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe Object
..}
instance Property "Name" Workflow where
  type PropertyType "Name" Workflow = Value Prelude.Text
  set :: PropertyType "Name" Workflow -> Workflow -> Workflow
set PropertyType "Name" Workflow
newValue Workflow {Maybe Object
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: Workflow -> ()
defaultRunProperties :: Workflow -> Maybe Object
description :: Workflow -> Maybe (Value Text)
maxConcurrentRuns :: Workflow -> Maybe (Value Integer)
name :: Workflow -> Maybe (Value Text)
tags :: Workflow -> Maybe Object
haddock_workaround_ :: ()
defaultRunProperties :: Maybe Object
description :: Maybe (Value Text)
maxConcurrentRuns :: Maybe (Value Integer)
name :: Maybe (Value Text)
tags :: Maybe Object
..}
    = Workflow {name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" Workflow
Value Text
newValue, Maybe Object
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
defaultRunProperties :: Maybe Object
description :: Maybe (Value Text)
maxConcurrentRuns :: Maybe (Value Integer)
tags :: Maybe Object
haddock_workaround_ :: ()
defaultRunProperties :: Maybe Object
description :: Maybe (Value Text)
maxConcurrentRuns :: Maybe (Value Integer)
tags :: Maybe Object
..}
instance Property "Tags" Workflow where
  type PropertyType "Tags" Workflow = JSON.Object
  set :: PropertyType "Tags" Workflow -> Workflow -> Workflow
set PropertyType "Tags" Workflow
newValue Workflow {Maybe Object
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: Workflow -> ()
defaultRunProperties :: Workflow -> Maybe Object
description :: Workflow -> Maybe (Value Text)
maxConcurrentRuns :: Workflow -> Maybe (Value Integer)
name :: Workflow -> Maybe (Value Text)
tags :: Workflow -> Maybe Object
haddock_workaround_ :: ()
defaultRunProperties :: Maybe Object
description :: Maybe (Value Text)
maxConcurrentRuns :: Maybe (Value Integer)
name :: Maybe (Value Text)
tags :: Maybe Object
..}
    = Workflow {tags :: Maybe Object
tags = Object -> Maybe Object
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Object
PropertyType "Tags" Workflow
newValue, Maybe Object
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
defaultRunProperties :: Maybe Object
description :: Maybe (Value Text)
maxConcurrentRuns :: Maybe (Value Integer)
name :: Maybe (Value Text)
haddock_workaround_ :: ()
defaultRunProperties :: Maybe Object
description :: Maybe (Value Text)
maxConcurrentRuns :: Maybe (Value Integer)
name :: Maybe (Value Text)
..}