module Stratosphere.AppMesh.VirtualGateway.VirtualGatewayHttp2ConnectionPoolProperty (
VirtualGatewayHttp2ConnectionPoolProperty(..),
mkVirtualGatewayHttp2ConnectionPoolProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data VirtualGatewayHttp2ConnectionPoolProperty
=
VirtualGatewayHttp2ConnectionPoolProperty {VirtualGatewayHttp2ConnectionPoolProperty -> ()
haddock_workaround_ :: (),
VirtualGatewayHttp2ConnectionPoolProperty -> Value Integer
maxRequests :: (Value Prelude.Integer)}
deriving stock (VirtualGatewayHttp2ConnectionPoolProperty
-> VirtualGatewayHttp2ConnectionPoolProperty -> Bool
(VirtualGatewayHttp2ConnectionPoolProperty
-> VirtualGatewayHttp2ConnectionPoolProperty -> Bool)
-> (VirtualGatewayHttp2ConnectionPoolProperty
-> VirtualGatewayHttp2ConnectionPoolProperty -> Bool)
-> Eq VirtualGatewayHttp2ConnectionPoolProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VirtualGatewayHttp2ConnectionPoolProperty
-> VirtualGatewayHttp2ConnectionPoolProperty -> Bool
== :: VirtualGatewayHttp2ConnectionPoolProperty
-> VirtualGatewayHttp2ConnectionPoolProperty -> Bool
$c/= :: VirtualGatewayHttp2ConnectionPoolProperty
-> VirtualGatewayHttp2ConnectionPoolProperty -> Bool
/= :: VirtualGatewayHttp2ConnectionPoolProperty
-> VirtualGatewayHttp2ConnectionPoolProperty -> Bool
Prelude.Eq, Int -> VirtualGatewayHttp2ConnectionPoolProperty -> ShowS
[VirtualGatewayHttp2ConnectionPoolProperty] -> ShowS
VirtualGatewayHttp2ConnectionPoolProperty -> String
(Int -> VirtualGatewayHttp2ConnectionPoolProperty -> ShowS)
-> (VirtualGatewayHttp2ConnectionPoolProperty -> String)
-> ([VirtualGatewayHttp2ConnectionPoolProperty] -> ShowS)
-> Show VirtualGatewayHttp2ConnectionPoolProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VirtualGatewayHttp2ConnectionPoolProperty -> ShowS
showsPrec :: Int -> VirtualGatewayHttp2ConnectionPoolProperty -> ShowS
$cshow :: VirtualGatewayHttp2ConnectionPoolProperty -> String
show :: VirtualGatewayHttp2ConnectionPoolProperty -> String
$cshowList :: [VirtualGatewayHttp2ConnectionPoolProperty] -> ShowS
showList :: [VirtualGatewayHttp2ConnectionPoolProperty] -> ShowS
Prelude.Show)
mkVirtualGatewayHttp2ConnectionPoolProperty ::
Value Prelude.Integer -> VirtualGatewayHttp2ConnectionPoolProperty
mkVirtualGatewayHttp2ConnectionPoolProperty :: Value Integer -> VirtualGatewayHttp2ConnectionPoolProperty
mkVirtualGatewayHttp2ConnectionPoolProperty Value Integer
maxRequests
= VirtualGatewayHttp2ConnectionPoolProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), maxRequests :: Value Integer
maxRequests = Value Integer
maxRequests}
instance ToResourceProperties VirtualGatewayHttp2ConnectionPoolProperty where
toResourceProperties :: VirtualGatewayHttp2ConnectionPoolProperty -> ResourceProperties
toResourceProperties VirtualGatewayHttp2ConnectionPoolProperty {()
Value Integer
haddock_workaround_ :: VirtualGatewayHttp2ConnectionPoolProperty -> ()
maxRequests :: VirtualGatewayHttp2ConnectionPoolProperty -> Value Integer
haddock_workaround_ :: ()
maxRequests :: Value Integer
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AppMesh::VirtualGateway.VirtualGatewayHttp2ConnectionPool",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"MaxRequests" 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
maxRequests]}
instance JSON.ToJSON VirtualGatewayHttp2ConnectionPoolProperty where
toJSON :: VirtualGatewayHttp2ConnectionPoolProperty -> Value
toJSON VirtualGatewayHttp2ConnectionPoolProperty {()
Value Integer
haddock_workaround_ :: VirtualGatewayHttp2ConnectionPoolProperty -> ()
maxRequests :: VirtualGatewayHttp2ConnectionPoolProperty -> Value Integer
haddock_workaround_ :: ()
maxRequests :: Value Integer
..}
= [(Key, Value)] -> Value
JSON.object [Key
"MaxRequests" 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
maxRequests]
instance Property "MaxRequests" VirtualGatewayHttp2ConnectionPoolProperty where
type PropertyType "MaxRequests" VirtualGatewayHttp2ConnectionPoolProperty = Value Prelude.Integer
set :: PropertyType
"MaxRequests" VirtualGatewayHttp2ConnectionPoolProperty
-> VirtualGatewayHttp2ConnectionPoolProperty
-> VirtualGatewayHttp2ConnectionPoolProperty
set PropertyType
"MaxRequests" VirtualGatewayHttp2ConnectionPoolProperty
newValue VirtualGatewayHttp2ConnectionPoolProperty {()
Value Integer
haddock_workaround_ :: VirtualGatewayHttp2ConnectionPoolProperty -> ()
maxRequests :: VirtualGatewayHttp2ConnectionPoolProperty -> Value Integer
haddock_workaround_ :: ()
maxRequests :: Value Integer
..}
= VirtualGatewayHttp2ConnectionPoolProperty
{maxRequests :: Value Integer
maxRequests = PropertyType
"MaxRequests" VirtualGatewayHttp2ConnectionPoolProperty
Value Integer
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}