module Stratosphere.SageMaker.InferenceComponent.InferenceComponentCapacitySizeProperty (
InferenceComponentCapacitySizeProperty(..),
mkInferenceComponentCapacitySizeProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data InferenceComponentCapacitySizeProperty
=
InferenceComponentCapacitySizeProperty {InferenceComponentCapacitySizeProperty -> ()
haddock_workaround_ :: (),
InferenceComponentCapacitySizeProperty -> Value Text
type' :: (Value Prelude.Text),
InferenceComponentCapacitySizeProperty -> Value Integer
value :: (Value Prelude.Integer)}
deriving stock (InferenceComponentCapacitySizeProperty
-> InferenceComponentCapacitySizeProperty -> Bool
(InferenceComponentCapacitySizeProperty
-> InferenceComponentCapacitySizeProperty -> Bool)
-> (InferenceComponentCapacitySizeProperty
-> InferenceComponentCapacitySizeProperty -> Bool)
-> Eq InferenceComponentCapacitySizeProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: InferenceComponentCapacitySizeProperty
-> InferenceComponentCapacitySizeProperty -> Bool
== :: InferenceComponentCapacitySizeProperty
-> InferenceComponentCapacitySizeProperty -> Bool
$c/= :: InferenceComponentCapacitySizeProperty
-> InferenceComponentCapacitySizeProperty -> Bool
/= :: InferenceComponentCapacitySizeProperty
-> InferenceComponentCapacitySizeProperty -> Bool
Prelude.Eq, Int -> InferenceComponentCapacitySizeProperty -> ShowS
[InferenceComponentCapacitySizeProperty] -> ShowS
InferenceComponentCapacitySizeProperty -> String
(Int -> InferenceComponentCapacitySizeProperty -> ShowS)
-> (InferenceComponentCapacitySizeProperty -> String)
-> ([InferenceComponentCapacitySizeProperty] -> ShowS)
-> Show InferenceComponentCapacitySizeProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> InferenceComponentCapacitySizeProperty -> ShowS
showsPrec :: Int -> InferenceComponentCapacitySizeProperty -> ShowS
$cshow :: InferenceComponentCapacitySizeProperty -> String
show :: InferenceComponentCapacitySizeProperty -> String
$cshowList :: [InferenceComponentCapacitySizeProperty] -> ShowS
showList :: [InferenceComponentCapacitySizeProperty] -> ShowS
Prelude.Show)
mkInferenceComponentCapacitySizeProperty ::
Value Prelude.Text
-> Value Prelude.Integer -> InferenceComponentCapacitySizeProperty
mkInferenceComponentCapacitySizeProperty :: Value Text
-> Value Integer -> InferenceComponentCapacitySizeProperty
mkInferenceComponentCapacitySizeProperty Value Text
type' Value Integer
value
= InferenceComponentCapacitySizeProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), type' :: Value Text
type' = Value Text
type', value :: Value Integer
value = Value Integer
value}
instance ToResourceProperties InferenceComponentCapacitySizeProperty where
toResourceProperties :: InferenceComponentCapacitySizeProperty -> ResourceProperties
toResourceProperties InferenceComponentCapacitySizeProperty {()
Value Integer
Value Text
haddock_workaround_ :: InferenceComponentCapacitySizeProperty -> ()
type' :: InferenceComponentCapacitySizeProperty -> Value Text
value :: InferenceComponentCapacitySizeProperty -> Value Integer
haddock_workaround_ :: ()
type' :: Value Text
value :: Value Integer
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SageMaker::InferenceComponent.InferenceComponentCapacitySize",
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 InferenceComponentCapacitySizeProperty where
toJSON :: InferenceComponentCapacitySizeProperty -> Value
toJSON InferenceComponentCapacitySizeProperty {()
Value Integer
Value Text
haddock_workaround_ :: InferenceComponentCapacitySizeProperty -> ()
type' :: InferenceComponentCapacitySizeProperty -> Value Text
value :: InferenceComponentCapacitySizeProperty -> 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" InferenceComponentCapacitySizeProperty where
type PropertyType "Type" InferenceComponentCapacitySizeProperty = Value Prelude.Text
set :: PropertyType "Type" InferenceComponentCapacitySizeProperty
-> InferenceComponentCapacitySizeProperty
-> InferenceComponentCapacitySizeProperty
set PropertyType "Type" InferenceComponentCapacitySizeProperty
newValue InferenceComponentCapacitySizeProperty {()
Value Integer
Value Text
haddock_workaround_ :: InferenceComponentCapacitySizeProperty -> ()
type' :: InferenceComponentCapacitySizeProperty -> Value Text
value :: InferenceComponentCapacitySizeProperty -> Value Integer
haddock_workaround_ :: ()
type' :: Value Text
value :: Value Integer
..}
= InferenceComponentCapacitySizeProperty {type' :: Value Text
type' = PropertyType "Type" InferenceComponentCapacitySizeProperty
Value Text
newValue, ()
Value Integer
haddock_workaround_ :: ()
value :: Value Integer
haddock_workaround_ :: ()
value :: Value Integer
..}
instance Property "Value" InferenceComponentCapacitySizeProperty where
type PropertyType "Value" InferenceComponentCapacitySizeProperty = Value Prelude.Integer
set :: PropertyType "Value" InferenceComponentCapacitySizeProperty
-> InferenceComponentCapacitySizeProperty
-> InferenceComponentCapacitySizeProperty
set PropertyType "Value" InferenceComponentCapacitySizeProperty
newValue InferenceComponentCapacitySizeProperty {()
Value Integer
Value Text
haddock_workaround_ :: InferenceComponentCapacitySizeProperty -> ()
type' :: InferenceComponentCapacitySizeProperty -> Value Text
value :: InferenceComponentCapacitySizeProperty -> Value Integer
haddock_workaround_ :: ()
type' :: Value Text
value :: Value Integer
..}
= InferenceComponentCapacitySizeProperty {value :: Value Integer
value = PropertyType "Value" InferenceComponentCapacitySizeProperty
Value Integer
newValue, ()
Value Text
haddock_workaround_ :: ()
type' :: Value Text
haddock_workaround_ :: ()
type' :: Value Text
..}