module Stratosphere.AppMesh.VirtualGateway.VirtualGatewayGrpcConnectionPoolProperty (
        VirtualGatewayGrpcConnectionPoolProperty(..),
        mkVirtualGatewayGrpcConnectionPoolProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data VirtualGatewayGrpcConnectionPoolProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewaygrpcconnectionpool.html>
    VirtualGatewayGrpcConnectionPoolProperty {VirtualGatewayGrpcConnectionPoolProperty -> ()
haddock_workaround_ :: (),
                                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewaygrpcconnectionpool.html#cfn-appmesh-virtualgateway-virtualgatewaygrpcconnectionpool-maxrequests>
                                              VirtualGatewayGrpcConnectionPoolProperty -> Value Integer
maxRequests :: (Value Prelude.Integer)}
  deriving stock (VirtualGatewayGrpcConnectionPoolProperty
-> VirtualGatewayGrpcConnectionPoolProperty -> Bool
(VirtualGatewayGrpcConnectionPoolProperty
 -> VirtualGatewayGrpcConnectionPoolProperty -> Bool)
-> (VirtualGatewayGrpcConnectionPoolProperty
    -> VirtualGatewayGrpcConnectionPoolProperty -> Bool)
-> Eq VirtualGatewayGrpcConnectionPoolProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VirtualGatewayGrpcConnectionPoolProperty
-> VirtualGatewayGrpcConnectionPoolProperty -> Bool
== :: VirtualGatewayGrpcConnectionPoolProperty
-> VirtualGatewayGrpcConnectionPoolProperty -> Bool
$c/= :: VirtualGatewayGrpcConnectionPoolProperty
-> VirtualGatewayGrpcConnectionPoolProperty -> Bool
/= :: VirtualGatewayGrpcConnectionPoolProperty
-> VirtualGatewayGrpcConnectionPoolProperty -> Bool
Prelude.Eq, Int -> VirtualGatewayGrpcConnectionPoolProperty -> ShowS
[VirtualGatewayGrpcConnectionPoolProperty] -> ShowS
VirtualGatewayGrpcConnectionPoolProperty -> String
(Int -> VirtualGatewayGrpcConnectionPoolProperty -> ShowS)
-> (VirtualGatewayGrpcConnectionPoolProperty -> String)
-> ([VirtualGatewayGrpcConnectionPoolProperty] -> ShowS)
-> Show VirtualGatewayGrpcConnectionPoolProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VirtualGatewayGrpcConnectionPoolProperty -> ShowS
showsPrec :: Int -> VirtualGatewayGrpcConnectionPoolProperty -> ShowS
$cshow :: VirtualGatewayGrpcConnectionPoolProperty -> String
show :: VirtualGatewayGrpcConnectionPoolProperty -> String
$cshowList :: [VirtualGatewayGrpcConnectionPoolProperty] -> ShowS
showList :: [VirtualGatewayGrpcConnectionPoolProperty] -> ShowS
Prelude.Show)
mkVirtualGatewayGrpcConnectionPoolProperty ::
  Value Prelude.Integer -> VirtualGatewayGrpcConnectionPoolProperty
mkVirtualGatewayGrpcConnectionPoolProperty :: Value Integer -> VirtualGatewayGrpcConnectionPoolProperty
mkVirtualGatewayGrpcConnectionPoolProperty Value Integer
maxRequests
  = VirtualGatewayGrpcConnectionPoolProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), maxRequests :: Value Integer
maxRequests = Value Integer
maxRequests}
instance ToResourceProperties VirtualGatewayGrpcConnectionPoolProperty where
  toResourceProperties :: VirtualGatewayGrpcConnectionPoolProperty -> ResourceProperties
toResourceProperties VirtualGatewayGrpcConnectionPoolProperty {()
Value Integer
haddock_workaround_ :: VirtualGatewayGrpcConnectionPoolProperty -> ()
maxRequests :: VirtualGatewayGrpcConnectionPoolProperty -> Value Integer
haddock_workaround_ :: ()
maxRequests :: Value Integer
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AppMesh::VirtualGateway.VirtualGatewayGrpcConnectionPool",
         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 VirtualGatewayGrpcConnectionPoolProperty where
  toJSON :: VirtualGatewayGrpcConnectionPoolProperty -> Value
toJSON VirtualGatewayGrpcConnectionPoolProperty {()
Value Integer
haddock_workaround_ :: VirtualGatewayGrpcConnectionPoolProperty -> ()
maxRequests :: VirtualGatewayGrpcConnectionPoolProperty -> 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" VirtualGatewayGrpcConnectionPoolProperty where
  type PropertyType "MaxRequests" VirtualGatewayGrpcConnectionPoolProperty = Value Prelude.Integer
  set :: PropertyType "MaxRequests" VirtualGatewayGrpcConnectionPoolProperty
-> VirtualGatewayGrpcConnectionPoolProperty
-> VirtualGatewayGrpcConnectionPoolProperty
set PropertyType "MaxRequests" VirtualGatewayGrpcConnectionPoolProperty
newValue VirtualGatewayGrpcConnectionPoolProperty {()
Value Integer
haddock_workaround_ :: VirtualGatewayGrpcConnectionPoolProperty -> ()
maxRequests :: VirtualGatewayGrpcConnectionPoolProperty -> Value Integer
haddock_workaround_ :: ()
maxRequests :: Value Integer
..}
    = VirtualGatewayGrpcConnectionPoolProperty
        {maxRequests :: Value Integer
maxRequests = PropertyType "MaxRequests" VirtualGatewayGrpcConnectionPoolProperty
Value Integer
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}