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