{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.ElastiCache.Types.UpdateActionStatus
( UpdateActionStatus
( ..,
UpdateActionStatus_Complete,
UpdateActionStatus_In_progress,
UpdateActionStatus_Not_applicable,
UpdateActionStatus_Not_applied,
UpdateActionStatus_Scheduled,
UpdateActionStatus_Scheduling,
UpdateActionStatus_Stopped,
UpdateActionStatus_Stopping,
UpdateActionStatus_Waiting_to_start
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype UpdateActionStatus = UpdateActionStatus'
{ UpdateActionStatus -> Text
fromUpdateActionStatus ::
Core.Text
}
deriving stock
( Int -> UpdateActionStatus -> ShowS
[UpdateActionStatus] -> ShowS
UpdateActionStatus -> String
(Int -> UpdateActionStatus -> ShowS)
-> (UpdateActionStatus -> String)
-> ([UpdateActionStatus] -> ShowS)
-> Show UpdateActionStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateActionStatus] -> ShowS
$cshowList :: [UpdateActionStatus] -> ShowS
show :: UpdateActionStatus -> String
$cshow :: UpdateActionStatus -> String
showsPrec :: Int -> UpdateActionStatus -> ShowS
$cshowsPrec :: Int -> UpdateActionStatus -> ShowS
Prelude.Show,
ReadPrec [UpdateActionStatus]
ReadPrec UpdateActionStatus
Int -> ReadS UpdateActionStatus
ReadS [UpdateActionStatus]
(Int -> ReadS UpdateActionStatus)
-> ReadS [UpdateActionStatus]
-> ReadPrec UpdateActionStatus
-> ReadPrec [UpdateActionStatus]
-> Read UpdateActionStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateActionStatus]
$creadListPrec :: ReadPrec [UpdateActionStatus]
readPrec :: ReadPrec UpdateActionStatus
$creadPrec :: ReadPrec UpdateActionStatus
readList :: ReadS [UpdateActionStatus]
$creadList :: ReadS [UpdateActionStatus]
readsPrec :: Int -> ReadS UpdateActionStatus
$creadsPrec :: Int -> ReadS UpdateActionStatus
Prelude.Read,
UpdateActionStatus -> UpdateActionStatus -> Bool
(UpdateActionStatus -> UpdateActionStatus -> Bool)
-> (UpdateActionStatus -> UpdateActionStatus -> Bool)
-> Eq UpdateActionStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateActionStatus -> UpdateActionStatus -> Bool
$c/= :: UpdateActionStatus -> UpdateActionStatus -> Bool
== :: UpdateActionStatus -> UpdateActionStatus -> Bool
$c== :: UpdateActionStatus -> UpdateActionStatus -> Bool
Prelude.Eq,
Eq UpdateActionStatus
Eq UpdateActionStatus
-> (UpdateActionStatus -> UpdateActionStatus -> Ordering)
-> (UpdateActionStatus -> UpdateActionStatus -> Bool)
-> (UpdateActionStatus -> UpdateActionStatus -> Bool)
-> (UpdateActionStatus -> UpdateActionStatus -> Bool)
-> (UpdateActionStatus -> UpdateActionStatus -> Bool)
-> (UpdateActionStatus -> UpdateActionStatus -> UpdateActionStatus)
-> (UpdateActionStatus -> UpdateActionStatus -> UpdateActionStatus)
-> Ord UpdateActionStatus
UpdateActionStatus -> UpdateActionStatus -> Bool
UpdateActionStatus -> UpdateActionStatus -> Ordering
UpdateActionStatus -> UpdateActionStatus -> UpdateActionStatus
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 :: UpdateActionStatus -> UpdateActionStatus -> UpdateActionStatus
$cmin :: UpdateActionStatus -> UpdateActionStatus -> UpdateActionStatus
max :: UpdateActionStatus -> UpdateActionStatus -> UpdateActionStatus
$cmax :: UpdateActionStatus -> UpdateActionStatus -> UpdateActionStatus
>= :: UpdateActionStatus -> UpdateActionStatus -> Bool
$c>= :: UpdateActionStatus -> UpdateActionStatus -> Bool
> :: UpdateActionStatus -> UpdateActionStatus -> Bool
$c> :: UpdateActionStatus -> UpdateActionStatus -> Bool
<= :: UpdateActionStatus -> UpdateActionStatus -> Bool
$c<= :: UpdateActionStatus -> UpdateActionStatus -> Bool
< :: UpdateActionStatus -> UpdateActionStatus -> Bool
$c< :: UpdateActionStatus -> UpdateActionStatus -> Bool
compare :: UpdateActionStatus -> UpdateActionStatus -> Ordering
$ccompare :: UpdateActionStatus -> UpdateActionStatus -> Ordering
$cp1Ord :: Eq UpdateActionStatus
Prelude.Ord,
(forall x. UpdateActionStatus -> Rep UpdateActionStatus x)
-> (forall x. Rep UpdateActionStatus x -> UpdateActionStatus)
-> Generic UpdateActionStatus
forall x. Rep UpdateActionStatus x -> UpdateActionStatus
forall x. UpdateActionStatus -> Rep UpdateActionStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateActionStatus x -> UpdateActionStatus
$cfrom :: forall x. UpdateActionStatus -> Rep UpdateActionStatus x
Prelude.Generic
)
deriving newtype
( Int -> UpdateActionStatus -> Int
UpdateActionStatus -> Int
(Int -> UpdateActionStatus -> Int)
-> (UpdateActionStatus -> Int) -> Hashable UpdateActionStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: UpdateActionStatus -> Int
$chash :: UpdateActionStatus -> Int
hashWithSalt :: Int -> UpdateActionStatus -> Int
$chashWithSalt :: Int -> UpdateActionStatus -> Int
Prelude.Hashable,
UpdateActionStatus -> ()
(UpdateActionStatus -> ()) -> NFData UpdateActionStatus
forall a. (a -> ()) -> NFData a
rnf :: UpdateActionStatus -> ()
$crnf :: UpdateActionStatus -> ()
Prelude.NFData,
Text -> Either String UpdateActionStatus
(Text -> Either String UpdateActionStatus)
-> FromText UpdateActionStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String UpdateActionStatus
$cfromText :: Text -> Either String UpdateActionStatus
Core.FromText,
UpdateActionStatus -> Text
(UpdateActionStatus -> Text) -> ToText UpdateActionStatus
forall a. (a -> Text) -> ToText a
toText :: UpdateActionStatus -> Text
$ctoText :: UpdateActionStatus -> Text
Core.ToText,
UpdateActionStatus -> ByteString
(UpdateActionStatus -> ByteString)
-> ToByteString UpdateActionStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: UpdateActionStatus -> ByteString
$ctoBS :: UpdateActionStatus -> ByteString
Core.ToByteString,
UpdateActionStatus -> ByteStringBuilder
(UpdateActionStatus -> ByteStringBuilder)
-> ToLog UpdateActionStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: UpdateActionStatus -> ByteStringBuilder
$cbuild :: UpdateActionStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> UpdateActionStatus -> [Header]
(HeaderName -> UpdateActionStatus -> [Header])
-> ToHeader UpdateActionStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> UpdateActionStatus -> [Header]
$ctoHeader :: HeaderName -> UpdateActionStatus -> [Header]
Core.ToHeader,
UpdateActionStatus -> QueryString
(UpdateActionStatus -> QueryString) -> ToQuery UpdateActionStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: UpdateActionStatus -> QueryString
$ctoQuery :: UpdateActionStatus -> QueryString
Core.ToQuery,
Value -> Parser [UpdateActionStatus]
Value -> Parser UpdateActionStatus
(Value -> Parser UpdateActionStatus)
-> (Value -> Parser [UpdateActionStatus])
-> FromJSON UpdateActionStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [UpdateActionStatus]
$cparseJSONList :: Value -> Parser [UpdateActionStatus]
parseJSON :: Value -> Parser UpdateActionStatus
$cparseJSON :: Value -> Parser UpdateActionStatus
Core.FromJSON,
FromJSONKeyFunction [UpdateActionStatus]
FromJSONKeyFunction UpdateActionStatus
FromJSONKeyFunction UpdateActionStatus
-> FromJSONKeyFunction [UpdateActionStatus]
-> FromJSONKey UpdateActionStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [UpdateActionStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [UpdateActionStatus]
fromJSONKey :: FromJSONKeyFunction UpdateActionStatus
$cfromJSONKey :: FromJSONKeyFunction UpdateActionStatus
Core.FromJSONKey,
[UpdateActionStatus] -> Encoding
[UpdateActionStatus] -> Value
UpdateActionStatus -> Encoding
UpdateActionStatus -> Value
(UpdateActionStatus -> Value)
-> (UpdateActionStatus -> Encoding)
-> ([UpdateActionStatus] -> Value)
-> ([UpdateActionStatus] -> Encoding)
-> ToJSON UpdateActionStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [UpdateActionStatus] -> Encoding
$ctoEncodingList :: [UpdateActionStatus] -> Encoding
toJSONList :: [UpdateActionStatus] -> Value
$ctoJSONList :: [UpdateActionStatus] -> Value
toEncoding :: UpdateActionStatus -> Encoding
$ctoEncoding :: UpdateActionStatus -> Encoding
toJSON :: UpdateActionStatus -> Value
$ctoJSON :: UpdateActionStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [UpdateActionStatus]
ToJSONKeyFunction UpdateActionStatus
ToJSONKeyFunction UpdateActionStatus
-> ToJSONKeyFunction [UpdateActionStatus]
-> ToJSONKey UpdateActionStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [UpdateActionStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [UpdateActionStatus]
toJSONKey :: ToJSONKeyFunction UpdateActionStatus
$ctoJSONKey :: ToJSONKeyFunction UpdateActionStatus
Core.ToJSONKey,
[Node] -> Either String UpdateActionStatus
([Node] -> Either String UpdateActionStatus)
-> FromXML UpdateActionStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String UpdateActionStatus
$cparseXML :: [Node] -> Either String UpdateActionStatus
Core.FromXML,
UpdateActionStatus -> XML
(UpdateActionStatus -> XML) -> ToXML UpdateActionStatus
forall a. (a -> XML) -> ToXML a
toXML :: UpdateActionStatus -> XML
$ctoXML :: UpdateActionStatus -> XML
Core.ToXML
)
pattern UpdateActionStatus_Complete :: UpdateActionStatus
pattern $bUpdateActionStatus_Complete :: UpdateActionStatus
$mUpdateActionStatus_Complete :: forall r. UpdateActionStatus -> (Void# -> r) -> (Void# -> r) -> r
UpdateActionStatus_Complete = UpdateActionStatus' "complete"
pattern UpdateActionStatus_In_progress :: UpdateActionStatus
pattern $bUpdateActionStatus_In_progress :: UpdateActionStatus
$mUpdateActionStatus_In_progress :: forall r. UpdateActionStatus -> (Void# -> r) -> (Void# -> r) -> r
UpdateActionStatus_In_progress = UpdateActionStatus' "in-progress"
pattern UpdateActionStatus_Not_applicable :: UpdateActionStatus
pattern $bUpdateActionStatus_Not_applicable :: UpdateActionStatus
$mUpdateActionStatus_Not_applicable :: forall r. UpdateActionStatus -> (Void# -> r) -> (Void# -> r) -> r
UpdateActionStatus_Not_applicable = UpdateActionStatus' "not-applicable"
pattern UpdateActionStatus_Not_applied :: UpdateActionStatus
pattern $bUpdateActionStatus_Not_applied :: UpdateActionStatus
$mUpdateActionStatus_Not_applied :: forall r. UpdateActionStatus -> (Void# -> r) -> (Void# -> r) -> r
UpdateActionStatus_Not_applied = UpdateActionStatus' "not-applied"
pattern UpdateActionStatus_Scheduled :: UpdateActionStatus
pattern $bUpdateActionStatus_Scheduled :: UpdateActionStatus
$mUpdateActionStatus_Scheduled :: forall r. UpdateActionStatus -> (Void# -> r) -> (Void# -> r) -> r
UpdateActionStatus_Scheduled = UpdateActionStatus' "scheduled"
pattern UpdateActionStatus_Scheduling :: UpdateActionStatus
pattern $bUpdateActionStatus_Scheduling :: UpdateActionStatus
$mUpdateActionStatus_Scheduling :: forall r. UpdateActionStatus -> (Void# -> r) -> (Void# -> r) -> r
UpdateActionStatus_Scheduling = UpdateActionStatus' "scheduling"
pattern UpdateActionStatus_Stopped :: UpdateActionStatus
pattern $bUpdateActionStatus_Stopped :: UpdateActionStatus
$mUpdateActionStatus_Stopped :: forall r. UpdateActionStatus -> (Void# -> r) -> (Void# -> r) -> r
UpdateActionStatus_Stopped = UpdateActionStatus' "stopped"
pattern UpdateActionStatus_Stopping :: UpdateActionStatus
pattern $bUpdateActionStatus_Stopping :: UpdateActionStatus
$mUpdateActionStatus_Stopping :: forall r. UpdateActionStatus -> (Void# -> r) -> (Void# -> r) -> r
UpdateActionStatus_Stopping = UpdateActionStatus' "stopping"
pattern UpdateActionStatus_Waiting_to_start :: UpdateActionStatus
pattern $bUpdateActionStatus_Waiting_to_start :: UpdateActionStatus
$mUpdateActionStatus_Waiting_to_start :: forall r. UpdateActionStatus -> (Void# -> r) -> (Void# -> r) -> r
UpdateActionStatus_Waiting_to_start = UpdateActionStatus' "waiting-to-start"
{-# COMPLETE
UpdateActionStatus_Complete,
UpdateActionStatus_In_progress,
UpdateActionStatus_Not_applicable,
UpdateActionStatus_Not_applied,
UpdateActionStatus_Scheduled,
UpdateActionStatus_Scheduling,
UpdateActionStatus_Stopped,
UpdateActionStatus_Stopping,
UpdateActionStatus_Waiting_to_start,
UpdateActionStatus'
#-}