{-# 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.AuthTokenUpdateStatus
( AuthTokenUpdateStatus
( ..,
AuthTokenUpdateStatus_ROTATING,
AuthTokenUpdateStatus_SETTING
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype AuthTokenUpdateStatus = AuthTokenUpdateStatus'
{ AuthTokenUpdateStatus -> Text
fromAuthTokenUpdateStatus ::
Core.Text
}
deriving stock
( Int -> AuthTokenUpdateStatus -> ShowS
[AuthTokenUpdateStatus] -> ShowS
AuthTokenUpdateStatus -> String
(Int -> AuthTokenUpdateStatus -> ShowS)
-> (AuthTokenUpdateStatus -> String)
-> ([AuthTokenUpdateStatus] -> ShowS)
-> Show AuthTokenUpdateStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AuthTokenUpdateStatus] -> ShowS
$cshowList :: [AuthTokenUpdateStatus] -> ShowS
show :: AuthTokenUpdateStatus -> String
$cshow :: AuthTokenUpdateStatus -> String
showsPrec :: Int -> AuthTokenUpdateStatus -> ShowS
$cshowsPrec :: Int -> AuthTokenUpdateStatus -> ShowS
Prelude.Show,
ReadPrec [AuthTokenUpdateStatus]
ReadPrec AuthTokenUpdateStatus
Int -> ReadS AuthTokenUpdateStatus
ReadS [AuthTokenUpdateStatus]
(Int -> ReadS AuthTokenUpdateStatus)
-> ReadS [AuthTokenUpdateStatus]
-> ReadPrec AuthTokenUpdateStatus
-> ReadPrec [AuthTokenUpdateStatus]
-> Read AuthTokenUpdateStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AuthTokenUpdateStatus]
$creadListPrec :: ReadPrec [AuthTokenUpdateStatus]
readPrec :: ReadPrec AuthTokenUpdateStatus
$creadPrec :: ReadPrec AuthTokenUpdateStatus
readList :: ReadS [AuthTokenUpdateStatus]
$creadList :: ReadS [AuthTokenUpdateStatus]
readsPrec :: Int -> ReadS AuthTokenUpdateStatus
$creadsPrec :: Int -> ReadS AuthTokenUpdateStatus
Prelude.Read,
AuthTokenUpdateStatus -> AuthTokenUpdateStatus -> Bool
(AuthTokenUpdateStatus -> AuthTokenUpdateStatus -> Bool)
-> (AuthTokenUpdateStatus -> AuthTokenUpdateStatus -> Bool)
-> Eq AuthTokenUpdateStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AuthTokenUpdateStatus -> AuthTokenUpdateStatus -> Bool
$c/= :: AuthTokenUpdateStatus -> AuthTokenUpdateStatus -> Bool
== :: AuthTokenUpdateStatus -> AuthTokenUpdateStatus -> Bool
$c== :: AuthTokenUpdateStatus -> AuthTokenUpdateStatus -> Bool
Prelude.Eq,
Eq AuthTokenUpdateStatus
Eq AuthTokenUpdateStatus
-> (AuthTokenUpdateStatus -> AuthTokenUpdateStatus -> Ordering)
-> (AuthTokenUpdateStatus -> AuthTokenUpdateStatus -> Bool)
-> (AuthTokenUpdateStatus -> AuthTokenUpdateStatus -> Bool)
-> (AuthTokenUpdateStatus -> AuthTokenUpdateStatus -> Bool)
-> (AuthTokenUpdateStatus -> AuthTokenUpdateStatus -> Bool)
-> (AuthTokenUpdateStatus
-> AuthTokenUpdateStatus -> AuthTokenUpdateStatus)
-> (AuthTokenUpdateStatus
-> AuthTokenUpdateStatus -> AuthTokenUpdateStatus)
-> Ord AuthTokenUpdateStatus
AuthTokenUpdateStatus -> AuthTokenUpdateStatus -> Bool
AuthTokenUpdateStatus -> AuthTokenUpdateStatus -> Ordering
AuthTokenUpdateStatus
-> AuthTokenUpdateStatus -> AuthTokenUpdateStatus
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 :: AuthTokenUpdateStatus
-> AuthTokenUpdateStatus -> AuthTokenUpdateStatus
$cmin :: AuthTokenUpdateStatus
-> AuthTokenUpdateStatus -> AuthTokenUpdateStatus
max :: AuthTokenUpdateStatus
-> AuthTokenUpdateStatus -> AuthTokenUpdateStatus
$cmax :: AuthTokenUpdateStatus
-> AuthTokenUpdateStatus -> AuthTokenUpdateStatus
>= :: AuthTokenUpdateStatus -> AuthTokenUpdateStatus -> Bool
$c>= :: AuthTokenUpdateStatus -> AuthTokenUpdateStatus -> Bool
> :: AuthTokenUpdateStatus -> AuthTokenUpdateStatus -> Bool
$c> :: AuthTokenUpdateStatus -> AuthTokenUpdateStatus -> Bool
<= :: AuthTokenUpdateStatus -> AuthTokenUpdateStatus -> Bool
$c<= :: AuthTokenUpdateStatus -> AuthTokenUpdateStatus -> Bool
< :: AuthTokenUpdateStatus -> AuthTokenUpdateStatus -> Bool
$c< :: AuthTokenUpdateStatus -> AuthTokenUpdateStatus -> Bool
compare :: AuthTokenUpdateStatus -> AuthTokenUpdateStatus -> Ordering
$ccompare :: AuthTokenUpdateStatus -> AuthTokenUpdateStatus -> Ordering
$cp1Ord :: Eq AuthTokenUpdateStatus
Prelude.Ord,
(forall x. AuthTokenUpdateStatus -> Rep AuthTokenUpdateStatus x)
-> (forall x. Rep AuthTokenUpdateStatus x -> AuthTokenUpdateStatus)
-> Generic AuthTokenUpdateStatus
forall x. Rep AuthTokenUpdateStatus x -> AuthTokenUpdateStatus
forall x. AuthTokenUpdateStatus -> Rep AuthTokenUpdateStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AuthTokenUpdateStatus x -> AuthTokenUpdateStatus
$cfrom :: forall x. AuthTokenUpdateStatus -> Rep AuthTokenUpdateStatus x
Prelude.Generic
)
deriving newtype
( Int -> AuthTokenUpdateStatus -> Int
AuthTokenUpdateStatus -> Int
(Int -> AuthTokenUpdateStatus -> Int)
-> (AuthTokenUpdateStatus -> Int) -> Hashable AuthTokenUpdateStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: AuthTokenUpdateStatus -> Int
$chash :: AuthTokenUpdateStatus -> Int
hashWithSalt :: Int -> AuthTokenUpdateStatus -> Int
$chashWithSalt :: Int -> AuthTokenUpdateStatus -> Int
Prelude.Hashable,
AuthTokenUpdateStatus -> ()
(AuthTokenUpdateStatus -> ()) -> NFData AuthTokenUpdateStatus
forall a. (a -> ()) -> NFData a
rnf :: AuthTokenUpdateStatus -> ()
$crnf :: AuthTokenUpdateStatus -> ()
Prelude.NFData,
Text -> Either String AuthTokenUpdateStatus
(Text -> Either String AuthTokenUpdateStatus)
-> FromText AuthTokenUpdateStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AuthTokenUpdateStatus
$cfromText :: Text -> Either String AuthTokenUpdateStatus
Core.FromText,
AuthTokenUpdateStatus -> Text
(AuthTokenUpdateStatus -> Text) -> ToText AuthTokenUpdateStatus
forall a. (a -> Text) -> ToText a
toText :: AuthTokenUpdateStatus -> Text
$ctoText :: AuthTokenUpdateStatus -> Text
Core.ToText,
AuthTokenUpdateStatus -> ByteString
(AuthTokenUpdateStatus -> ByteString)
-> ToByteString AuthTokenUpdateStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: AuthTokenUpdateStatus -> ByteString
$ctoBS :: AuthTokenUpdateStatus -> ByteString
Core.ToByteString,
AuthTokenUpdateStatus -> ByteStringBuilder
(AuthTokenUpdateStatus -> ByteStringBuilder)
-> ToLog AuthTokenUpdateStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AuthTokenUpdateStatus -> ByteStringBuilder
$cbuild :: AuthTokenUpdateStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> AuthTokenUpdateStatus -> [Header]
(HeaderName -> AuthTokenUpdateStatus -> [Header])
-> ToHeader AuthTokenUpdateStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AuthTokenUpdateStatus -> [Header]
$ctoHeader :: HeaderName -> AuthTokenUpdateStatus -> [Header]
Core.ToHeader,
AuthTokenUpdateStatus -> QueryString
(AuthTokenUpdateStatus -> QueryString)
-> ToQuery AuthTokenUpdateStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AuthTokenUpdateStatus -> QueryString
$ctoQuery :: AuthTokenUpdateStatus -> QueryString
Core.ToQuery,
Value -> Parser [AuthTokenUpdateStatus]
Value -> Parser AuthTokenUpdateStatus
(Value -> Parser AuthTokenUpdateStatus)
-> (Value -> Parser [AuthTokenUpdateStatus])
-> FromJSON AuthTokenUpdateStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [AuthTokenUpdateStatus]
$cparseJSONList :: Value -> Parser [AuthTokenUpdateStatus]
parseJSON :: Value -> Parser AuthTokenUpdateStatus
$cparseJSON :: Value -> Parser AuthTokenUpdateStatus
Core.FromJSON,
FromJSONKeyFunction [AuthTokenUpdateStatus]
FromJSONKeyFunction AuthTokenUpdateStatus
FromJSONKeyFunction AuthTokenUpdateStatus
-> FromJSONKeyFunction [AuthTokenUpdateStatus]
-> FromJSONKey AuthTokenUpdateStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AuthTokenUpdateStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [AuthTokenUpdateStatus]
fromJSONKey :: FromJSONKeyFunction AuthTokenUpdateStatus
$cfromJSONKey :: FromJSONKeyFunction AuthTokenUpdateStatus
Core.FromJSONKey,
[AuthTokenUpdateStatus] -> Encoding
[AuthTokenUpdateStatus] -> Value
AuthTokenUpdateStatus -> Encoding
AuthTokenUpdateStatus -> Value
(AuthTokenUpdateStatus -> Value)
-> (AuthTokenUpdateStatus -> Encoding)
-> ([AuthTokenUpdateStatus] -> Value)
-> ([AuthTokenUpdateStatus] -> Encoding)
-> ToJSON AuthTokenUpdateStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [AuthTokenUpdateStatus] -> Encoding
$ctoEncodingList :: [AuthTokenUpdateStatus] -> Encoding
toJSONList :: [AuthTokenUpdateStatus] -> Value
$ctoJSONList :: [AuthTokenUpdateStatus] -> Value
toEncoding :: AuthTokenUpdateStatus -> Encoding
$ctoEncoding :: AuthTokenUpdateStatus -> Encoding
toJSON :: AuthTokenUpdateStatus -> Value
$ctoJSON :: AuthTokenUpdateStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [AuthTokenUpdateStatus]
ToJSONKeyFunction AuthTokenUpdateStatus
ToJSONKeyFunction AuthTokenUpdateStatus
-> ToJSONKeyFunction [AuthTokenUpdateStatus]
-> ToJSONKey AuthTokenUpdateStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AuthTokenUpdateStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [AuthTokenUpdateStatus]
toJSONKey :: ToJSONKeyFunction AuthTokenUpdateStatus
$ctoJSONKey :: ToJSONKeyFunction AuthTokenUpdateStatus
Core.ToJSONKey,
[Node] -> Either String AuthTokenUpdateStatus
([Node] -> Either String AuthTokenUpdateStatus)
-> FromXML AuthTokenUpdateStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AuthTokenUpdateStatus
$cparseXML :: [Node] -> Either String AuthTokenUpdateStatus
Core.FromXML,
AuthTokenUpdateStatus -> XML
(AuthTokenUpdateStatus -> XML) -> ToXML AuthTokenUpdateStatus
forall a. (a -> XML) -> ToXML a
toXML :: AuthTokenUpdateStatus -> XML
$ctoXML :: AuthTokenUpdateStatus -> XML
Core.ToXML
)
pattern AuthTokenUpdateStatus_ROTATING :: AuthTokenUpdateStatus
pattern $bAuthTokenUpdateStatus_ROTATING :: AuthTokenUpdateStatus
$mAuthTokenUpdateStatus_ROTATING :: forall r.
AuthTokenUpdateStatus -> (Void# -> r) -> (Void# -> r) -> r
AuthTokenUpdateStatus_ROTATING = AuthTokenUpdateStatus' "ROTATING"
pattern AuthTokenUpdateStatus_SETTING :: AuthTokenUpdateStatus
pattern $bAuthTokenUpdateStatus_SETTING :: AuthTokenUpdateStatus
$mAuthTokenUpdateStatus_SETTING :: forall r.
AuthTokenUpdateStatus -> (Void# -> r) -> (Void# -> r) -> r
AuthTokenUpdateStatus_SETTING = AuthTokenUpdateStatus' "SETTING"
{-# COMPLETE
AuthTokenUpdateStatus_ROTATING,
AuthTokenUpdateStatus_SETTING,
AuthTokenUpdateStatus'
#-}