{-# 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.InstanceMetricName
( InstanceMetricName
( ..,
InstanceMetricName_BurstCapacityPercentage,
InstanceMetricName_BurstCapacityTime,
InstanceMetricName_CPUUtilization,
InstanceMetricName_NetworkIn,
InstanceMetricName_NetworkOut,
InstanceMetricName_StatusCheckFailed,
InstanceMetricName_StatusCheckFailed_Instance,
InstanceMetricName_StatusCheckFailed_System
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype InstanceMetricName = InstanceMetricName'
{ InstanceMetricName -> Text
fromInstanceMetricName ::
Core.Text
}
deriving stock
( Int -> InstanceMetricName -> ShowS
[InstanceMetricName] -> ShowS
InstanceMetricName -> String
(Int -> InstanceMetricName -> ShowS)
-> (InstanceMetricName -> String)
-> ([InstanceMetricName] -> ShowS)
-> Show InstanceMetricName
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [InstanceMetricName] -> ShowS
$cshowList :: [InstanceMetricName] -> ShowS
show :: InstanceMetricName -> String
$cshow :: InstanceMetricName -> String
showsPrec :: Int -> InstanceMetricName -> ShowS
$cshowsPrec :: Int -> InstanceMetricName -> ShowS
Prelude.Show,
ReadPrec [InstanceMetricName]
ReadPrec InstanceMetricName
Int -> ReadS InstanceMetricName
ReadS [InstanceMetricName]
(Int -> ReadS InstanceMetricName)
-> ReadS [InstanceMetricName]
-> ReadPrec InstanceMetricName
-> ReadPrec [InstanceMetricName]
-> Read InstanceMetricName
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [InstanceMetricName]
$creadListPrec :: ReadPrec [InstanceMetricName]
readPrec :: ReadPrec InstanceMetricName
$creadPrec :: ReadPrec InstanceMetricName
readList :: ReadS [InstanceMetricName]
$creadList :: ReadS [InstanceMetricName]
readsPrec :: Int -> ReadS InstanceMetricName
$creadsPrec :: Int -> ReadS InstanceMetricName
Prelude.Read,
InstanceMetricName -> InstanceMetricName -> Bool
(InstanceMetricName -> InstanceMetricName -> Bool)
-> (InstanceMetricName -> InstanceMetricName -> Bool)
-> Eq InstanceMetricName
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: InstanceMetricName -> InstanceMetricName -> Bool
$c/= :: InstanceMetricName -> InstanceMetricName -> Bool
== :: InstanceMetricName -> InstanceMetricName -> Bool
$c== :: InstanceMetricName -> InstanceMetricName -> Bool
Prelude.Eq,
Eq InstanceMetricName
Eq InstanceMetricName
-> (InstanceMetricName -> InstanceMetricName -> Ordering)
-> (InstanceMetricName -> InstanceMetricName -> Bool)
-> (InstanceMetricName -> InstanceMetricName -> Bool)
-> (InstanceMetricName -> InstanceMetricName -> Bool)
-> (InstanceMetricName -> InstanceMetricName -> Bool)
-> (InstanceMetricName -> InstanceMetricName -> InstanceMetricName)
-> (InstanceMetricName -> InstanceMetricName -> InstanceMetricName)
-> Ord InstanceMetricName
InstanceMetricName -> InstanceMetricName -> Bool
InstanceMetricName -> InstanceMetricName -> Ordering
InstanceMetricName -> InstanceMetricName -> InstanceMetricName
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 :: InstanceMetricName -> InstanceMetricName -> InstanceMetricName
$cmin :: InstanceMetricName -> InstanceMetricName -> InstanceMetricName
max :: InstanceMetricName -> InstanceMetricName -> InstanceMetricName
$cmax :: InstanceMetricName -> InstanceMetricName -> InstanceMetricName
>= :: InstanceMetricName -> InstanceMetricName -> Bool
$c>= :: InstanceMetricName -> InstanceMetricName -> Bool
> :: InstanceMetricName -> InstanceMetricName -> Bool
$c> :: InstanceMetricName -> InstanceMetricName -> Bool
<= :: InstanceMetricName -> InstanceMetricName -> Bool
$c<= :: InstanceMetricName -> InstanceMetricName -> Bool
< :: InstanceMetricName -> InstanceMetricName -> Bool
$c< :: InstanceMetricName -> InstanceMetricName -> Bool
compare :: InstanceMetricName -> InstanceMetricName -> Ordering
$ccompare :: InstanceMetricName -> InstanceMetricName -> Ordering
$cp1Ord :: Eq InstanceMetricName
Prelude.Ord,
(forall x. InstanceMetricName -> Rep InstanceMetricName x)
-> (forall x. Rep InstanceMetricName x -> InstanceMetricName)
-> Generic InstanceMetricName
forall x. Rep InstanceMetricName x -> InstanceMetricName
forall x. InstanceMetricName -> Rep InstanceMetricName x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep InstanceMetricName x -> InstanceMetricName
$cfrom :: forall x. InstanceMetricName -> Rep InstanceMetricName x
Prelude.Generic
)
deriving newtype
( Int -> InstanceMetricName -> Int
InstanceMetricName -> Int
(Int -> InstanceMetricName -> Int)
-> (InstanceMetricName -> Int) -> Hashable InstanceMetricName
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: InstanceMetricName -> Int
$chash :: InstanceMetricName -> Int
hashWithSalt :: Int -> InstanceMetricName -> Int
$chashWithSalt :: Int -> InstanceMetricName -> Int
Prelude.Hashable,
InstanceMetricName -> ()
(InstanceMetricName -> ()) -> NFData InstanceMetricName
forall a. (a -> ()) -> NFData a
rnf :: InstanceMetricName -> ()
$crnf :: InstanceMetricName -> ()
Prelude.NFData,
Text -> Either String InstanceMetricName
(Text -> Either String InstanceMetricName)
-> FromText InstanceMetricName
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String InstanceMetricName
$cfromText :: Text -> Either String InstanceMetricName
Core.FromText,
InstanceMetricName -> Text
(InstanceMetricName -> Text) -> ToText InstanceMetricName
forall a. (a -> Text) -> ToText a
toText :: InstanceMetricName -> Text
$ctoText :: InstanceMetricName -> Text
Core.ToText,
InstanceMetricName -> ByteString
(InstanceMetricName -> ByteString)
-> ToByteString InstanceMetricName
forall a. (a -> ByteString) -> ToByteString a
toBS :: InstanceMetricName -> ByteString
$ctoBS :: InstanceMetricName -> ByteString
Core.ToByteString,
InstanceMetricName -> ByteStringBuilder
(InstanceMetricName -> ByteStringBuilder)
-> ToLog InstanceMetricName
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: InstanceMetricName -> ByteStringBuilder
$cbuild :: InstanceMetricName -> ByteStringBuilder
Core.ToLog,
HeaderName -> InstanceMetricName -> [Header]
(HeaderName -> InstanceMetricName -> [Header])
-> ToHeader InstanceMetricName
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> InstanceMetricName -> [Header]
$ctoHeader :: HeaderName -> InstanceMetricName -> [Header]
Core.ToHeader,
InstanceMetricName -> QueryString
(InstanceMetricName -> QueryString) -> ToQuery InstanceMetricName
forall a. (a -> QueryString) -> ToQuery a
toQuery :: InstanceMetricName -> QueryString
$ctoQuery :: InstanceMetricName -> QueryString
Core.ToQuery,
Value -> Parser [InstanceMetricName]
Value -> Parser InstanceMetricName
(Value -> Parser InstanceMetricName)
-> (Value -> Parser [InstanceMetricName])
-> FromJSON InstanceMetricName
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [InstanceMetricName]
$cparseJSONList :: Value -> Parser [InstanceMetricName]
parseJSON :: Value -> Parser InstanceMetricName
$cparseJSON :: Value -> Parser InstanceMetricName
Core.FromJSON,
FromJSONKeyFunction [InstanceMetricName]
FromJSONKeyFunction InstanceMetricName
FromJSONKeyFunction InstanceMetricName
-> FromJSONKeyFunction [InstanceMetricName]
-> FromJSONKey InstanceMetricName
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [InstanceMetricName]
$cfromJSONKeyList :: FromJSONKeyFunction [InstanceMetricName]
fromJSONKey :: FromJSONKeyFunction InstanceMetricName
$cfromJSONKey :: FromJSONKeyFunction InstanceMetricName
Core.FromJSONKey,
[InstanceMetricName] -> Encoding
[InstanceMetricName] -> Value
InstanceMetricName -> Encoding
InstanceMetricName -> Value
(InstanceMetricName -> Value)
-> (InstanceMetricName -> Encoding)
-> ([InstanceMetricName] -> Value)
-> ([InstanceMetricName] -> Encoding)
-> ToJSON InstanceMetricName
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [InstanceMetricName] -> Encoding
$ctoEncodingList :: [InstanceMetricName] -> Encoding
toJSONList :: [InstanceMetricName] -> Value
$ctoJSONList :: [InstanceMetricName] -> Value
toEncoding :: InstanceMetricName -> Encoding
$ctoEncoding :: InstanceMetricName -> Encoding
toJSON :: InstanceMetricName -> Value
$ctoJSON :: InstanceMetricName -> Value
Core.ToJSON,
ToJSONKeyFunction [InstanceMetricName]
ToJSONKeyFunction InstanceMetricName
ToJSONKeyFunction InstanceMetricName
-> ToJSONKeyFunction [InstanceMetricName]
-> ToJSONKey InstanceMetricName
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [InstanceMetricName]
$ctoJSONKeyList :: ToJSONKeyFunction [InstanceMetricName]
toJSONKey :: ToJSONKeyFunction InstanceMetricName
$ctoJSONKey :: ToJSONKeyFunction InstanceMetricName
Core.ToJSONKey,
[Node] -> Either String InstanceMetricName
([Node] -> Either String InstanceMetricName)
-> FromXML InstanceMetricName
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String InstanceMetricName
$cparseXML :: [Node] -> Either String InstanceMetricName
Core.FromXML,
InstanceMetricName -> XML
(InstanceMetricName -> XML) -> ToXML InstanceMetricName
forall a. (a -> XML) -> ToXML a
toXML :: InstanceMetricName -> XML
$ctoXML :: InstanceMetricName -> XML
Core.ToXML
)
pattern InstanceMetricName_BurstCapacityPercentage :: InstanceMetricName
pattern $bInstanceMetricName_BurstCapacityPercentage :: InstanceMetricName
$mInstanceMetricName_BurstCapacityPercentage :: forall r. InstanceMetricName -> (Void# -> r) -> (Void# -> r) -> r
InstanceMetricName_BurstCapacityPercentage = InstanceMetricName' "BurstCapacityPercentage"
pattern InstanceMetricName_BurstCapacityTime :: InstanceMetricName
pattern $bInstanceMetricName_BurstCapacityTime :: InstanceMetricName
$mInstanceMetricName_BurstCapacityTime :: forall r. InstanceMetricName -> (Void# -> r) -> (Void# -> r) -> r
InstanceMetricName_BurstCapacityTime = InstanceMetricName' "BurstCapacityTime"
pattern InstanceMetricName_CPUUtilization :: InstanceMetricName
pattern $bInstanceMetricName_CPUUtilization :: InstanceMetricName
$mInstanceMetricName_CPUUtilization :: forall r. InstanceMetricName -> (Void# -> r) -> (Void# -> r) -> r
InstanceMetricName_CPUUtilization = InstanceMetricName' "CPUUtilization"
pattern InstanceMetricName_NetworkIn :: InstanceMetricName
pattern $bInstanceMetricName_NetworkIn :: InstanceMetricName
$mInstanceMetricName_NetworkIn :: forall r. InstanceMetricName -> (Void# -> r) -> (Void# -> r) -> r
InstanceMetricName_NetworkIn = InstanceMetricName' "NetworkIn"
pattern InstanceMetricName_NetworkOut :: InstanceMetricName
pattern $bInstanceMetricName_NetworkOut :: InstanceMetricName
$mInstanceMetricName_NetworkOut :: forall r. InstanceMetricName -> (Void# -> r) -> (Void# -> r) -> r
InstanceMetricName_NetworkOut = InstanceMetricName' "NetworkOut"
pattern InstanceMetricName_StatusCheckFailed :: InstanceMetricName
pattern $bInstanceMetricName_StatusCheckFailed :: InstanceMetricName
$mInstanceMetricName_StatusCheckFailed :: forall r. InstanceMetricName -> (Void# -> r) -> (Void# -> r) -> r
InstanceMetricName_StatusCheckFailed = InstanceMetricName' "StatusCheckFailed"
pattern InstanceMetricName_StatusCheckFailed_Instance :: InstanceMetricName
pattern $bInstanceMetricName_StatusCheckFailed_Instance :: InstanceMetricName
$mInstanceMetricName_StatusCheckFailed_Instance :: forall r. InstanceMetricName -> (Void# -> r) -> (Void# -> r) -> r
InstanceMetricName_StatusCheckFailed_Instance = InstanceMetricName' "StatusCheckFailed_Instance"
pattern InstanceMetricName_StatusCheckFailed_System :: InstanceMetricName
pattern $bInstanceMetricName_StatusCheckFailed_System :: InstanceMetricName
$mInstanceMetricName_StatusCheckFailed_System :: forall r. InstanceMetricName -> (Void# -> r) -> (Void# -> r) -> r
InstanceMetricName_StatusCheckFailed_System = InstanceMetricName' "StatusCheckFailed_System"
{-# COMPLETE
InstanceMetricName_BurstCapacityPercentage,
InstanceMetricName_BurstCapacityTime,
InstanceMetricName_CPUUtilization,
InstanceMetricName_NetworkIn,
InstanceMetricName_NetworkOut,
InstanceMetricName_StatusCheckFailed,
InstanceMetricName_StatusCheckFailed_Instance,
InstanceMetricName_StatusCheckFailed_System,
InstanceMetricName'
#-}