{-# 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.Kendra.Types.ThesaurusStatus
-- 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.Kendra.Types.ThesaurusStatus
  ( ThesaurusStatus
      ( ..,
        ThesaurusStatus_ACTIVE,
        ThesaurusStatus_ACTIVE_BUT_UPDATE_FAILED,
        ThesaurusStatus_CREATING,
        ThesaurusStatus_DELETING,
        ThesaurusStatus_FAILED,
        ThesaurusStatus_UPDATING
      ),
  )
where

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

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

pattern ThesaurusStatus_ACTIVE :: ThesaurusStatus
pattern $bThesaurusStatus_ACTIVE :: ThesaurusStatus
$mThesaurusStatus_ACTIVE :: forall {r}. ThesaurusStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ThesaurusStatus_ACTIVE = ThesaurusStatus' "ACTIVE"

pattern ThesaurusStatus_ACTIVE_BUT_UPDATE_FAILED :: ThesaurusStatus
pattern $bThesaurusStatus_ACTIVE_BUT_UPDATE_FAILED :: ThesaurusStatus
$mThesaurusStatus_ACTIVE_BUT_UPDATE_FAILED :: forall {r}. ThesaurusStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ThesaurusStatus_ACTIVE_BUT_UPDATE_FAILED = ThesaurusStatus' "ACTIVE_BUT_UPDATE_FAILED"

pattern ThesaurusStatus_CREATING :: ThesaurusStatus
pattern $bThesaurusStatus_CREATING :: ThesaurusStatus
$mThesaurusStatus_CREATING :: forall {r}. ThesaurusStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ThesaurusStatus_CREATING = ThesaurusStatus' "CREATING"

pattern ThesaurusStatus_DELETING :: ThesaurusStatus
pattern $bThesaurusStatus_DELETING :: ThesaurusStatus
$mThesaurusStatus_DELETING :: forall {r}. ThesaurusStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ThesaurusStatus_DELETING = ThesaurusStatus' "DELETING"

pattern ThesaurusStatus_FAILED :: ThesaurusStatus
pattern $bThesaurusStatus_FAILED :: ThesaurusStatus
$mThesaurusStatus_FAILED :: forall {r}. ThesaurusStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ThesaurusStatus_FAILED = ThesaurusStatus' "FAILED"

pattern ThesaurusStatus_UPDATING :: ThesaurusStatus
pattern $bThesaurusStatus_UPDATING :: ThesaurusStatus
$mThesaurusStatus_UPDATING :: forall {r}. ThesaurusStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ThesaurusStatus_UPDATING = ThesaurusStatus' "UPDATING"

{-# COMPLETE
  ThesaurusStatus_ACTIVE,
  ThesaurusStatus_ACTIVE_BUT_UPDATE_FAILED,
  ThesaurusStatus_CREATING,
  ThesaurusStatus_DELETING,
  ThesaurusStatus_FAILED,
  ThesaurusStatus_UPDATING,
  ThesaurusStatus'
  #-}