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