module Stratosphere.AppMesh.VirtualNode.VirtualNodeHttpConnectionPoolProperty (
VirtualNodeHttpConnectionPoolProperty(..),
mkVirtualNodeHttpConnectionPoolProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data VirtualNodeHttpConnectionPoolProperty
=
VirtualNodeHttpConnectionPoolProperty {VirtualNodeHttpConnectionPoolProperty -> ()
haddock_workaround_ :: (),
VirtualNodeHttpConnectionPoolProperty -> Value Integer
maxConnections :: (Value Prelude.Integer),
VirtualNodeHttpConnectionPoolProperty -> Maybe (Value Integer)
maxPendingRequests :: (Prelude.Maybe (Value Prelude.Integer))}
deriving stock (VirtualNodeHttpConnectionPoolProperty
-> VirtualNodeHttpConnectionPoolProperty -> Bool
(VirtualNodeHttpConnectionPoolProperty
-> VirtualNodeHttpConnectionPoolProperty -> Bool)
-> (VirtualNodeHttpConnectionPoolProperty
-> VirtualNodeHttpConnectionPoolProperty -> Bool)
-> Eq VirtualNodeHttpConnectionPoolProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VirtualNodeHttpConnectionPoolProperty
-> VirtualNodeHttpConnectionPoolProperty -> Bool
== :: VirtualNodeHttpConnectionPoolProperty
-> VirtualNodeHttpConnectionPoolProperty -> Bool
$c/= :: VirtualNodeHttpConnectionPoolProperty
-> VirtualNodeHttpConnectionPoolProperty -> Bool
/= :: VirtualNodeHttpConnectionPoolProperty
-> VirtualNodeHttpConnectionPoolProperty -> Bool
Prelude.Eq, Int -> VirtualNodeHttpConnectionPoolProperty -> ShowS
[VirtualNodeHttpConnectionPoolProperty] -> ShowS
VirtualNodeHttpConnectionPoolProperty -> String
(Int -> VirtualNodeHttpConnectionPoolProperty -> ShowS)
-> (VirtualNodeHttpConnectionPoolProperty -> String)
-> ([VirtualNodeHttpConnectionPoolProperty] -> ShowS)
-> Show VirtualNodeHttpConnectionPoolProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VirtualNodeHttpConnectionPoolProperty -> ShowS
showsPrec :: Int -> VirtualNodeHttpConnectionPoolProperty -> ShowS
$cshow :: VirtualNodeHttpConnectionPoolProperty -> String
show :: VirtualNodeHttpConnectionPoolProperty -> String
$cshowList :: [VirtualNodeHttpConnectionPoolProperty] -> ShowS
showList :: [VirtualNodeHttpConnectionPoolProperty] -> ShowS
Prelude.Show)
mkVirtualNodeHttpConnectionPoolProperty ::
Value Prelude.Integer -> VirtualNodeHttpConnectionPoolProperty
mkVirtualNodeHttpConnectionPoolProperty :: Value Integer -> VirtualNodeHttpConnectionPoolProperty
mkVirtualNodeHttpConnectionPoolProperty Value Integer
maxConnections
= VirtualNodeHttpConnectionPoolProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), maxConnections :: Value Integer
maxConnections = Value Integer
maxConnections,
maxPendingRequests :: Maybe (Value Integer)
maxPendingRequests = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties VirtualNodeHttpConnectionPoolProperty where
toResourceProperties :: VirtualNodeHttpConnectionPoolProperty -> ResourceProperties
toResourceProperties VirtualNodeHttpConnectionPoolProperty {Maybe (Value Integer)
()
Value Integer
haddock_workaround_ :: VirtualNodeHttpConnectionPoolProperty -> ()
maxConnections :: VirtualNodeHttpConnectionPoolProperty -> Value Integer
maxPendingRequests :: VirtualNodeHttpConnectionPoolProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
maxConnections :: Value Integer
maxPendingRequests :: Maybe (Value Integer)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AppMesh::VirtualNode.VirtualNodeHttpConnectionPool",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"MaxConnections" 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..= Value Integer
maxConnections]
([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
"MaxPendingRequests" (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)
maxPendingRequests]))}
instance JSON.ToJSON VirtualNodeHttpConnectionPoolProperty where
toJSON :: VirtualNodeHttpConnectionPoolProperty -> Value
toJSON VirtualNodeHttpConnectionPoolProperty {Maybe (Value Integer)
()
Value Integer
haddock_workaround_ :: VirtualNodeHttpConnectionPoolProperty -> ()
maxConnections :: VirtualNodeHttpConnectionPoolProperty -> Value Integer
maxPendingRequests :: VirtualNodeHttpConnectionPoolProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
maxConnections :: Value Integer
maxPendingRequests :: Maybe (Value Integer)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"MaxConnections" 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..= Value Integer
maxConnections]
([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
"MaxPendingRequests" (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)
maxPendingRequests])))
instance Property "MaxConnections" VirtualNodeHttpConnectionPoolProperty where
type PropertyType "MaxConnections" VirtualNodeHttpConnectionPoolProperty = Value Prelude.Integer
set :: PropertyType "MaxConnections" VirtualNodeHttpConnectionPoolProperty
-> VirtualNodeHttpConnectionPoolProperty
-> VirtualNodeHttpConnectionPoolProperty
set PropertyType "MaxConnections" VirtualNodeHttpConnectionPoolProperty
newValue VirtualNodeHttpConnectionPoolProperty {Maybe (Value Integer)
()
Value Integer
haddock_workaround_ :: VirtualNodeHttpConnectionPoolProperty -> ()
maxConnections :: VirtualNodeHttpConnectionPoolProperty -> Value Integer
maxPendingRequests :: VirtualNodeHttpConnectionPoolProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
maxConnections :: Value Integer
maxPendingRequests :: Maybe (Value Integer)
..}
= VirtualNodeHttpConnectionPoolProperty
{maxConnections :: Value Integer
maxConnections = PropertyType "MaxConnections" VirtualNodeHttpConnectionPoolProperty
Value Integer
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
maxPendingRequests :: Maybe (Value Integer)
haddock_workaround_ :: ()
maxPendingRequests :: Maybe (Value Integer)
..}
instance Property "MaxPendingRequests" VirtualNodeHttpConnectionPoolProperty where
type PropertyType "MaxPendingRequests" VirtualNodeHttpConnectionPoolProperty = Value Prelude.Integer
set :: PropertyType
"MaxPendingRequests" VirtualNodeHttpConnectionPoolProperty
-> VirtualNodeHttpConnectionPoolProperty
-> VirtualNodeHttpConnectionPoolProperty
set PropertyType
"MaxPendingRequests" VirtualNodeHttpConnectionPoolProperty
newValue VirtualNodeHttpConnectionPoolProperty {Maybe (Value Integer)
()
Value Integer
haddock_workaround_ :: VirtualNodeHttpConnectionPoolProperty -> ()
maxConnections :: VirtualNodeHttpConnectionPoolProperty -> Value Integer
maxPendingRequests :: VirtualNodeHttpConnectionPoolProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
maxConnections :: Value Integer
maxPendingRequests :: Maybe (Value Integer)
..}
= VirtualNodeHttpConnectionPoolProperty
{maxPendingRequests :: Maybe (Value Integer)
maxPendingRequests = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"MaxPendingRequests" VirtualNodeHttpConnectionPoolProperty
Value Integer
newValue, ()
Value Integer
haddock_workaround_ :: ()
maxConnections :: Value Integer
haddock_workaround_ :: ()
maxConnections :: Value Integer
..}