module Stratosphere.SageMaker.Pipeline.ParallelismConfigurationProperty (
ParallelismConfigurationProperty(..),
mkParallelismConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ParallelismConfigurationProperty
=
ParallelismConfigurationProperty {ParallelismConfigurationProperty -> ()
haddock_workaround_ :: (),
ParallelismConfigurationProperty -> Value Integer
maxParallelExecutionSteps :: (Value Prelude.Integer)}
deriving stock (ParallelismConfigurationProperty
-> ParallelismConfigurationProperty -> Bool
(ParallelismConfigurationProperty
-> ParallelismConfigurationProperty -> Bool)
-> (ParallelismConfigurationProperty
-> ParallelismConfigurationProperty -> Bool)
-> Eq ParallelismConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ParallelismConfigurationProperty
-> ParallelismConfigurationProperty -> Bool
== :: ParallelismConfigurationProperty
-> ParallelismConfigurationProperty -> Bool
$c/= :: ParallelismConfigurationProperty
-> ParallelismConfigurationProperty -> Bool
/= :: ParallelismConfigurationProperty
-> ParallelismConfigurationProperty -> Bool
Prelude.Eq, Int -> ParallelismConfigurationProperty -> ShowS
[ParallelismConfigurationProperty] -> ShowS
ParallelismConfigurationProperty -> String
(Int -> ParallelismConfigurationProperty -> ShowS)
-> (ParallelismConfigurationProperty -> String)
-> ([ParallelismConfigurationProperty] -> ShowS)
-> Show ParallelismConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ParallelismConfigurationProperty -> ShowS
showsPrec :: Int -> ParallelismConfigurationProperty -> ShowS
$cshow :: ParallelismConfigurationProperty -> String
show :: ParallelismConfigurationProperty -> String
$cshowList :: [ParallelismConfigurationProperty] -> ShowS
showList :: [ParallelismConfigurationProperty] -> ShowS
Prelude.Show)
mkParallelismConfigurationProperty ::
Value Prelude.Integer -> ParallelismConfigurationProperty
mkParallelismConfigurationProperty :: Value Integer -> ParallelismConfigurationProperty
mkParallelismConfigurationProperty Value Integer
maxParallelExecutionSteps
= ParallelismConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
maxParallelExecutionSteps :: Value Integer
maxParallelExecutionSteps = Value Integer
maxParallelExecutionSteps}
instance ToResourceProperties ParallelismConfigurationProperty where
toResourceProperties :: ParallelismConfigurationProperty -> ResourceProperties
toResourceProperties ParallelismConfigurationProperty {()
Value Integer
haddock_workaround_ :: ParallelismConfigurationProperty -> ()
maxParallelExecutionSteps :: ParallelismConfigurationProperty -> Value Integer
haddock_workaround_ :: ()
maxParallelExecutionSteps :: Value Integer
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SageMaker::Pipeline.ParallelismConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"MaxParallelExecutionSteps"
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..= Value Integer
maxParallelExecutionSteps]}
instance JSON.ToJSON ParallelismConfigurationProperty where
toJSON :: ParallelismConfigurationProperty -> Value
toJSON ParallelismConfigurationProperty {()
Value Integer
haddock_workaround_ :: ParallelismConfigurationProperty -> ()
maxParallelExecutionSteps :: ParallelismConfigurationProperty -> Value Integer
haddock_workaround_ :: ()
maxParallelExecutionSteps :: Value Integer
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"MaxParallelExecutionSteps" 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..= Value Integer
maxParallelExecutionSteps]
instance Property "MaxParallelExecutionSteps" ParallelismConfigurationProperty where
type PropertyType "MaxParallelExecutionSteps" ParallelismConfigurationProperty = Value Prelude.Integer
set :: PropertyType
"MaxParallelExecutionSteps" ParallelismConfigurationProperty
-> ParallelismConfigurationProperty
-> ParallelismConfigurationProperty
set PropertyType
"MaxParallelExecutionSteps" ParallelismConfigurationProperty
newValue ParallelismConfigurationProperty {()
Value Integer
haddock_workaround_ :: ParallelismConfigurationProperty -> ()
maxParallelExecutionSteps :: ParallelismConfigurationProperty -> Value Integer
haddock_workaround_ :: ()
maxParallelExecutionSteps :: Value Integer
..}
= ParallelismConfigurationProperty
{maxParallelExecutionSteps :: Value Integer
maxParallelExecutionSteps = PropertyType
"MaxParallelExecutionSteps" ParallelismConfigurationProperty
Value Integer
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}