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