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