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