module Stratosphere.EC2.LaunchTemplate.TotalLocalStorageGBProperty (
        TotalLocalStorageGBProperty(..), mkTotalLocalStorageGBProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TotalLocalStorageGBProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-totallocalstoragegb.html>
    TotalLocalStorageGBProperty {TotalLocalStorageGBProperty -> ()
haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-totallocalstoragegb.html#cfn-ec2-launchtemplate-totallocalstoragegb-max>
                                 TotalLocalStorageGBProperty -> Maybe (Value Double)
max :: (Prelude.Maybe (Value Prelude.Double)),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-totallocalstoragegb.html#cfn-ec2-launchtemplate-totallocalstoragegb-min>
                                 TotalLocalStorageGBProperty -> Maybe (Value Double)
min :: (Prelude.Maybe (Value Prelude.Double))}
  deriving stock (TotalLocalStorageGBProperty -> TotalLocalStorageGBProperty -> Bool
(TotalLocalStorageGBProperty
 -> TotalLocalStorageGBProperty -> Bool)
-> (TotalLocalStorageGBProperty
    -> TotalLocalStorageGBProperty -> Bool)
-> Eq TotalLocalStorageGBProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TotalLocalStorageGBProperty -> TotalLocalStorageGBProperty -> Bool
== :: TotalLocalStorageGBProperty -> TotalLocalStorageGBProperty -> Bool
$c/= :: TotalLocalStorageGBProperty -> TotalLocalStorageGBProperty -> Bool
/= :: TotalLocalStorageGBProperty -> TotalLocalStorageGBProperty -> Bool
Prelude.Eq, Int -> TotalLocalStorageGBProperty -> ShowS
[TotalLocalStorageGBProperty] -> ShowS
TotalLocalStorageGBProperty -> String
(Int -> TotalLocalStorageGBProperty -> ShowS)
-> (TotalLocalStorageGBProperty -> String)
-> ([TotalLocalStorageGBProperty] -> ShowS)
-> Show TotalLocalStorageGBProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TotalLocalStorageGBProperty -> ShowS
showsPrec :: Int -> TotalLocalStorageGBProperty -> ShowS
$cshow :: TotalLocalStorageGBProperty -> String
show :: TotalLocalStorageGBProperty -> String
$cshowList :: [TotalLocalStorageGBProperty] -> ShowS
showList :: [TotalLocalStorageGBProperty] -> ShowS
Prelude.Show)
mkTotalLocalStorageGBProperty :: TotalLocalStorageGBProperty
mkTotalLocalStorageGBProperty :: TotalLocalStorageGBProperty
mkTotalLocalStorageGBProperty
  = TotalLocalStorageGBProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), max :: Maybe (Value Double)
max = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing,
       min :: Maybe (Value Double)
min = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TotalLocalStorageGBProperty where
  toResourceProperties :: TotalLocalStorageGBProperty -> ResourceProperties
toResourceProperties TotalLocalStorageGBProperty {Maybe (Value Double)
()
haddock_workaround_ :: TotalLocalStorageGBProperty -> ()
max :: TotalLocalStorageGBProperty -> Maybe (Value Double)
min :: TotalLocalStorageGBProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
max :: Maybe (Value Double)
min :: Maybe (Value Double)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::EC2::LaunchTemplate.TotalLocalStorageGB",
         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 Double -> (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 Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
max,
                            Key -> Value Double -> (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 Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
min])}
instance JSON.ToJSON TotalLocalStorageGBProperty where
  toJSON :: TotalLocalStorageGBProperty -> Value
toJSON TotalLocalStorageGBProperty {Maybe (Value Double)
()
haddock_workaround_ :: TotalLocalStorageGBProperty -> ()
max :: TotalLocalStorageGBProperty -> Maybe (Value Double)
min :: TotalLocalStorageGBProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
max :: Maybe (Value Double)
min :: Maybe (Value Double)
..}
    = [(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 Double -> (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 Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
max,
               Key -> Value Double -> (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 Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
min]))
instance Property "Max" TotalLocalStorageGBProperty where
  type PropertyType "Max" TotalLocalStorageGBProperty = Value Prelude.Double
  set :: PropertyType "Max" TotalLocalStorageGBProperty
-> TotalLocalStorageGBProperty -> TotalLocalStorageGBProperty
set PropertyType "Max" TotalLocalStorageGBProperty
newValue TotalLocalStorageGBProperty {Maybe (Value Double)
()
haddock_workaround_ :: TotalLocalStorageGBProperty -> ()
max :: TotalLocalStorageGBProperty -> Maybe (Value Double)
min :: TotalLocalStorageGBProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
max :: Maybe (Value Double)
min :: Maybe (Value Double)
..}
    = TotalLocalStorageGBProperty {max :: Maybe (Value Double)
max = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Max" TotalLocalStorageGBProperty
Value Double
newValue, Maybe (Value Double)
()
haddock_workaround_ :: ()
min :: Maybe (Value Double)
haddock_workaround_ :: ()
min :: Maybe (Value Double)
..}
instance Property "Min" TotalLocalStorageGBProperty where
  type PropertyType "Min" TotalLocalStorageGBProperty = Value Prelude.Double
  set :: PropertyType "Min" TotalLocalStorageGBProperty
-> TotalLocalStorageGBProperty -> TotalLocalStorageGBProperty
set PropertyType "Min" TotalLocalStorageGBProperty
newValue TotalLocalStorageGBProperty {Maybe (Value Double)
()
haddock_workaround_ :: TotalLocalStorageGBProperty -> ()
max :: TotalLocalStorageGBProperty -> Maybe (Value Double)
min :: TotalLocalStorageGBProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
max :: Maybe (Value Double)
min :: Maybe (Value Double)
..}
    = TotalLocalStorageGBProperty {min :: Maybe (Value Double)
min = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Min" TotalLocalStorageGBProperty
Value Double
newValue, Maybe (Value Double)
()
haddock_workaround_ :: ()
max :: Maybe (Value Double)
haddock_workaround_ :: ()
max :: Maybe (Value Double)
..}