{-# 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.ResourceExplorer2.Types.IndexType
-- 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.ResourceExplorer2.Types.IndexType
  ( IndexType
      ( ..,
        IndexType_AGGREGATOR,
        IndexType_LOCAL
      ),
  )
where

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

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

pattern IndexType_AGGREGATOR :: IndexType
pattern $bIndexType_AGGREGATOR :: IndexType
$mIndexType_AGGREGATOR :: forall {r}. IndexType -> ((# #) -> r) -> ((# #) -> r) -> r
IndexType_AGGREGATOR = IndexType' "AGGREGATOR"

pattern IndexType_LOCAL :: IndexType
pattern $bIndexType_LOCAL :: IndexType
$mIndexType_LOCAL :: forall {r}. IndexType -> ((# #) -> r) -> ((# #) -> r) -> r
IndexType_LOCAL = IndexType' "LOCAL"

{-# COMPLETE
  IndexType_AGGREGATOR,
  IndexType_LOCAL,
  IndexType'
  #-}