{-# 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.IndexStatus
-- 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.IndexStatus
  ( IndexStatus
      ( ..,
        IndexStatus_ACTIVE,
        IndexStatus_CREATING,
        IndexStatus_DELETING,
        IndexStatus_UPDATING
      ),
  )
where

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

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

pattern IndexStatus_ACTIVE :: IndexStatus
pattern $bIndexStatus_ACTIVE :: IndexStatus
$mIndexStatus_ACTIVE :: forall r. IndexStatus -> (Void# -> r) -> (Void# -> r) -> r
IndexStatus_ACTIVE = IndexStatus' "ACTIVE"

pattern IndexStatus_CREATING :: IndexStatus
pattern $bIndexStatus_CREATING :: IndexStatus
$mIndexStatus_CREATING :: forall r. IndexStatus -> (Void# -> r) -> (Void# -> r) -> r
IndexStatus_CREATING = IndexStatus' "CREATING"

pattern IndexStatus_DELETING :: IndexStatus
pattern $bIndexStatus_DELETING :: IndexStatus
$mIndexStatus_DELETING :: forall r. IndexStatus -> (Void# -> r) -> (Void# -> r) -> r
IndexStatus_DELETING = IndexStatus' "DELETING"

pattern IndexStatus_UPDATING :: IndexStatus
pattern $bIndexStatus_UPDATING :: IndexStatus
$mIndexStatus_UPDATING :: forall r. IndexStatus -> (Void# -> r) -> (Void# -> r) -> r
IndexStatus_UPDATING = IndexStatus' "UPDATING"

{-# COMPLETE
  IndexStatus_ACTIVE,
  IndexStatus_CREATING,
  IndexStatus_DELETING,
  IndexStatus_UPDATING,
  IndexStatus'
  #-}