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