module Stratosphere.SageMaker.Cluster.CapacitySizeConfigProperty (
        CapacitySizeConfigProperty(..), mkCapacitySizeConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CapacitySizeConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-capacitysizeconfig.html>
    CapacitySizeConfigProperty {CapacitySizeConfigProperty -> ()
haddock_workaround_ :: (),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-capacitysizeconfig.html#cfn-sagemaker-cluster-capacitysizeconfig-type>
                                CapacitySizeConfigProperty -> Value Text
type' :: (Value Prelude.Text),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-capacitysizeconfig.html#cfn-sagemaker-cluster-capacitysizeconfig-value>
                                CapacitySizeConfigProperty -> Value Integer
value :: (Value Prelude.Integer)}
  deriving stock (CapacitySizeConfigProperty -> CapacitySizeConfigProperty -> Bool
(CapacitySizeConfigProperty -> CapacitySizeConfigProperty -> Bool)
-> (CapacitySizeConfigProperty
    -> CapacitySizeConfigProperty -> Bool)
-> Eq CapacitySizeConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CapacitySizeConfigProperty -> CapacitySizeConfigProperty -> Bool
== :: CapacitySizeConfigProperty -> CapacitySizeConfigProperty -> Bool
$c/= :: CapacitySizeConfigProperty -> CapacitySizeConfigProperty -> Bool
/= :: CapacitySizeConfigProperty -> CapacitySizeConfigProperty -> Bool
Prelude.Eq, Int -> CapacitySizeConfigProperty -> ShowS
[CapacitySizeConfigProperty] -> ShowS
CapacitySizeConfigProperty -> String
(Int -> CapacitySizeConfigProperty -> ShowS)
-> (CapacitySizeConfigProperty -> String)
-> ([CapacitySizeConfigProperty] -> ShowS)
-> Show CapacitySizeConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CapacitySizeConfigProperty -> ShowS
showsPrec :: Int -> CapacitySizeConfigProperty -> ShowS
$cshow :: CapacitySizeConfigProperty -> String
show :: CapacitySizeConfigProperty -> String
$cshowList :: [CapacitySizeConfigProperty] -> ShowS
showList :: [CapacitySizeConfigProperty] -> ShowS
Prelude.Show)
mkCapacitySizeConfigProperty ::
  Value Prelude.Text
  -> Value Prelude.Integer -> CapacitySizeConfigProperty
mkCapacitySizeConfigProperty :: Value Text -> Value Integer -> CapacitySizeConfigProperty
mkCapacitySizeConfigProperty Value Text
type' Value Integer
value
  = CapacitySizeConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), type' :: Value Text
type' = Value Text
type', value :: Value Integer
value = Value Integer
value}
instance ToResourceProperties CapacitySizeConfigProperty where
  toResourceProperties :: CapacitySizeConfigProperty -> ResourceProperties
toResourceProperties CapacitySizeConfigProperty {()
Value Integer
Value Text
haddock_workaround_ :: CapacitySizeConfigProperty -> ()
type' :: CapacitySizeConfigProperty -> Value Text
value :: CapacitySizeConfigProperty -> Value Integer
haddock_workaround_ :: ()
type' :: Value Text
value :: Value Integer
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SageMaker::Cluster.CapacitySizeConfig",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Type" 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
type', Key
"Value" 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
value]}
instance JSON.ToJSON CapacitySizeConfigProperty where
  toJSON :: CapacitySizeConfigProperty -> Value
toJSON CapacitySizeConfigProperty {()
Value Integer
Value Text
haddock_workaround_ :: CapacitySizeConfigProperty -> ()
type' :: CapacitySizeConfigProperty -> Value Text
value :: CapacitySizeConfigProperty -> Value Integer
haddock_workaround_ :: ()
type' :: Value Text
value :: Value Integer
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"Type" 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
type', Key
"Value" 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
value]
instance Property "Type" CapacitySizeConfigProperty where
  type PropertyType "Type" CapacitySizeConfigProperty = Value Prelude.Text
  set :: PropertyType "Type" CapacitySizeConfigProperty
-> CapacitySizeConfigProperty -> CapacitySizeConfigProperty
set PropertyType "Type" CapacitySizeConfigProperty
newValue CapacitySizeConfigProperty {()
Value Integer
Value Text
haddock_workaround_ :: CapacitySizeConfigProperty -> ()
type' :: CapacitySizeConfigProperty -> Value Text
value :: CapacitySizeConfigProperty -> Value Integer
haddock_workaround_ :: ()
type' :: Value Text
value :: Value Integer
..}
    = CapacitySizeConfigProperty {type' :: Value Text
type' = PropertyType "Type" CapacitySizeConfigProperty
Value Text
newValue, ()
Value Integer
haddock_workaround_ :: ()
value :: Value Integer
haddock_workaround_ :: ()
value :: Value Integer
..}
instance Property "Value" CapacitySizeConfigProperty where
  type PropertyType "Value" CapacitySizeConfigProperty = Value Prelude.Integer
  set :: PropertyType "Value" CapacitySizeConfigProperty
-> CapacitySizeConfigProperty -> CapacitySizeConfigProperty
set PropertyType "Value" CapacitySizeConfigProperty
newValue CapacitySizeConfigProperty {()
Value Integer
Value Text
haddock_workaround_ :: CapacitySizeConfigProperty -> ()
type' :: CapacitySizeConfigProperty -> Value Text
value :: CapacitySizeConfigProperty -> Value Integer
haddock_workaround_ :: ()
type' :: Value Text
value :: Value Integer
..}
    = CapacitySizeConfigProperty {value :: Value Integer
value = PropertyType "Value" CapacitySizeConfigProperty
Value Integer
newValue, ()
Value Text
haddock_workaround_ :: ()
type' :: Value Text
haddock_workaround_ :: ()
type' :: Value Text
..}