{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.DynamoDB.Types.ReplicaStatus
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.DynamoDB.Types.ReplicaStatus
  ( ReplicaStatus
      ( ..,
        ReplicaStatus_ACTIVE,
        ReplicaStatus_CREATING,
        ReplicaStatus_CREATION_FAILED,
        ReplicaStatus_DELETING,
        ReplicaStatus_INACCESSIBLE_ENCRYPTION_CREDENTIALS,
        ReplicaStatus_REGION_DISABLED,
        ReplicaStatus_UPDATING
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

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

pattern ReplicaStatus_ACTIVE :: ReplicaStatus
pattern $bReplicaStatus_ACTIVE :: ReplicaStatus
$mReplicaStatus_ACTIVE :: forall r. ReplicaStatus -> (Void# -> r) -> (Void# -> r) -> r
ReplicaStatus_ACTIVE = ReplicaStatus' "ACTIVE"

pattern ReplicaStatus_CREATING :: ReplicaStatus
pattern $bReplicaStatus_CREATING :: ReplicaStatus
$mReplicaStatus_CREATING :: forall r. ReplicaStatus -> (Void# -> r) -> (Void# -> r) -> r
ReplicaStatus_CREATING = ReplicaStatus' "CREATING"

pattern ReplicaStatus_CREATION_FAILED :: ReplicaStatus
pattern $bReplicaStatus_CREATION_FAILED :: ReplicaStatus
$mReplicaStatus_CREATION_FAILED :: forall r. ReplicaStatus -> (Void# -> r) -> (Void# -> r) -> r
ReplicaStatus_CREATION_FAILED = ReplicaStatus' "CREATION_FAILED"

pattern ReplicaStatus_DELETING :: ReplicaStatus
pattern $bReplicaStatus_DELETING :: ReplicaStatus
$mReplicaStatus_DELETING :: forall r. ReplicaStatus -> (Void# -> r) -> (Void# -> r) -> r
ReplicaStatus_DELETING = ReplicaStatus' "DELETING"

pattern ReplicaStatus_INACCESSIBLE_ENCRYPTION_CREDENTIALS :: ReplicaStatus
pattern $bReplicaStatus_INACCESSIBLE_ENCRYPTION_CREDENTIALS :: ReplicaStatus
$mReplicaStatus_INACCESSIBLE_ENCRYPTION_CREDENTIALS :: forall r. ReplicaStatus -> (Void# -> r) -> (Void# -> r) -> r
ReplicaStatus_INACCESSIBLE_ENCRYPTION_CREDENTIALS = ReplicaStatus' "INACCESSIBLE_ENCRYPTION_CREDENTIALS"

pattern ReplicaStatus_REGION_DISABLED :: ReplicaStatus
pattern $bReplicaStatus_REGION_DISABLED :: ReplicaStatus
$mReplicaStatus_REGION_DISABLED :: forall r. ReplicaStatus -> (Void# -> r) -> (Void# -> r) -> r
ReplicaStatus_REGION_DISABLED = ReplicaStatus' "REGION_DISABLED"

pattern ReplicaStatus_UPDATING :: ReplicaStatus
pattern $bReplicaStatus_UPDATING :: ReplicaStatus
$mReplicaStatus_UPDATING :: forall r. ReplicaStatus -> (Void# -> r) -> (Void# -> r) -> r
ReplicaStatus_UPDATING = ReplicaStatus' "UPDATING"

{-# COMPLETE
  ReplicaStatus_ACTIVE,
  ReplicaStatus_CREATING,
  ReplicaStatus_CREATION_FAILED,
  ReplicaStatus_DELETING,
  ReplicaStatus_INACCESSIBLE_ENCRYPTION_CREDENTIALS,
  ReplicaStatus_REGION_DISABLED,
  ReplicaStatus_UPDATING,
  ReplicaStatus'
  #-}