{-# 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.IndexEdition
-- 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.IndexEdition
  ( IndexEdition
      ( ..,
        IndexEdition_DEVELOPER_EDITION,
        IndexEdition_ENTERPRISE_EDITION
      ),
  )
where

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

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

pattern IndexEdition_DEVELOPER_EDITION :: IndexEdition
pattern $bIndexEdition_DEVELOPER_EDITION :: IndexEdition
$mIndexEdition_DEVELOPER_EDITION :: forall {r}. IndexEdition -> ((# #) -> r) -> ((# #) -> r) -> r
IndexEdition_DEVELOPER_EDITION = IndexEdition' "DEVELOPER_EDITION"

pattern IndexEdition_ENTERPRISE_EDITION :: IndexEdition
pattern $bIndexEdition_ENTERPRISE_EDITION :: IndexEdition
$mIndexEdition_ENTERPRISE_EDITION :: forall {r}. IndexEdition -> ((# #) -> r) -> ((# #) -> r) -> r
IndexEdition_ENTERPRISE_EDITION = IndexEdition' "ENTERPRISE_EDITION"

{-# COMPLETE
  IndexEdition_DEVELOPER_EDITION,
  IndexEdition_ENTERPRISE_EDITION,
  IndexEdition'
  #-}