module Stratosphere.SageMaker.Cluster.ClusterAutoScalingConfigProperty (
ClusterAutoScalingConfigProperty(..),
mkClusterAutoScalingConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ClusterAutoScalingConfigProperty
=
ClusterAutoScalingConfigProperty {ClusterAutoScalingConfigProperty -> ()
haddock_workaround_ :: (),
ClusterAutoScalingConfigProperty -> Maybe (Value Text)
autoScalerType :: (Prelude.Maybe (Value Prelude.Text)),
ClusterAutoScalingConfigProperty -> Value Text
mode :: (Value Prelude.Text)}
deriving stock (ClusterAutoScalingConfigProperty
-> ClusterAutoScalingConfigProperty -> Bool
(ClusterAutoScalingConfigProperty
-> ClusterAutoScalingConfigProperty -> Bool)
-> (ClusterAutoScalingConfigProperty
-> ClusterAutoScalingConfigProperty -> Bool)
-> Eq ClusterAutoScalingConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ClusterAutoScalingConfigProperty
-> ClusterAutoScalingConfigProperty -> Bool
== :: ClusterAutoScalingConfigProperty
-> ClusterAutoScalingConfigProperty -> Bool
$c/= :: ClusterAutoScalingConfigProperty
-> ClusterAutoScalingConfigProperty -> Bool
/= :: ClusterAutoScalingConfigProperty
-> ClusterAutoScalingConfigProperty -> Bool
Prelude.Eq, Int -> ClusterAutoScalingConfigProperty -> ShowS
[ClusterAutoScalingConfigProperty] -> ShowS
ClusterAutoScalingConfigProperty -> String
(Int -> ClusterAutoScalingConfigProperty -> ShowS)
-> (ClusterAutoScalingConfigProperty -> String)
-> ([ClusterAutoScalingConfigProperty] -> ShowS)
-> Show ClusterAutoScalingConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ClusterAutoScalingConfigProperty -> ShowS
showsPrec :: Int -> ClusterAutoScalingConfigProperty -> ShowS
$cshow :: ClusterAutoScalingConfigProperty -> String
show :: ClusterAutoScalingConfigProperty -> String
$cshowList :: [ClusterAutoScalingConfigProperty] -> ShowS
showList :: [ClusterAutoScalingConfigProperty] -> ShowS
Prelude.Show)
mkClusterAutoScalingConfigProperty ::
Value Prelude.Text -> ClusterAutoScalingConfigProperty
mkClusterAutoScalingConfigProperty :: Value Text -> ClusterAutoScalingConfigProperty
mkClusterAutoScalingConfigProperty Value Text
mode
= ClusterAutoScalingConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), mode :: Value Text
mode = Value Text
mode,
autoScalerType :: Maybe (Value Text)
autoScalerType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ClusterAutoScalingConfigProperty where
toResourceProperties :: ClusterAutoScalingConfigProperty -> ResourceProperties
toResourceProperties ClusterAutoScalingConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ClusterAutoScalingConfigProperty -> ()
autoScalerType :: ClusterAutoScalingConfigProperty -> Maybe (Value Text)
mode :: ClusterAutoScalingConfigProperty -> Value Text
haddock_workaround_ :: ()
autoScalerType :: Maybe (Value Text)
mode :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SageMaker::Cluster.ClusterAutoScalingConfig",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Mode" 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..= Value Text
mode]
([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
"AutoScalerType" (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)
autoScalerType]))}
instance JSON.ToJSON ClusterAutoScalingConfigProperty where
toJSON :: ClusterAutoScalingConfigProperty -> Value
toJSON ClusterAutoScalingConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ClusterAutoScalingConfigProperty -> ()
autoScalerType :: ClusterAutoScalingConfigProperty -> Maybe (Value Text)
mode :: ClusterAutoScalingConfigProperty -> Value Text
haddock_workaround_ :: ()
autoScalerType :: Maybe (Value Text)
mode :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Mode" 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..= Value Text
mode]
([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
"AutoScalerType" (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)
autoScalerType])))
instance Property "AutoScalerType" ClusterAutoScalingConfigProperty where
type PropertyType "AutoScalerType" ClusterAutoScalingConfigProperty = Value Prelude.Text
set :: PropertyType "AutoScalerType" ClusterAutoScalingConfigProperty
-> ClusterAutoScalingConfigProperty
-> ClusterAutoScalingConfigProperty
set PropertyType "AutoScalerType" ClusterAutoScalingConfigProperty
newValue ClusterAutoScalingConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ClusterAutoScalingConfigProperty -> ()
autoScalerType :: ClusterAutoScalingConfigProperty -> Maybe (Value Text)
mode :: ClusterAutoScalingConfigProperty -> Value Text
haddock_workaround_ :: ()
autoScalerType :: Maybe (Value Text)
mode :: Value Text
..}
= ClusterAutoScalingConfigProperty
{autoScalerType :: Maybe (Value Text)
autoScalerType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AutoScalerType" ClusterAutoScalingConfigProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
mode :: Value Text
haddock_workaround_ :: ()
mode :: Value Text
..}
instance Property "Mode" ClusterAutoScalingConfigProperty where
type PropertyType "Mode" ClusterAutoScalingConfigProperty = Value Prelude.Text
set :: PropertyType "Mode" ClusterAutoScalingConfigProperty
-> ClusterAutoScalingConfigProperty
-> ClusterAutoScalingConfigProperty
set PropertyType "Mode" ClusterAutoScalingConfigProperty
newValue ClusterAutoScalingConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ClusterAutoScalingConfigProperty -> ()
autoScalerType :: ClusterAutoScalingConfigProperty -> Maybe (Value Text)
mode :: ClusterAutoScalingConfigProperty -> Value Text
haddock_workaround_ :: ()
autoScalerType :: Maybe (Value Text)
mode :: Value Text
..}
= ClusterAutoScalingConfigProperty {mode :: Value Text
mode = PropertyType "Mode" ClusterAutoScalingConfigProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
autoScalerType :: Maybe (Value Text)
haddock_workaround_ :: ()
autoScalerType :: Maybe (Value Text)
..}