module Stratosphere.ECS.CapacityProvider.NetworkBandwidthGbpsRequestProperty (
NetworkBandwidthGbpsRequestProperty(..),
mkNetworkBandwidthGbpsRequestProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data NetworkBandwidthGbpsRequestProperty
=
NetworkBandwidthGbpsRequestProperty {NetworkBandwidthGbpsRequestProperty -> ()
haddock_workaround_ :: (),
NetworkBandwidthGbpsRequestProperty -> Maybe (Value Double)
max :: (Prelude.Maybe (Value Prelude.Double)),
NetworkBandwidthGbpsRequestProperty -> Maybe (Value Double)
min :: (Prelude.Maybe (Value Prelude.Double))}
deriving stock (NetworkBandwidthGbpsRequestProperty
-> NetworkBandwidthGbpsRequestProperty -> Bool
(NetworkBandwidthGbpsRequestProperty
-> NetworkBandwidthGbpsRequestProperty -> Bool)
-> (NetworkBandwidthGbpsRequestProperty
-> NetworkBandwidthGbpsRequestProperty -> Bool)
-> Eq NetworkBandwidthGbpsRequestProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: NetworkBandwidthGbpsRequestProperty
-> NetworkBandwidthGbpsRequestProperty -> Bool
== :: NetworkBandwidthGbpsRequestProperty
-> NetworkBandwidthGbpsRequestProperty -> Bool
$c/= :: NetworkBandwidthGbpsRequestProperty
-> NetworkBandwidthGbpsRequestProperty -> Bool
/= :: NetworkBandwidthGbpsRequestProperty
-> NetworkBandwidthGbpsRequestProperty -> Bool
Prelude.Eq, Int -> NetworkBandwidthGbpsRequestProperty -> ShowS
[NetworkBandwidthGbpsRequestProperty] -> ShowS
NetworkBandwidthGbpsRequestProperty -> String
(Int -> NetworkBandwidthGbpsRequestProperty -> ShowS)
-> (NetworkBandwidthGbpsRequestProperty -> String)
-> ([NetworkBandwidthGbpsRequestProperty] -> ShowS)
-> Show NetworkBandwidthGbpsRequestProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> NetworkBandwidthGbpsRequestProperty -> ShowS
showsPrec :: Int -> NetworkBandwidthGbpsRequestProperty -> ShowS
$cshow :: NetworkBandwidthGbpsRequestProperty -> String
show :: NetworkBandwidthGbpsRequestProperty -> String
$cshowList :: [NetworkBandwidthGbpsRequestProperty] -> ShowS
showList :: [NetworkBandwidthGbpsRequestProperty] -> ShowS
Prelude.Show)
mkNetworkBandwidthGbpsRequestProperty ::
NetworkBandwidthGbpsRequestProperty
mkNetworkBandwidthGbpsRequestProperty :: NetworkBandwidthGbpsRequestProperty
mkNetworkBandwidthGbpsRequestProperty
= NetworkBandwidthGbpsRequestProperty
{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 NetworkBandwidthGbpsRequestProperty where
toResourceProperties :: NetworkBandwidthGbpsRequestProperty -> ResourceProperties
toResourceProperties NetworkBandwidthGbpsRequestProperty {Maybe (Value Double)
()
haddock_workaround_ :: NetworkBandwidthGbpsRequestProperty -> ()
max :: NetworkBandwidthGbpsRequestProperty -> Maybe (Value Double)
min :: NetworkBandwidthGbpsRequestProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
max :: Maybe (Value Double)
min :: Maybe (Value Double)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ECS::CapacityProvider.NetworkBandwidthGbpsRequest",
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 NetworkBandwidthGbpsRequestProperty where
toJSON :: NetworkBandwidthGbpsRequestProperty -> Value
toJSON NetworkBandwidthGbpsRequestProperty {Maybe (Value Double)
()
haddock_workaround_ :: NetworkBandwidthGbpsRequestProperty -> ()
max :: NetworkBandwidthGbpsRequestProperty -> Maybe (Value Double)
min :: NetworkBandwidthGbpsRequestProperty -> 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" NetworkBandwidthGbpsRequestProperty where
type PropertyType "Max" NetworkBandwidthGbpsRequestProperty = Value Prelude.Double
set :: PropertyType "Max" NetworkBandwidthGbpsRequestProperty
-> NetworkBandwidthGbpsRequestProperty
-> NetworkBandwidthGbpsRequestProperty
set PropertyType "Max" NetworkBandwidthGbpsRequestProperty
newValue NetworkBandwidthGbpsRequestProperty {Maybe (Value Double)
()
haddock_workaround_ :: NetworkBandwidthGbpsRequestProperty -> ()
max :: NetworkBandwidthGbpsRequestProperty -> Maybe (Value Double)
min :: NetworkBandwidthGbpsRequestProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
max :: Maybe (Value Double)
min :: Maybe (Value Double)
..}
= NetworkBandwidthGbpsRequestProperty
{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" NetworkBandwidthGbpsRequestProperty
Value Double
newValue, Maybe (Value Double)
()
haddock_workaround_ :: ()
min :: Maybe (Value Double)
haddock_workaround_ :: ()
min :: Maybe (Value Double)
..}
instance Property "Min" NetworkBandwidthGbpsRequestProperty where
type PropertyType "Min" NetworkBandwidthGbpsRequestProperty = Value Prelude.Double
set :: PropertyType "Min" NetworkBandwidthGbpsRequestProperty
-> NetworkBandwidthGbpsRequestProperty
-> NetworkBandwidthGbpsRequestProperty
set PropertyType "Min" NetworkBandwidthGbpsRequestProperty
newValue NetworkBandwidthGbpsRequestProperty {Maybe (Value Double)
()
haddock_workaround_ :: NetworkBandwidthGbpsRequestProperty -> ()
max :: NetworkBandwidthGbpsRequestProperty -> Maybe (Value Double)
min :: NetworkBandwidthGbpsRequestProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
max :: Maybe (Value Double)
min :: Maybe (Value Double)
..}
= NetworkBandwidthGbpsRequestProperty
{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" NetworkBandwidthGbpsRequestProperty
Value Double
newValue, Maybe (Value Double)
()
haddock_workaround_ :: ()
max :: Maybe (Value Double)
haddock_workaround_ :: ()
max :: Maybe (Value Double)
..}