{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.GameLift.Types.GameServerHealthCheck
( GameServerHealthCheck
( ..,
GameServerHealthCheck_HEALTHY
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype GameServerHealthCheck = GameServerHealthCheck'
{ GameServerHealthCheck -> Text
fromGameServerHealthCheck ::
Core.Text
}
deriving stock
( Int -> GameServerHealthCheck -> ShowS
[GameServerHealthCheck] -> ShowS
GameServerHealthCheck -> String
(Int -> GameServerHealthCheck -> ShowS)
-> (GameServerHealthCheck -> String)
-> ([GameServerHealthCheck] -> ShowS)
-> Show GameServerHealthCheck
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GameServerHealthCheck] -> ShowS
$cshowList :: [GameServerHealthCheck] -> ShowS
show :: GameServerHealthCheck -> String
$cshow :: GameServerHealthCheck -> String
showsPrec :: Int -> GameServerHealthCheck -> ShowS
$cshowsPrec :: Int -> GameServerHealthCheck -> ShowS
Prelude.Show,
ReadPrec [GameServerHealthCheck]
ReadPrec GameServerHealthCheck
Int -> ReadS GameServerHealthCheck
ReadS [GameServerHealthCheck]
(Int -> ReadS GameServerHealthCheck)
-> ReadS [GameServerHealthCheck]
-> ReadPrec GameServerHealthCheck
-> ReadPrec [GameServerHealthCheck]
-> Read GameServerHealthCheck
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GameServerHealthCheck]
$creadListPrec :: ReadPrec [GameServerHealthCheck]
readPrec :: ReadPrec GameServerHealthCheck
$creadPrec :: ReadPrec GameServerHealthCheck
readList :: ReadS [GameServerHealthCheck]
$creadList :: ReadS [GameServerHealthCheck]
readsPrec :: Int -> ReadS GameServerHealthCheck
$creadsPrec :: Int -> ReadS GameServerHealthCheck
Prelude.Read,
GameServerHealthCheck -> GameServerHealthCheck -> Bool
(GameServerHealthCheck -> GameServerHealthCheck -> Bool)
-> (GameServerHealthCheck -> GameServerHealthCheck -> Bool)
-> Eq GameServerHealthCheck
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GameServerHealthCheck -> GameServerHealthCheck -> Bool
$c/= :: GameServerHealthCheck -> GameServerHealthCheck -> Bool
== :: GameServerHealthCheck -> GameServerHealthCheck -> Bool
$c== :: GameServerHealthCheck -> GameServerHealthCheck -> Bool
Prelude.Eq,
Eq GameServerHealthCheck
Eq GameServerHealthCheck
-> (GameServerHealthCheck -> GameServerHealthCheck -> Ordering)
-> (GameServerHealthCheck -> GameServerHealthCheck -> Bool)
-> (GameServerHealthCheck -> GameServerHealthCheck -> Bool)
-> (GameServerHealthCheck -> GameServerHealthCheck -> Bool)
-> (GameServerHealthCheck -> GameServerHealthCheck -> Bool)
-> (GameServerHealthCheck
-> GameServerHealthCheck -> GameServerHealthCheck)
-> (GameServerHealthCheck
-> GameServerHealthCheck -> GameServerHealthCheck)
-> Ord GameServerHealthCheck
GameServerHealthCheck -> GameServerHealthCheck -> Bool
GameServerHealthCheck -> GameServerHealthCheck -> Ordering
GameServerHealthCheck
-> GameServerHealthCheck -> GameServerHealthCheck
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: GameServerHealthCheck
-> GameServerHealthCheck -> GameServerHealthCheck
$cmin :: GameServerHealthCheck
-> GameServerHealthCheck -> GameServerHealthCheck
max :: GameServerHealthCheck
-> GameServerHealthCheck -> GameServerHealthCheck
$cmax :: GameServerHealthCheck
-> GameServerHealthCheck -> GameServerHealthCheck
>= :: GameServerHealthCheck -> GameServerHealthCheck -> Bool
$c>= :: GameServerHealthCheck -> GameServerHealthCheck -> Bool
> :: GameServerHealthCheck -> GameServerHealthCheck -> Bool
$c> :: GameServerHealthCheck -> GameServerHealthCheck -> Bool
<= :: GameServerHealthCheck -> GameServerHealthCheck -> Bool
$c<= :: GameServerHealthCheck -> GameServerHealthCheck -> Bool
< :: GameServerHealthCheck -> GameServerHealthCheck -> Bool
$c< :: GameServerHealthCheck -> GameServerHealthCheck -> Bool
compare :: GameServerHealthCheck -> GameServerHealthCheck -> Ordering
$ccompare :: GameServerHealthCheck -> GameServerHealthCheck -> Ordering
$cp1Ord :: Eq GameServerHealthCheck
Prelude.Ord,
(forall x. GameServerHealthCheck -> Rep GameServerHealthCheck x)
-> (forall x. Rep GameServerHealthCheck x -> GameServerHealthCheck)
-> Generic GameServerHealthCheck
forall x. Rep GameServerHealthCheck x -> GameServerHealthCheck
forall x. GameServerHealthCheck -> Rep GameServerHealthCheck x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GameServerHealthCheck x -> GameServerHealthCheck
$cfrom :: forall x. GameServerHealthCheck -> Rep GameServerHealthCheck x
Prelude.Generic
)
deriving newtype
( Int -> GameServerHealthCheck -> Int
GameServerHealthCheck -> Int
(Int -> GameServerHealthCheck -> Int)
-> (GameServerHealthCheck -> Int) -> Hashable GameServerHealthCheck
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: GameServerHealthCheck -> Int
$chash :: GameServerHealthCheck -> Int
hashWithSalt :: Int -> GameServerHealthCheck -> Int
$chashWithSalt :: Int -> GameServerHealthCheck -> Int
Prelude.Hashable,
GameServerHealthCheck -> ()
(GameServerHealthCheck -> ()) -> NFData GameServerHealthCheck
forall a. (a -> ()) -> NFData a
rnf :: GameServerHealthCheck -> ()
$crnf :: GameServerHealthCheck -> ()
Prelude.NFData,
Text -> Either String GameServerHealthCheck
(Text -> Either String GameServerHealthCheck)
-> FromText GameServerHealthCheck
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String GameServerHealthCheck
$cfromText :: Text -> Either String GameServerHealthCheck
Core.FromText,
GameServerHealthCheck -> Text
(GameServerHealthCheck -> Text) -> ToText GameServerHealthCheck
forall a. (a -> Text) -> ToText a
toText :: GameServerHealthCheck -> Text
$ctoText :: GameServerHealthCheck -> Text
Core.ToText,
GameServerHealthCheck -> ByteString
(GameServerHealthCheck -> ByteString)
-> ToByteString GameServerHealthCheck
forall a. (a -> ByteString) -> ToByteString a
toBS :: GameServerHealthCheck -> ByteString
$ctoBS :: GameServerHealthCheck -> ByteString
Core.ToByteString,
GameServerHealthCheck -> ByteStringBuilder
(GameServerHealthCheck -> ByteStringBuilder)
-> ToLog GameServerHealthCheck
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: GameServerHealthCheck -> ByteStringBuilder
$cbuild :: GameServerHealthCheck -> ByteStringBuilder
Core.ToLog,
HeaderName -> GameServerHealthCheck -> [Header]
(HeaderName -> GameServerHealthCheck -> [Header])
-> ToHeader GameServerHealthCheck
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> GameServerHealthCheck -> [Header]
$ctoHeader :: HeaderName -> GameServerHealthCheck -> [Header]
Core.ToHeader,
GameServerHealthCheck -> QueryString
(GameServerHealthCheck -> QueryString)
-> ToQuery GameServerHealthCheck
forall a. (a -> QueryString) -> ToQuery a
toQuery :: GameServerHealthCheck -> QueryString
$ctoQuery :: GameServerHealthCheck -> QueryString
Core.ToQuery,
Value -> Parser [GameServerHealthCheck]
Value -> Parser GameServerHealthCheck
(Value -> Parser GameServerHealthCheck)
-> (Value -> Parser [GameServerHealthCheck])
-> FromJSON GameServerHealthCheck
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [GameServerHealthCheck]
$cparseJSONList :: Value -> Parser [GameServerHealthCheck]
parseJSON :: Value -> Parser GameServerHealthCheck
$cparseJSON :: Value -> Parser GameServerHealthCheck
Core.FromJSON,
FromJSONKeyFunction [GameServerHealthCheck]
FromJSONKeyFunction GameServerHealthCheck
FromJSONKeyFunction GameServerHealthCheck
-> FromJSONKeyFunction [GameServerHealthCheck]
-> FromJSONKey GameServerHealthCheck
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [GameServerHealthCheck]
$cfromJSONKeyList :: FromJSONKeyFunction [GameServerHealthCheck]
fromJSONKey :: FromJSONKeyFunction GameServerHealthCheck
$cfromJSONKey :: FromJSONKeyFunction GameServerHealthCheck
Core.FromJSONKey,
[GameServerHealthCheck] -> Encoding
[GameServerHealthCheck] -> Value
GameServerHealthCheck -> Encoding
GameServerHealthCheck -> Value
(GameServerHealthCheck -> Value)
-> (GameServerHealthCheck -> Encoding)
-> ([GameServerHealthCheck] -> Value)
-> ([GameServerHealthCheck] -> Encoding)
-> ToJSON GameServerHealthCheck
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [GameServerHealthCheck] -> Encoding
$ctoEncodingList :: [GameServerHealthCheck] -> Encoding
toJSONList :: [GameServerHealthCheck] -> Value
$ctoJSONList :: [GameServerHealthCheck] -> Value
toEncoding :: GameServerHealthCheck -> Encoding
$ctoEncoding :: GameServerHealthCheck -> Encoding
toJSON :: GameServerHealthCheck -> Value
$ctoJSON :: GameServerHealthCheck -> Value
Core.ToJSON,
ToJSONKeyFunction [GameServerHealthCheck]
ToJSONKeyFunction GameServerHealthCheck
ToJSONKeyFunction GameServerHealthCheck
-> ToJSONKeyFunction [GameServerHealthCheck]
-> ToJSONKey GameServerHealthCheck
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [GameServerHealthCheck]
$ctoJSONKeyList :: ToJSONKeyFunction [GameServerHealthCheck]
toJSONKey :: ToJSONKeyFunction GameServerHealthCheck
$ctoJSONKey :: ToJSONKeyFunction GameServerHealthCheck
Core.ToJSONKey,
[Node] -> Either String GameServerHealthCheck
([Node] -> Either String GameServerHealthCheck)
-> FromXML GameServerHealthCheck
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String GameServerHealthCheck
$cparseXML :: [Node] -> Either String GameServerHealthCheck
Core.FromXML,
GameServerHealthCheck -> XML
(GameServerHealthCheck -> XML) -> ToXML GameServerHealthCheck
forall a. (a -> XML) -> ToXML a
toXML :: GameServerHealthCheck -> XML
$ctoXML :: GameServerHealthCheck -> XML
Core.ToXML
)
pattern GameServerHealthCheck_HEALTHY :: GameServerHealthCheck
pattern $bGameServerHealthCheck_HEALTHY :: GameServerHealthCheck
$mGameServerHealthCheck_HEALTHY :: forall r.
GameServerHealthCheck -> (Void# -> r) -> (Void# -> r) -> r
GameServerHealthCheck_HEALTHY = GameServerHealthCheck' "HEALTHY"
{-# COMPLETE
GameServerHealthCheck_HEALTHY,
GameServerHealthCheck'
#-}