{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Kinesis.Types.MetricsName
( MetricsName
( ..,
MetricsName_ALL,
MetricsName_IncomingBytes,
MetricsName_IncomingRecords,
MetricsName_IteratorAgeMilliseconds,
MetricsName_OutgoingBytes,
MetricsName_OutgoingRecords,
MetricsName_ReadProvisionedThroughputExceeded,
MetricsName_WriteProvisionedThroughputExceeded
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype MetricsName = MetricsName'
{ MetricsName -> Text
fromMetricsName ::
Core.Text
}
deriving stock
( Int -> MetricsName -> ShowS
[MetricsName] -> ShowS
MetricsName -> String
(Int -> MetricsName -> ShowS)
-> (MetricsName -> String)
-> ([MetricsName] -> ShowS)
-> Show MetricsName
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MetricsName] -> ShowS
$cshowList :: [MetricsName] -> ShowS
show :: MetricsName -> String
$cshow :: MetricsName -> String
showsPrec :: Int -> MetricsName -> ShowS
$cshowsPrec :: Int -> MetricsName -> ShowS
Prelude.Show,
ReadPrec [MetricsName]
ReadPrec MetricsName
Int -> ReadS MetricsName
ReadS [MetricsName]
(Int -> ReadS MetricsName)
-> ReadS [MetricsName]
-> ReadPrec MetricsName
-> ReadPrec [MetricsName]
-> Read MetricsName
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MetricsName]
$creadListPrec :: ReadPrec [MetricsName]
readPrec :: ReadPrec MetricsName
$creadPrec :: ReadPrec MetricsName
readList :: ReadS [MetricsName]
$creadList :: ReadS [MetricsName]
readsPrec :: Int -> ReadS MetricsName
$creadsPrec :: Int -> ReadS MetricsName
Prelude.Read,
MetricsName -> MetricsName -> Bool
(MetricsName -> MetricsName -> Bool)
-> (MetricsName -> MetricsName -> Bool) -> Eq MetricsName
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MetricsName -> MetricsName -> Bool
$c/= :: MetricsName -> MetricsName -> Bool
== :: MetricsName -> MetricsName -> Bool
$c== :: MetricsName -> MetricsName -> Bool
Prelude.Eq,
Eq MetricsName
Eq MetricsName
-> (MetricsName -> MetricsName -> Ordering)
-> (MetricsName -> MetricsName -> Bool)
-> (MetricsName -> MetricsName -> Bool)
-> (MetricsName -> MetricsName -> Bool)
-> (MetricsName -> MetricsName -> Bool)
-> (MetricsName -> MetricsName -> MetricsName)
-> (MetricsName -> MetricsName -> MetricsName)
-> Ord MetricsName
MetricsName -> MetricsName -> Bool
MetricsName -> MetricsName -> Ordering
MetricsName -> MetricsName -> MetricsName
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 :: MetricsName -> MetricsName -> MetricsName
$cmin :: MetricsName -> MetricsName -> MetricsName
max :: MetricsName -> MetricsName -> MetricsName
$cmax :: MetricsName -> MetricsName -> MetricsName
>= :: MetricsName -> MetricsName -> Bool
$c>= :: MetricsName -> MetricsName -> Bool
> :: MetricsName -> MetricsName -> Bool
$c> :: MetricsName -> MetricsName -> Bool
<= :: MetricsName -> MetricsName -> Bool
$c<= :: MetricsName -> MetricsName -> Bool
< :: MetricsName -> MetricsName -> Bool
$c< :: MetricsName -> MetricsName -> Bool
compare :: MetricsName -> MetricsName -> Ordering
$ccompare :: MetricsName -> MetricsName -> Ordering
$cp1Ord :: Eq MetricsName
Prelude.Ord,
(forall x. MetricsName -> Rep MetricsName x)
-> (forall x. Rep MetricsName x -> MetricsName)
-> Generic MetricsName
forall x. Rep MetricsName x -> MetricsName
forall x. MetricsName -> Rep MetricsName x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep MetricsName x -> MetricsName
$cfrom :: forall x. MetricsName -> Rep MetricsName x
Prelude.Generic
)
deriving newtype
( Int -> MetricsName -> Int
MetricsName -> Int
(Int -> MetricsName -> Int)
-> (MetricsName -> Int) -> Hashable MetricsName
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: MetricsName -> Int
$chash :: MetricsName -> Int
hashWithSalt :: Int -> MetricsName -> Int
$chashWithSalt :: Int -> MetricsName -> Int
Prelude.Hashable,
MetricsName -> ()
(MetricsName -> ()) -> NFData MetricsName
forall a. (a -> ()) -> NFData a
rnf :: MetricsName -> ()
$crnf :: MetricsName -> ()
Prelude.NFData,
Text -> Either String MetricsName
(Text -> Either String MetricsName) -> FromText MetricsName
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String MetricsName
$cfromText :: Text -> Either String MetricsName
Core.FromText,
MetricsName -> Text
(MetricsName -> Text) -> ToText MetricsName
forall a. (a -> Text) -> ToText a
toText :: MetricsName -> Text
$ctoText :: MetricsName -> Text
Core.ToText,
MetricsName -> ByteString
(MetricsName -> ByteString) -> ToByteString MetricsName
forall a. (a -> ByteString) -> ToByteString a
toBS :: MetricsName -> ByteString
$ctoBS :: MetricsName -> ByteString
Core.ToByteString,
MetricsName -> ByteStringBuilder
(MetricsName -> ByteStringBuilder) -> ToLog MetricsName
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: MetricsName -> ByteStringBuilder
$cbuild :: MetricsName -> ByteStringBuilder
Core.ToLog,
HeaderName -> MetricsName -> [Header]
(HeaderName -> MetricsName -> [Header]) -> ToHeader MetricsName
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> MetricsName -> [Header]
$ctoHeader :: HeaderName -> MetricsName -> [Header]
Core.ToHeader,
MetricsName -> QueryString
(MetricsName -> QueryString) -> ToQuery MetricsName
forall a. (a -> QueryString) -> ToQuery a
toQuery :: MetricsName -> QueryString
$ctoQuery :: MetricsName -> QueryString
Core.ToQuery,
Value -> Parser [MetricsName]
Value -> Parser MetricsName
(Value -> Parser MetricsName)
-> (Value -> Parser [MetricsName]) -> FromJSON MetricsName
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [MetricsName]
$cparseJSONList :: Value -> Parser [MetricsName]
parseJSON :: Value -> Parser MetricsName
$cparseJSON :: Value -> Parser MetricsName
Core.FromJSON,
FromJSONKeyFunction [MetricsName]
FromJSONKeyFunction MetricsName
FromJSONKeyFunction MetricsName
-> FromJSONKeyFunction [MetricsName] -> FromJSONKey MetricsName
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [MetricsName]
$cfromJSONKeyList :: FromJSONKeyFunction [MetricsName]
fromJSONKey :: FromJSONKeyFunction MetricsName
$cfromJSONKey :: FromJSONKeyFunction MetricsName
Core.FromJSONKey,
[MetricsName] -> Encoding
[MetricsName] -> Value
MetricsName -> Encoding
MetricsName -> Value
(MetricsName -> Value)
-> (MetricsName -> Encoding)
-> ([MetricsName] -> Value)
-> ([MetricsName] -> Encoding)
-> ToJSON MetricsName
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [MetricsName] -> Encoding
$ctoEncodingList :: [MetricsName] -> Encoding
toJSONList :: [MetricsName] -> Value
$ctoJSONList :: [MetricsName] -> Value
toEncoding :: MetricsName -> Encoding
$ctoEncoding :: MetricsName -> Encoding
toJSON :: MetricsName -> Value
$ctoJSON :: MetricsName -> Value
Core.ToJSON,
ToJSONKeyFunction [MetricsName]
ToJSONKeyFunction MetricsName
ToJSONKeyFunction MetricsName
-> ToJSONKeyFunction [MetricsName] -> ToJSONKey MetricsName
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [MetricsName]
$ctoJSONKeyList :: ToJSONKeyFunction [MetricsName]
toJSONKey :: ToJSONKeyFunction MetricsName
$ctoJSONKey :: ToJSONKeyFunction MetricsName
Core.ToJSONKey,
[Node] -> Either String MetricsName
([Node] -> Either String MetricsName) -> FromXML MetricsName
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String MetricsName
$cparseXML :: [Node] -> Either String MetricsName
Core.FromXML,
MetricsName -> XML
(MetricsName -> XML) -> ToXML MetricsName
forall a. (a -> XML) -> ToXML a
toXML :: MetricsName -> XML
$ctoXML :: MetricsName -> XML
Core.ToXML
)
pattern MetricsName_ALL :: MetricsName
pattern $bMetricsName_ALL :: MetricsName
$mMetricsName_ALL :: forall r. MetricsName -> (Void# -> r) -> (Void# -> r) -> r
MetricsName_ALL = MetricsName' "ALL"
pattern MetricsName_IncomingBytes :: MetricsName
pattern $bMetricsName_IncomingBytes :: MetricsName
$mMetricsName_IncomingBytes :: forall r. MetricsName -> (Void# -> r) -> (Void# -> r) -> r
MetricsName_IncomingBytes = MetricsName' "IncomingBytes"
pattern MetricsName_IncomingRecords :: MetricsName
pattern $bMetricsName_IncomingRecords :: MetricsName
$mMetricsName_IncomingRecords :: forall r. MetricsName -> (Void# -> r) -> (Void# -> r) -> r
MetricsName_IncomingRecords = MetricsName' "IncomingRecords"
pattern MetricsName_IteratorAgeMilliseconds :: MetricsName
pattern $bMetricsName_IteratorAgeMilliseconds :: MetricsName
$mMetricsName_IteratorAgeMilliseconds :: forall r. MetricsName -> (Void# -> r) -> (Void# -> r) -> r
MetricsName_IteratorAgeMilliseconds = MetricsName' "IteratorAgeMilliseconds"
pattern MetricsName_OutgoingBytes :: MetricsName
pattern $bMetricsName_OutgoingBytes :: MetricsName
$mMetricsName_OutgoingBytes :: forall r. MetricsName -> (Void# -> r) -> (Void# -> r) -> r
MetricsName_OutgoingBytes = MetricsName' "OutgoingBytes"
pattern MetricsName_OutgoingRecords :: MetricsName
pattern $bMetricsName_OutgoingRecords :: MetricsName
$mMetricsName_OutgoingRecords :: forall r. MetricsName -> (Void# -> r) -> (Void# -> r) -> r
MetricsName_OutgoingRecords = MetricsName' "OutgoingRecords"
pattern MetricsName_ReadProvisionedThroughputExceeded :: MetricsName
pattern $bMetricsName_ReadProvisionedThroughputExceeded :: MetricsName
$mMetricsName_ReadProvisionedThroughputExceeded :: forall r. MetricsName -> (Void# -> r) -> (Void# -> r) -> r
MetricsName_ReadProvisionedThroughputExceeded = MetricsName' "ReadProvisionedThroughputExceeded"
pattern MetricsName_WriteProvisionedThroughputExceeded :: MetricsName
pattern $bMetricsName_WriteProvisionedThroughputExceeded :: MetricsName
$mMetricsName_WriteProvisionedThroughputExceeded :: forall r. MetricsName -> (Void# -> r) -> (Void# -> r) -> r
MetricsName_WriteProvisionedThroughputExceeded = MetricsName' "WriteProvisionedThroughputExceeded"
{-# COMPLETE
MetricsName_ALL,
MetricsName_IncomingBytes,
MetricsName_IncomingRecords,
MetricsName_IteratorAgeMilliseconds,
MetricsName_OutgoingBytes,
MetricsName_OutgoingRecords,
MetricsName_ReadProvisionedThroughputExceeded,
MetricsName_WriteProvisionedThroughputExceeded,
MetricsName'
#-}