module Stratosphere.AppMesh.VirtualNode.VirtualNodeTcpConnectionPoolProperty (
        VirtualNodeTcpConnectionPoolProperty(..),
        mkVirtualNodeTcpConnectionPoolProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data VirtualNodeTcpConnectionPoolProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualnodetcpconnectionpool.html>
    VirtualNodeTcpConnectionPoolProperty {VirtualNodeTcpConnectionPoolProperty -> ()
haddock_workaround_ :: (),
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualnodetcpconnectionpool.html#cfn-appmesh-virtualnode-virtualnodetcpconnectionpool-maxconnections>
                                          VirtualNodeTcpConnectionPoolProperty -> Value Integer
maxConnections :: (Value Prelude.Integer)}
  deriving stock (VirtualNodeTcpConnectionPoolProperty
-> VirtualNodeTcpConnectionPoolProperty -> Bool
(VirtualNodeTcpConnectionPoolProperty
 -> VirtualNodeTcpConnectionPoolProperty -> Bool)
-> (VirtualNodeTcpConnectionPoolProperty
    -> VirtualNodeTcpConnectionPoolProperty -> Bool)
-> Eq VirtualNodeTcpConnectionPoolProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VirtualNodeTcpConnectionPoolProperty
-> VirtualNodeTcpConnectionPoolProperty -> Bool
== :: VirtualNodeTcpConnectionPoolProperty
-> VirtualNodeTcpConnectionPoolProperty -> Bool
$c/= :: VirtualNodeTcpConnectionPoolProperty
-> VirtualNodeTcpConnectionPoolProperty -> Bool
/= :: VirtualNodeTcpConnectionPoolProperty
-> VirtualNodeTcpConnectionPoolProperty -> Bool
Prelude.Eq, Int -> VirtualNodeTcpConnectionPoolProperty -> ShowS
[VirtualNodeTcpConnectionPoolProperty] -> ShowS
VirtualNodeTcpConnectionPoolProperty -> String
(Int -> VirtualNodeTcpConnectionPoolProperty -> ShowS)
-> (VirtualNodeTcpConnectionPoolProperty -> String)
-> ([VirtualNodeTcpConnectionPoolProperty] -> ShowS)
-> Show VirtualNodeTcpConnectionPoolProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VirtualNodeTcpConnectionPoolProperty -> ShowS
showsPrec :: Int -> VirtualNodeTcpConnectionPoolProperty -> ShowS
$cshow :: VirtualNodeTcpConnectionPoolProperty -> String
show :: VirtualNodeTcpConnectionPoolProperty -> String
$cshowList :: [VirtualNodeTcpConnectionPoolProperty] -> ShowS
showList :: [VirtualNodeTcpConnectionPoolProperty] -> ShowS
Prelude.Show)
mkVirtualNodeTcpConnectionPoolProperty ::
  Value Prelude.Integer -> VirtualNodeTcpConnectionPoolProperty
mkVirtualNodeTcpConnectionPoolProperty :: Value Integer -> VirtualNodeTcpConnectionPoolProperty
mkVirtualNodeTcpConnectionPoolProperty Value Integer
maxConnections
  = VirtualNodeTcpConnectionPoolProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), maxConnections :: Value Integer
maxConnections = Value Integer
maxConnections}
instance ToResourceProperties VirtualNodeTcpConnectionPoolProperty where
  toResourceProperties :: VirtualNodeTcpConnectionPoolProperty -> ResourceProperties
toResourceProperties VirtualNodeTcpConnectionPoolProperty {()
Value Integer
haddock_workaround_ :: VirtualNodeTcpConnectionPoolProperty -> ()
maxConnections :: VirtualNodeTcpConnectionPoolProperty -> Value Integer
haddock_workaround_ :: ()
maxConnections :: Value Integer
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AppMesh::VirtualNode.VirtualNodeTcpConnectionPool",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [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]}
instance JSON.ToJSON VirtualNodeTcpConnectionPoolProperty where
  toJSON :: VirtualNodeTcpConnectionPoolProperty -> Value
toJSON VirtualNodeTcpConnectionPoolProperty {()
Value Integer
haddock_workaround_ :: VirtualNodeTcpConnectionPoolProperty -> ()
maxConnections :: VirtualNodeTcpConnectionPoolProperty -> Value Integer
haddock_workaround_ :: ()
maxConnections :: Value Integer
..}
    = [(Key, Value)] -> Value
JSON.object [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]
instance Property "MaxConnections" VirtualNodeTcpConnectionPoolProperty where
  type PropertyType "MaxConnections" VirtualNodeTcpConnectionPoolProperty = Value Prelude.Integer
  set :: PropertyType "MaxConnections" VirtualNodeTcpConnectionPoolProperty
-> VirtualNodeTcpConnectionPoolProperty
-> VirtualNodeTcpConnectionPoolProperty
set PropertyType "MaxConnections" VirtualNodeTcpConnectionPoolProperty
newValue VirtualNodeTcpConnectionPoolProperty {()
Value Integer
haddock_workaround_ :: VirtualNodeTcpConnectionPoolProperty -> ()
maxConnections :: VirtualNodeTcpConnectionPoolProperty -> Value Integer
haddock_workaround_ :: ()
maxConnections :: Value Integer
..}
    = VirtualNodeTcpConnectionPoolProperty
        {maxConnections :: Value Integer
maxConnections = PropertyType "MaxConnections" VirtualNodeTcpConnectionPoolProperty
Value Integer
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}