module Stratosphere.AppMesh.VirtualGateway.VirtualGatewayHttpConnectionPoolProperty (
VirtualGatewayHttpConnectionPoolProperty(..),
mkVirtualGatewayHttpConnectionPoolProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data VirtualGatewayHttpConnectionPoolProperty
=
VirtualGatewayHttpConnectionPoolProperty {VirtualGatewayHttpConnectionPoolProperty -> ()
haddock_workaround_ :: (),
VirtualGatewayHttpConnectionPoolProperty -> Value Integer
maxConnections :: (Value Prelude.Integer),
VirtualGatewayHttpConnectionPoolProperty -> Maybe (Value Integer)
maxPendingRequests :: (Prelude.Maybe (Value Prelude.Integer))}
deriving stock (VirtualGatewayHttpConnectionPoolProperty
-> VirtualGatewayHttpConnectionPoolProperty -> Bool
(VirtualGatewayHttpConnectionPoolProperty
-> VirtualGatewayHttpConnectionPoolProperty -> Bool)
-> (VirtualGatewayHttpConnectionPoolProperty
-> VirtualGatewayHttpConnectionPoolProperty -> Bool)
-> Eq VirtualGatewayHttpConnectionPoolProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VirtualGatewayHttpConnectionPoolProperty
-> VirtualGatewayHttpConnectionPoolProperty -> Bool
== :: VirtualGatewayHttpConnectionPoolProperty
-> VirtualGatewayHttpConnectionPoolProperty -> Bool
$c/= :: VirtualGatewayHttpConnectionPoolProperty
-> VirtualGatewayHttpConnectionPoolProperty -> Bool
/= :: VirtualGatewayHttpConnectionPoolProperty
-> VirtualGatewayHttpConnectionPoolProperty -> Bool
Prelude.Eq, Int -> VirtualGatewayHttpConnectionPoolProperty -> ShowS
[VirtualGatewayHttpConnectionPoolProperty] -> ShowS
VirtualGatewayHttpConnectionPoolProperty -> String
(Int -> VirtualGatewayHttpConnectionPoolProperty -> ShowS)
-> (VirtualGatewayHttpConnectionPoolProperty -> String)
-> ([VirtualGatewayHttpConnectionPoolProperty] -> ShowS)
-> Show VirtualGatewayHttpConnectionPoolProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VirtualGatewayHttpConnectionPoolProperty -> ShowS
showsPrec :: Int -> VirtualGatewayHttpConnectionPoolProperty -> ShowS
$cshow :: VirtualGatewayHttpConnectionPoolProperty -> String
show :: VirtualGatewayHttpConnectionPoolProperty -> String
$cshowList :: [VirtualGatewayHttpConnectionPoolProperty] -> ShowS
showList :: [VirtualGatewayHttpConnectionPoolProperty] -> ShowS
Prelude.Show)
mkVirtualGatewayHttpConnectionPoolProperty ::
Value Prelude.Integer -> VirtualGatewayHttpConnectionPoolProperty
mkVirtualGatewayHttpConnectionPoolProperty :: Value Integer -> VirtualGatewayHttpConnectionPoolProperty
mkVirtualGatewayHttpConnectionPoolProperty Value Integer
maxConnections
= VirtualGatewayHttpConnectionPoolProperty
{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 VirtualGatewayHttpConnectionPoolProperty where
toResourceProperties :: VirtualGatewayHttpConnectionPoolProperty -> ResourceProperties
toResourceProperties VirtualGatewayHttpConnectionPoolProperty {Maybe (Value Integer)
()
Value Integer
haddock_workaround_ :: VirtualGatewayHttpConnectionPoolProperty -> ()
maxConnections :: VirtualGatewayHttpConnectionPoolProperty -> Value Integer
maxPendingRequests :: VirtualGatewayHttpConnectionPoolProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
maxConnections :: Value Integer
maxPendingRequests :: Maybe (Value Integer)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AppMesh::VirtualGateway.VirtualGatewayHttpConnectionPool",
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 VirtualGatewayHttpConnectionPoolProperty where
toJSON :: VirtualGatewayHttpConnectionPoolProperty -> Value
toJSON VirtualGatewayHttpConnectionPoolProperty {Maybe (Value Integer)
()
Value Integer
haddock_workaround_ :: VirtualGatewayHttpConnectionPoolProperty -> ()
maxConnections :: VirtualGatewayHttpConnectionPoolProperty -> Value Integer
maxPendingRequests :: VirtualGatewayHttpConnectionPoolProperty -> 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" VirtualGatewayHttpConnectionPoolProperty where
type PropertyType "MaxConnections" VirtualGatewayHttpConnectionPoolProperty = Value Prelude.Integer
set :: PropertyType
"MaxConnections" VirtualGatewayHttpConnectionPoolProperty
-> VirtualGatewayHttpConnectionPoolProperty
-> VirtualGatewayHttpConnectionPoolProperty
set PropertyType
"MaxConnections" VirtualGatewayHttpConnectionPoolProperty
newValue VirtualGatewayHttpConnectionPoolProperty {Maybe (Value Integer)
()
Value Integer
haddock_workaround_ :: VirtualGatewayHttpConnectionPoolProperty -> ()
maxConnections :: VirtualGatewayHttpConnectionPoolProperty -> Value Integer
maxPendingRequests :: VirtualGatewayHttpConnectionPoolProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
maxConnections :: Value Integer
maxPendingRequests :: Maybe (Value Integer)
..}
= VirtualGatewayHttpConnectionPoolProperty
{maxConnections :: Value Integer
maxConnections = PropertyType
"MaxConnections" VirtualGatewayHttpConnectionPoolProperty
Value Integer
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
maxPendingRequests :: Maybe (Value Integer)
haddock_workaround_ :: ()
maxPendingRequests :: Maybe (Value Integer)
..}
instance Property "MaxPendingRequests" VirtualGatewayHttpConnectionPoolProperty where
type PropertyType "MaxPendingRequests" VirtualGatewayHttpConnectionPoolProperty = Value Prelude.Integer
set :: PropertyType
"MaxPendingRequests" VirtualGatewayHttpConnectionPoolProperty
-> VirtualGatewayHttpConnectionPoolProperty
-> VirtualGatewayHttpConnectionPoolProperty
set PropertyType
"MaxPendingRequests" VirtualGatewayHttpConnectionPoolProperty
newValue VirtualGatewayHttpConnectionPoolProperty {Maybe (Value Integer)
()
Value Integer
haddock_workaround_ :: VirtualGatewayHttpConnectionPoolProperty -> ()
maxConnections :: VirtualGatewayHttpConnectionPoolProperty -> Value Integer
maxPendingRequests :: VirtualGatewayHttpConnectionPoolProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
maxConnections :: Value Integer
maxPendingRequests :: Maybe (Value Integer)
..}
= VirtualGatewayHttpConnectionPoolProperty
{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" VirtualGatewayHttpConnectionPoolProperty
Value Integer
newValue, ()
Value Integer
haddock_workaround_ :: ()
maxConnections :: Value Integer
haddock_workaround_ :: ()
maxConnections :: Value Integer
..}