module Stratosphere.EC2.SpotFleet.AcceleratorTotalMemoryMiBRequestProperty (
        AcceleratorTotalMemoryMiBRequestProperty(..),
        mkAcceleratorTotalMemoryMiBRequestProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AcceleratorTotalMemoryMiBRequestProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-acceleratortotalmemorymibrequest.html>
    AcceleratorTotalMemoryMiBRequestProperty {AcceleratorTotalMemoryMiBRequestProperty -> ()
haddock_workaround_ :: (),
                                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-acceleratortotalmemorymibrequest.html#cfn-ec2-spotfleet-acceleratortotalmemorymibrequest-max>
                                              AcceleratorTotalMemoryMiBRequestProperty -> Maybe (Value Integer)
max :: (Prelude.Maybe (Value Prelude.Integer)),
                                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-acceleratortotalmemorymibrequest.html#cfn-ec2-spotfleet-acceleratortotalmemorymibrequest-min>
                                              AcceleratorTotalMemoryMiBRequestProperty -> Maybe (Value Integer)
min :: (Prelude.Maybe (Value Prelude.Integer))}
  deriving stock (AcceleratorTotalMemoryMiBRequestProperty
-> AcceleratorTotalMemoryMiBRequestProperty -> Bool
(AcceleratorTotalMemoryMiBRequestProperty
 -> AcceleratorTotalMemoryMiBRequestProperty -> Bool)
-> (AcceleratorTotalMemoryMiBRequestProperty
    -> AcceleratorTotalMemoryMiBRequestProperty -> Bool)
-> Eq AcceleratorTotalMemoryMiBRequestProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AcceleratorTotalMemoryMiBRequestProperty
-> AcceleratorTotalMemoryMiBRequestProperty -> Bool
== :: AcceleratorTotalMemoryMiBRequestProperty
-> AcceleratorTotalMemoryMiBRequestProperty -> Bool
$c/= :: AcceleratorTotalMemoryMiBRequestProperty
-> AcceleratorTotalMemoryMiBRequestProperty -> Bool
/= :: AcceleratorTotalMemoryMiBRequestProperty
-> AcceleratorTotalMemoryMiBRequestProperty -> Bool
Prelude.Eq, Int -> AcceleratorTotalMemoryMiBRequestProperty -> ShowS
[AcceleratorTotalMemoryMiBRequestProperty] -> ShowS
AcceleratorTotalMemoryMiBRequestProperty -> String
(Int -> AcceleratorTotalMemoryMiBRequestProperty -> ShowS)
-> (AcceleratorTotalMemoryMiBRequestProperty -> String)
-> ([AcceleratorTotalMemoryMiBRequestProperty] -> ShowS)
-> Show AcceleratorTotalMemoryMiBRequestProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AcceleratorTotalMemoryMiBRequestProperty -> ShowS
showsPrec :: Int -> AcceleratorTotalMemoryMiBRequestProperty -> ShowS
$cshow :: AcceleratorTotalMemoryMiBRequestProperty -> String
show :: AcceleratorTotalMemoryMiBRequestProperty -> String
$cshowList :: [AcceleratorTotalMemoryMiBRequestProperty] -> ShowS
showList :: [AcceleratorTotalMemoryMiBRequestProperty] -> ShowS
Prelude.Show)
mkAcceleratorTotalMemoryMiBRequestProperty ::
  AcceleratorTotalMemoryMiBRequestProperty
mkAcceleratorTotalMemoryMiBRequestProperty :: AcceleratorTotalMemoryMiBRequestProperty
mkAcceleratorTotalMemoryMiBRequestProperty
  = AcceleratorTotalMemoryMiBRequestProperty
      {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 AcceleratorTotalMemoryMiBRequestProperty where
  toResourceProperties :: AcceleratorTotalMemoryMiBRequestProperty -> ResourceProperties
toResourceProperties AcceleratorTotalMemoryMiBRequestProperty {Maybe (Value Integer)
()
haddock_workaround_ :: AcceleratorTotalMemoryMiBRequestProperty -> ()
max :: AcceleratorTotalMemoryMiBRequestProperty -> Maybe (Value Integer)
min :: AcceleratorTotalMemoryMiBRequestProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
max :: Maybe (Value Integer)
min :: Maybe (Value Integer)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::EC2::SpotFleet.AcceleratorTotalMemoryMiBRequest",
         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 AcceleratorTotalMemoryMiBRequestProperty where
  toJSON :: AcceleratorTotalMemoryMiBRequestProperty -> Value
toJSON AcceleratorTotalMemoryMiBRequestProperty {Maybe (Value Integer)
()
haddock_workaround_ :: AcceleratorTotalMemoryMiBRequestProperty -> ()
max :: AcceleratorTotalMemoryMiBRequestProperty -> Maybe (Value Integer)
min :: AcceleratorTotalMemoryMiBRequestProperty -> 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" AcceleratorTotalMemoryMiBRequestProperty where
  type PropertyType "Max" AcceleratorTotalMemoryMiBRequestProperty = Value Prelude.Integer
  set :: PropertyType "Max" AcceleratorTotalMemoryMiBRequestProperty
-> AcceleratorTotalMemoryMiBRequestProperty
-> AcceleratorTotalMemoryMiBRequestProperty
set PropertyType "Max" AcceleratorTotalMemoryMiBRequestProperty
newValue AcceleratorTotalMemoryMiBRequestProperty {Maybe (Value Integer)
()
haddock_workaround_ :: AcceleratorTotalMemoryMiBRequestProperty -> ()
max :: AcceleratorTotalMemoryMiBRequestProperty -> Maybe (Value Integer)
min :: AcceleratorTotalMemoryMiBRequestProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
max :: Maybe (Value Integer)
min :: Maybe (Value Integer)
..}
    = AcceleratorTotalMemoryMiBRequestProperty
        {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" AcceleratorTotalMemoryMiBRequestProperty
Value Integer
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
min :: Maybe (Value Integer)
haddock_workaround_ :: ()
min :: Maybe (Value Integer)
..}
instance Property "Min" AcceleratorTotalMemoryMiBRequestProperty where
  type PropertyType "Min" AcceleratorTotalMemoryMiBRequestProperty = Value Prelude.Integer
  set :: PropertyType "Min" AcceleratorTotalMemoryMiBRequestProperty
-> AcceleratorTotalMemoryMiBRequestProperty
-> AcceleratorTotalMemoryMiBRequestProperty
set PropertyType "Min" AcceleratorTotalMemoryMiBRequestProperty
newValue AcceleratorTotalMemoryMiBRequestProperty {Maybe (Value Integer)
()
haddock_workaround_ :: AcceleratorTotalMemoryMiBRequestProperty -> ()
max :: AcceleratorTotalMemoryMiBRequestProperty -> Maybe (Value Integer)
min :: AcceleratorTotalMemoryMiBRequestProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
max :: Maybe (Value Integer)
min :: Maybe (Value Integer)
..}
    = AcceleratorTotalMemoryMiBRequestProperty
        {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" AcceleratorTotalMemoryMiBRequestProperty
Value Integer
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
max :: Maybe (Value Integer)
haddock_workaround_ :: ()
max :: Maybe (Value Integer)
..}