{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Lightsail.Types.LoadBalancerMetricName
( LoadBalancerMetricName
( ..,
LoadBalancerMetricName_ClientTLSNegotiationErrorCount,
LoadBalancerMetricName_HTTPCode_Instance_2XX_Count,
LoadBalancerMetricName_HTTPCode_Instance_3XX_Count,
LoadBalancerMetricName_HTTPCode_Instance_4XX_Count,
LoadBalancerMetricName_HTTPCode_Instance_5XX_Count,
LoadBalancerMetricName_HTTPCode_LB_4XX_Count,
LoadBalancerMetricName_HTTPCode_LB_5XX_Count,
LoadBalancerMetricName_HealthyHostCount,
LoadBalancerMetricName_InstanceResponseTime,
LoadBalancerMetricName_RejectedConnectionCount,
LoadBalancerMetricName_RequestCount,
LoadBalancerMetricName_UnhealthyHostCount
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype LoadBalancerMetricName = LoadBalancerMetricName'
{ LoadBalancerMetricName -> Text
fromLoadBalancerMetricName ::
Core.Text
}
deriving stock
( Int -> LoadBalancerMetricName -> ShowS
[LoadBalancerMetricName] -> ShowS
LoadBalancerMetricName -> String
(Int -> LoadBalancerMetricName -> ShowS)
-> (LoadBalancerMetricName -> String)
-> ([LoadBalancerMetricName] -> ShowS)
-> Show LoadBalancerMetricName
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LoadBalancerMetricName] -> ShowS
$cshowList :: [LoadBalancerMetricName] -> ShowS
show :: LoadBalancerMetricName -> String
$cshow :: LoadBalancerMetricName -> String
showsPrec :: Int -> LoadBalancerMetricName -> ShowS
$cshowsPrec :: Int -> LoadBalancerMetricName -> ShowS
Prelude.Show,
ReadPrec [LoadBalancerMetricName]
ReadPrec LoadBalancerMetricName
Int -> ReadS LoadBalancerMetricName
ReadS [LoadBalancerMetricName]
(Int -> ReadS LoadBalancerMetricName)
-> ReadS [LoadBalancerMetricName]
-> ReadPrec LoadBalancerMetricName
-> ReadPrec [LoadBalancerMetricName]
-> Read LoadBalancerMetricName
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [LoadBalancerMetricName]
$creadListPrec :: ReadPrec [LoadBalancerMetricName]
readPrec :: ReadPrec LoadBalancerMetricName
$creadPrec :: ReadPrec LoadBalancerMetricName
readList :: ReadS [LoadBalancerMetricName]
$creadList :: ReadS [LoadBalancerMetricName]
readsPrec :: Int -> ReadS LoadBalancerMetricName
$creadsPrec :: Int -> ReadS LoadBalancerMetricName
Prelude.Read,
LoadBalancerMetricName -> LoadBalancerMetricName -> Bool
(LoadBalancerMetricName -> LoadBalancerMetricName -> Bool)
-> (LoadBalancerMetricName -> LoadBalancerMetricName -> Bool)
-> Eq LoadBalancerMetricName
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LoadBalancerMetricName -> LoadBalancerMetricName -> Bool
$c/= :: LoadBalancerMetricName -> LoadBalancerMetricName -> Bool
== :: LoadBalancerMetricName -> LoadBalancerMetricName -> Bool
$c== :: LoadBalancerMetricName -> LoadBalancerMetricName -> Bool
Prelude.Eq,
Eq LoadBalancerMetricName
Eq LoadBalancerMetricName
-> (LoadBalancerMetricName -> LoadBalancerMetricName -> Ordering)
-> (LoadBalancerMetricName -> LoadBalancerMetricName -> Bool)
-> (LoadBalancerMetricName -> LoadBalancerMetricName -> Bool)
-> (LoadBalancerMetricName -> LoadBalancerMetricName -> Bool)
-> (LoadBalancerMetricName -> LoadBalancerMetricName -> Bool)
-> (LoadBalancerMetricName
-> LoadBalancerMetricName -> LoadBalancerMetricName)
-> (LoadBalancerMetricName
-> LoadBalancerMetricName -> LoadBalancerMetricName)
-> Ord LoadBalancerMetricName
LoadBalancerMetricName -> LoadBalancerMetricName -> Bool
LoadBalancerMetricName -> LoadBalancerMetricName -> Ordering
LoadBalancerMetricName
-> LoadBalancerMetricName -> LoadBalancerMetricName
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 :: LoadBalancerMetricName
-> LoadBalancerMetricName -> LoadBalancerMetricName
$cmin :: LoadBalancerMetricName
-> LoadBalancerMetricName -> LoadBalancerMetricName
max :: LoadBalancerMetricName
-> LoadBalancerMetricName -> LoadBalancerMetricName
$cmax :: LoadBalancerMetricName
-> LoadBalancerMetricName -> LoadBalancerMetricName
>= :: LoadBalancerMetricName -> LoadBalancerMetricName -> Bool
$c>= :: LoadBalancerMetricName -> LoadBalancerMetricName -> Bool
> :: LoadBalancerMetricName -> LoadBalancerMetricName -> Bool
$c> :: LoadBalancerMetricName -> LoadBalancerMetricName -> Bool
<= :: LoadBalancerMetricName -> LoadBalancerMetricName -> Bool
$c<= :: LoadBalancerMetricName -> LoadBalancerMetricName -> Bool
< :: LoadBalancerMetricName -> LoadBalancerMetricName -> Bool
$c< :: LoadBalancerMetricName -> LoadBalancerMetricName -> Bool
compare :: LoadBalancerMetricName -> LoadBalancerMetricName -> Ordering
$ccompare :: LoadBalancerMetricName -> LoadBalancerMetricName -> Ordering
$cp1Ord :: Eq LoadBalancerMetricName
Prelude.Ord,
(forall x. LoadBalancerMetricName -> Rep LoadBalancerMetricName x)
-> (forall x.
Rep LoadBalancerMetricName x -> LoadBalancerMetricName)
-> Generic LoadBalancerMetricName
forall x. Rep LoadBalancerMetricName x -> LoadBalancerMetricName
forall x. LoadBalancerMetricName -> Rep LoadBalancerMetricName x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep LoadBalancerMetricName x -> LoadBalancerMetricName
$cfrom :: forall x. LoadBalancerMetricName -> Rep LoadBalancerMetricName x
Prelude.Generic
)
deriving newtype
( Int -> LoadBalancerMetricName -> Int
LoadBalancerMetricName -> Int
(Int -> LoadBalancerMetricName -> Int)
-> (LoadBalancerMetricName -> Int)
-> Hashable LoadBalancerMetricName
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: LoadBalancerMetricName -> Int
$chash :: LoadBalancerMetricName -> Int
hashWithSalt :: Int -> LoadBalancerMetricName -> Int
$chashWithSalt :: Int -> LoadBalancerMetricName -> Int
Prelude.Hashable,
LoadBalancerMetricName -> ()
(LoadBalancerMetricName -> ()) -> NFData LoadBalancerMetricName
forall a. (a -> ()) -> NFData a
rnf :: LoadBalancerMetricName -> ()
$crnf :: LoadBalancerMetricName -> ()
Prelude.NFData,
Text -> Either String LoadBalancerMetricName
(Text -> Either String LoadBalancerMetricName)
-> FromText LoadBalancerMetricName
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String LoadBalancerMetricName
$cfromText :: Text -> Either String LoadBalancerMetricName
Core.FromText,
LoadBalancerMetricName -> Text
(LoadBalancerMetricName -> Text) -> ToText LoadBalancerMetricName
forall a. (a -> Text) -> ToText a
toText :: LoadBalancerMetricName -> Text
$ctoText :: LoadBalancerMetricName -> Text
Core.ToText,
LoadBalancerMetricName -> ByteString
(LoadBalancerMetricName -> ByteString)
-> ToByteString LoadBalancerMetricName
forall a. (a -> ByteString) -> ToByteString a
toBS :: LoadBalancerMetricName -> ByteString
$ctoBS :: LoadBalancerMetricName -> ByteString
Core.ToByteString,
LoadBalancerMetricName -> ByteStringBuilder
(LoadBalancerMetricName -> ByteStringBuilder)
-> ToLog LoadBalancerMetricName
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: LoadBalancerMetricName -> ByteStringBuilder
$cbuild :: LoadBalancerMetricName -> ByteStringBuilder
Core.ToLog,
HeaderName -> LoadBalancerMetricName -> [Header]
(HeaderName -> LoadBalancerMetricName -> [Header])
-> ToHeader LoadBalancerMetricName
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> LoadBalancerMetricName -> [Header]
$ctoHeader :: HeaderName -> LoadBalancerMetricName -> [Header]
Core.ToHeader,
LoadBalancerMetricName -> QueryString
(LoadBalancerMetricName -> QueryString)
-> ToQuery LoadBalancerMetricName
forall a. (a -> QueryString) -> ToQuery a
toQuery :: LoadBalancerMetricName -> QueryString
$ctoQuery :: LoadBalancerMetricName -> QueryString
Core.ToQuery,
Value -> Parser [LoadBalancerMetricName]
Value -> Parser LoadBalancerMetricName
(Value -> Parser LoadBalancerMetricName)
-> (Value -> Parser [LoadBalancerMetricName])
-> FromJSON LoadBalancerMetricName
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [LoadBalancerMetricName]
$cparseJSONList :: Value -> Parser [LoadBalancerMetricName]
parseJSON :: Value -> Parser LoadBalancerMetricName
$cparseJSON :: Value -> Parser LoadBalancerMetricName
Core.FromJSON,
FromJSONKeyFunction [LoadBalancerMetricName]
FromJSONKeyFunction LoadBalancerMetricName
FromJSONKeyFunction LoadBalancerMetricName
-> FromJSONKeyFunction [LoadBalancerMetricName]
-> FromJSONKey LoadBalancerMetricName
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [LoadBalancerMetricName]
$cfromJSONKeyList :: FromJSONKeyFunction [LoadBalancerMetricName]
fromJSONKey :: FromJSONKeyFunction LoadBalancerMetricName
$cfromJSONKey :: FromJSONKeyFunction LoadBalancerMetricName
Core.FromJSONKey,
[LoadBalancerMetricName] -> Encoding
[LoadBalancerMetricName] -> Value
LoadBalancerMetricName -> Encoding
LoadBalancerMetricName -> Value
(LoadBalancerMetricName -> Value)
-> (LoadBalancerMetricName -> Encoding)
-> ([LoadBalancerMetricName] -> Value)
-> ([LoadBalancerMetricName] -> Encoding)
-> ToJSON LoadBalancerMetricName
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [LoadBalancerMetricName] -> Encoding
$ctoEncodingList :: [LoadBalancerMetricName] -> Encoding
toJSONList :: [LoadBalancerMetricName] -> Value
$ctoJSONList :: [LoadBalancerMetricName] -> Value
toEncoding :: LoadBalancerMetricName -> Encoding
$ctoEncoding :: LoadBalancerMetricName -> Encoding
toJSON :: LoadBalancerMetricName -> Value
$ctoJSON :: LoadBalancerMetricName -> Value
Core.ToJSON,
ToJSONKeyFunction [LoadBalancerMetricName]
ToJSONKeyFunction LoadBalancerMetricName
ToJSONKeyFunction LoadBalancerMetricName
-> ToJSONKeyFunction [LoadBalancerMetricName]
-> ToJSONKey LoadBalancerMetricName
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [LoadBalancerMetricName]
$ctoJSONKeyList :: ToJSONKeyFunction [LoadBalancerMetricName]
toJSONKey :: ToJSONKeyFunction LoadBalancerMetricName
$ctoJSONKey :: ToJSONKeyFunction LoadBalancerMetricName
Core.ToJSONKey,
[Node] -> Either String LoadBalancerMetricName
([Node] -> Either String LoadBalancerMetricName)
-> FromXML LoadBalancerMetricName
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String LoadBalancerMetricName
$cparseXML :: [Node] -> Either String LoadBalancerMetricName
Core.FromXML,
LoadBalancerMetricName -> XML
(LoadBalancerMetricName -> XML) -> ToXML LoadBalancerMetricName
forall a. (a -> XML) -> ToXML a
toXML :: LoadBalancerMetricName -> XML
$ctoXML :: LoadBalancerMetricName -> XML
Core.ToXML
)
pattern LoadBalancerMetricName_ClientTLSNegotiationErrorCount :: LoadBalancerMetricName
pattern $bLoadBalancerMetricName_ClientTLSNegotiationErrorCount :: LoadBalancerMetricName
$mLoadBalancerMetricName_ClientTLSNegotiationErrorCount :: forall r.
LoadBalancerMetricName -> (Void# -> r) -> (Void# -> r) -> r
LoadBalancerMetricName_ClientTLSNegotiationErrorCount = LoadBalancerMetricName' "ClientTLSNegotiationErrorCount"
pattern LoadBalancerMetricName_HTTPCode_Instance_2XX_Count :: LoadBalancerMetricName
pattern $bLoadBalancerMetricName_HTTPCode_Instance_2XX_Count :: LoadBalancerMetricName
$mLoadBalancerMetricName_HTTPCode_Instance_2XX_Count :: forall r.
LoadBalancerMetricName -> (Void# -> r) -> (Void# -> r) -> r
LoadBalancerMetricName_HTTPCode_Instance_2XX_Count = LoadBalancerMetricName' "HTTPCode_Instance_2XX_Count"
pattern LoadBalancerMetricName_HTTPCode_Instance_3XX_Count :: LoadBalancerMetricName
pattern $bLoadBalancerMetricName_HTTPCode_Instance_3XX_Count :: LoadBalancerMetricName
$mLoadBalancerMetricName_HTTPCode_Instance_3XX_Count :: forall r.
LoadBalancerMetricName -> (Void# -> r) -> (Void# -> r) -> r
LoadBalancerMetricName_HTTPCode_Instance_3XX_Count = LoadBalancerMetricName' "HTTPCode_Instance_3XX_Count"
pattern LoadBalancerMetricName_HTTPCode_Instance_4XX_Count :: LoadBalancerMetricName
pattern $bLoadBalancerMetricName_HTTPCode_Instance_4XX_Count :: LoadBalancerMetricName
$mLoadBalancerMetricName_HTTPCode_Instance_4XX_Count :: forall r.
LoadBalancerMetricName -> (Void# -> r) -> (Void# -> r) -> r
LoadBalancerMetricName_HTTPCode_Instance_4XX_Count = LoadBalancerMetricName' "HTTPCode_Instance_4XX_Count"
pattern LoadBalancerMetricName_HTTPCode_Instance_5XX_Count :: LoadBalancerMetricName
pattern $bLoadBalancerMetricName_HTTPCode_Instance_5XX_Count :: LoadBalancerMetricName
$mLoadBalancerMetricName_HTTPCode_Instance_5XX_Count :: forall r.
LoadBalancerMetricName -> (Void# -> r) -> (Void# -> r) -> r
LoadBalancerMetricName_HTTPCode_Instance_5XX_Count = LoadBalancerMetricName' "HTTPCode_Instance_5XX_Count"
pattern LoadBalancerMetricName_HTTPCode_LB_4XX_Count :: LoadBalancerMetricName
pattern $bLoadBalancerMetricName_HTTPCode_LB_4XX_Count :: LoadBalancerMetricName
$mLoadBalancerMetricName_HTTPCode_LB_4XX_Count :: forall r.
LoadBalancerMetricName -> (Void# -> r) -> (Void# -> r) -> r
LoadBalancerMetricName_HTTPCode_LB_4XX_Count = LoadBalancerMetricName' "HTTPCode_LB_4XX_Count"
pattern LoadBalancerMetricName_HTTPCode_LB_5XX_Count :: LoadBalancerMetricName
pattern $bLoadBalancerMetricName_HTTPCode_LB_5XX_Count :: LoadBalancerMetricName
$mLoadBalancerMetricName_HTTPCode_LB_5XX_Count :: forall r.
LoadBalancerMetricName -> (Void# -> r) -> (Void# -> r) -> r
LoadBalancerMetricName_HTTPCode_LB_5XX_Count = LoadBalancerMetricName' "HTTPCode_LB_5XX_Count"
pattern LoadBalancerMetricName_HealthyHostCount :: LoadBalancerMetricName
pattern $bLoadBalancerMetricName_HealthyHostCount :: LoadBalancerMetricName
$mLoadBalancerMetricName_HealthyHostCount :: forall r.
LoadBalancerMetricName -> (Void# -> r) -> (Void# -> r) -> r
LoadBalancerMetricName_HealthyHostCount = LoadBalancerMetricName' "HealthyHostCount"
pattern LoadBalancerMetricName_InstanceResponseTime :: LoadBalancerMetricName
pattern $bLoadBalancerMetricName_InstanceResponseTime :: LoadBalancerMetricName
$mLoadBalancerMetricName_InstanceResponseTime :: forall r.
LoadBalancerMetricName -> (Void# -> r) -> (Void# -> r) -> r
LoadBalancerMetricName_InstanceResponseTime = LoadBalancerMetricName' "InstanceResponseTime"
pattern LoadBalancerMetricName_RejectedConnectionCount :: LoadBalancerMetricName
pattern $bLoadBalancerMetricName_RejectedConnectionCount :: LoadBalancerMetricName
$mLoadBalancerMetricName_RejectedConnectionCount :: forall r.
LoadBalancerMetricName -> (Void# -> r) -> (Void# -> r) -> r
LoadBalancerMetricName_RejectedConnectionCount = LoadBalancerMetricName' "RejectedConnectionCount"
pattern LoadBalancerMetricName_RequestCount :: LoadBalancerMetricName
pattern $bLoadBalancerMetricName_RequestCount :: LoadBalancerMetricName
$mLoadBalancerMetricName_RequestCount :: forall r.
LoadBalancerMetricName -> (Void# -> r) -> (Void# -> r) -> r
LoadBalancerMetricName_RequestCount = LoadBalancerMetricName' "RequestCount"
pattern LoadBalancerMetricName_UnhealthyHostCount :: LoadBalancerMetricName
pattern $bLoadBalancerMetricName_UnhealthyHostCount :: LoadBalancerMetricName
$mLoadBalancerMetricName_UnhealthyHostCount :: forall r.
LoadBalancerMetricName -> (Void# -> r) -> (Void# -> r) -> r
LoadBalancerMetricName_UnhealthyHostCount = LoadBalancerMetricName' "UnhealthyHostCount"
{-# COMPLETE
LoadBalancerMetricName_ClientTLSNegotiationErrorCount,
LoadBalancerMetricName_HTTPCode_Instance_2XX_Count,
LoadBalancerMetricName_HTTPCode_Instance_3XX_Count,
LoadBalancerMetricName_HTTPCode_Instance_4XX_Count,
LoadBalancerMetricName_HTTPCode_Instance_5XX_Count,
LoadBalancerMetricName_HTTPCode_LB_4XX_Count,
LoadBalancerMetricName_HTTPCode_LB_5XX_Count,
LoadBalancerMetricName_HealthyHostCount,
LoadBalancerMetricName_InstanceResponseTime,
LoadBalancerMetricName_RejectedConnectionCount,
LoadBalancerMetricName_RequestCount,
LoadBalancerMetricName_UnhealthyHostCount,
LoadBalancerMetricName'
#-}