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