{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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.Data as Data
import Amazonka.DynamoDB.Types.AttributeValue
import Amazonka.DynamoDB.Types.WriteRequest
import qualified Amazonka.Prelude as Prelude

newtype ReplicaStatus = ReplicaStatus'
  { ReplicaStatus -> Text
fromReplicaStatus ::
      Data.Text
  }
  deriving stock
    ( Int -> ReplicaStatus -> ShowS
[ReplicaStatus] -> ShowS
ReplicaStatus -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq ReplicaStatus
Int -> ReplicaStatus -> Int
ReplicaStatus -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: ReplicaStatus -> ()
$crnf :: ReplicaStatus -> ()
Prelude.NFData,
      Text -> Either String ReplicaStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ReplicaStatus
$cfromText :: Text -> Either String ReplicaStatus
Data.FromText,
      ReplicaStatus -> Text
forall a. (a -> Text) -> ToText a
toText :: ReplicaStatus -> Text
$ctoText :: ReplicaStatus -> Text
Data.ToText,
      ReplicaStatus -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: ReplicaStatus -> ByteString
$ctoBS :: ReplicaStatus -> ByteString
Data.ToByteString,
      ReplicaStatus -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ReplicaStatus -> ByteStringBuilder
$cbuild :: ReplicaStatus -> ByteStringBuilder
Data.ToLog,
      HeaderName -> ReplicaStatus -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ReplicaStatus -> [Header]
$ctoHeader :: HeaderName -> ReplicaStatus -> [Header]
Data.ToHeader,
      ReplicaStatus -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ReplicaStatus -> QueryString
$ctoQuery :: ReplicaStatus -> QueryString
Data.ToQuery,
      Value -> Parser [ReplicaStatus]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [ReplicaStatus]
FromJSONKeyFunction ReplicaStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ReplicaStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [ReplicaStatus]
fromJSONKey :: FromJSONKeyFunction ReplicaStatus
$cfromJSONKey :: FromJSONKeyFunction ReplicaStatus
Data.FromJSONKey,
      [ReplicaStatus] -> Encoding
[ReplicaStatus] -> Value
ReplicaStatus -> Encoding
ReplicaStatus -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [ReplicaStatus]
ToJSONKeyFunction ReplicaStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ReplicaStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [ReplicaStatus]
toJSONKey :: ToJSONKeyFunction ReplicaStatus
$ctoJSONKey :: ToJSONKeyFunction ReplicaStatus
Data.ToJSONKey,
      [Node] -> Either String ReplicaStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ReplicaStatus
$cparseXML :: [Node] -> Either String ReplicaStatus
Data.FromXML,
      ReplicaStatus -> XML
forall a. (a -> XML) -> ToXML a
toXML :: ReplicaStatus -> XML
$ctoXML :: ReplicaStatus -> XML
Data.ToXML
    )

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

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

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

pattern ReplicaStatus_DELETING :: ReplicaStatus
pattern $bReplicaStatus_DELETING :: ReplicaStatus
$mReplicaStatus_DELETING :: forall {r}. ReplicaStatus -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> r) -> r
ReplicaStatus_REGION_DISABLED = ReplicaStatus' "REGION_DISABLED"

pattern ReplicaStatus_UPDATING :: ReplicaStatus
pattern $bReplicaStatus_UPDATING :: ReplicaStatus
$mReplicaStatus_UPDATING :: forall {r}. ReplicaStatus -> ((# #) -> r) -> ((# #) -> 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'
  #-}