module Stratosphere.Deadline.Fleet.AcceleratorTotalMemoryMiBRangeProperty (
AcceleratorTotalMemoryMiBRangeProperty(..),
mkAcceleratorTotalMemoryMiBRangeProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AcceleratorTotalMemoryMiBRangeProperty
=
AcceleratorTotalMemoryMiBRangeProperty {AcceleratorTotalMemoryMiBRangeProperty -> ()
haddock_workaround_ :: (),
AcceleratorTotalMemoryMiBRangeProperty -> Maybe (Value Integer)
max :: (Prelude.Maybe (Value Prelude.Integer)),
AcceleratorTotalMemoryMiBRangeProperty -> Value Integer
min :: (Value Prelude.Integer)}
deriving stock (AcceleratorTotalMemoryMiBRangeProperty
-> AcceleratorTotalMemoryMiBRangeProperty -> Bool
(AcceleratorTotalMemoryMiBRangeProperty
-> AcceleratorTotalMemoryMiBRangeProperty -> Bool)
-> (AcceleratorTotalMemoryMiBRangeProperty
-> AcceleratorTotalMemoryMiBRangeProperty -> Bool)
-> Eq AcceleratorTotalMemoryMiBRangeProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AcceleratorTotalMemoryMiBRangeProperty
-> AcceleratorTotalMemoryMiBRangeProperty -> Bool
== :: AcceleratorTotalMemoryMiBRangeProperty
-> AcceleratorTotalMemoryMiBRangeProperty -> Bool
$c/= :: AcceleratorTotalMemoryMiBRangeProperty
-> AcceleratorTotalMemoryMiBRangeProperty -> Bool
/= :: AcceleratorTotalMemoryMiBRangeProperty
-> AcceleratorTotalMemoryMiBRangeProperty -> Bool
Prelude.Eq, Int -> AcceleratorTotalMemoryMiBRangeProperty -> ShowS
[AcceleratorTotalMemoryMiBRangeProperty] -> ShowS
AcceleratorTotalMemoryMiBRangeProperty -> String
(Int -> AcceleratorTotalMemoryMiBRangeProperty -> ShowS)
-> (AcceleratorTotalMemoryMiBRangeProperty -> String)
-> ([AcceleratorTotalMemoryMiBRangeProperty] -> ShowS)
-> Show AcceleratorTotalMemoryMiBRangeProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AcceleratorTotalMemoryMiBRangeProperty -> ShowS
showsPrec :: Int -> AcceleratorTotalMemoryMiBRangeProperty -> ShowS
$cshow :: AcceleratorTotalMemoryMiBRangeProperty -> String
show :: AcceleratorTotalMemoryMiBRangeProperty -> String
$cshowList :: [AcceleratorTotalMemoryMiBRangeProperty] -> ShowS
showList :: [AcceleratorTotalMemoryMiBRangeProperty] -> ShowS
Prelude.Show)
mkAcceleratorTotalMemoryMiBRangeProperty ::
Value Prelude.Integer -> AcceleratorTotalMemoryMiBRangeProperty
mkAcceleratorTotalMemoryMiBRangeProperty :: Value Integer -> AcceleratorTotalMemoryMiBRangeProperty
mkAcceleratorTotalMemoryMiBRangeProperty Value Integer
min
= AcceleratorTotalMemoryMiBRangeProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), min :: Value Integer
min = Value Integer
min, max :: Maybe (Value Integer)
max = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AcceleratorTotalMemoryMiBRangeProperty where
toResourceProperties :: AcceleratorTotalMemoryMiBRangeProperty -> ResourceProperties
toResourceProperties AcceleratorTotalMemoryMiBRangeProperty {Maybe (Value Integer)
()
Value Integer
haddock_workaround_ :: AcceleratorTotalMemoryMiBRangeProperty -> ()
max :: AcceleratorTotalMemoryMiBRangeProperty -> Maybe (Value Integer)
min :: AcceleratorTotalMemoryMiBRangeProperty -> Value Integer
haddock_workaround_ :: ()
max :: Maybe (Value Integer)
min :: Value Integer
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Deadline::Fleet.AcceleratorTotalMemoryMiBRange",
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
"Min" 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
min]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [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..=) Key
"Max" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
max]))}
instance JSON.ToJSON AcceleratorTotalMemoryMiBRangeProperty where
toJSON :: AcceleratorTotalMemoryMiBRangeProperty -> Value
toJSON AcceleratorTotalMemoryMiBRangeProperty {Maybe (Value Integer)
()
Value Integer
haddock_workaround_ :: AcceleratorTotalMemoryMiBRangeProperty -> ()
max :: AcceleratorTotalMemoryMiBRangeProperty -> Maybe (Value Integer)
min :: AcceleratorTotalMemoryMiBRangeProperty -> Value Integer
haddock_workaround_ :: ()
max :: Maybe (Value Integer)
min :: Value Integer
..}
= [(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
"Min" 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
min]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [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..=) Key
"Max" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
max])))
instance Property "Max" AcceleratorTotalMemoryMiBRangeProperty where
type PropertyType "Max" AcceleratorTotalMemoryMiBRangeProperty = Value Prelude.Integer
set :: PropertyType "Max" AcceleratorTotalMemoryMiBRangeProperty
-> AcceleratorTotalMemoryMiBRangeProperty
-> AcceleratorTotalMemoryMiBRangeProperty
set PropertyType "Max" AcceleratorTotalMemoryMiBRangeProperty
newValue AcceleratorTotalMemoryMiBRangeProperty {Maybe (Value Integer)
()
Value Integer
haddock_workaround_ :: AcceleratorTotalMemoryMiBRangeProperty -> ()
max :: AcceleratorTotalMemoryMiBRangeProperty -> Maybe (Value Integer)
min :: AcceleratorTotalMemoryMiBRangeProperty -> Value Integer
haddock_workaround_ :: ()
max :: Maybe (Value Integer)
min :: Value Integer
..}
= AcceleratorTotalMemoryMiBRangeProperty
{max :: Maybe (Value Integer)
max = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Max" AcceleratorTotalMemoryMiBRangeProperty
Value Integer
newValue, ()
Value Integer
haddock_workaround_ :: ()
min :: Value Integer
haddock_workaround_ :: ()
min :: Value Integer
..}
instance Property "Min" AcceleratorTotalMemoryMiBRangeProperty where
type PropertyType "Min" AcceleratorTotalMemoryMiBRangeProperty = Value Prelude.Integer
set :: PropertyType "Min" AcceleratorTotalMemoryMiBRangeProperty
-> AcceleratorTotalMemoryMiBRangeProperty
-> AcceleratorTotalMemoryMiBRangeProperty
set PropertyType "Min" AcceleratorTotalMemoryMiBRangeProperty
newValue AcceleratorTotalMemoryMiBRangeProperty {Maybe (Value Integer)
()
Value Integer
haddock_workaround_ :: AcceleratorTotalMemoryMiBRangeProperty -> ()
max :: AcceleratorTotalMemoryMiBRangeProperty -> Maybe (Value Integer)
min :: AcceleratorTotalMemoryMiBRangeProperty -> Value Integer
haddock_workaround_ :: ()
max :: Maybe (Value Integer)
min :: Value Integer
..}
= AcceleratorTotalMemoryMiBRangeProperty {min :: Value Integer
min = PropertyType "Min" AcceleratorTotalMemoryMiBRangeProperty
Value Integer
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
max :: Maybe (Value Integer)
haddock_workaround_ :: ()
max :: Maybe (Value Integer)
..}