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