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