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

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

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

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

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

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