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