{-# 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.CloudSearch.Types.PartitionInstanceType
-- 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.CloudSearch.Types.PartitionInstanceType
  ( PartitionInstanceType
      ( ..,
        PartitionInstanceType_Search_2xlarge,
        PartitionInstanceType_Search_large,
        PartitionInstanceType_Search_m1_large,
        PartitionInstanceType_Search_m1_small,
        PartitionInstanceType_Search_m2_2xlarge,
        PartitionInstanceType_Search_m2_xlarge,
        PartitionInstanceType_Search_m3_2xlarge,
        PartitionInstanceType_Search_m3_large,
        PartitionInstanceType_Search_m3_medium,
        PartitionInstanceType_Search_m3_xlarge,
        PartitionInstanceType_Search_medium,
        PartitionInstanceType_Search_previousgeneration_2xlarge,
        PartitionInstanceType_Search_previousgeneration_large,
        PartitionInstanceType_Search_previousgeneration_small,
        PartitionInstanceType_Search_previousgeneration_xlarge,
        PartitionInstanceType_Search_small,
        PartitionInstanceType_Search_xlarge
      ),
  )
where

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

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

pattern PartitionInstanceType_Search_2xlarge :: PartitionInstanceType
pattern $bPartitionInstanceType_Search_2xlarge :: PartitionInstanceType
$mPartitionInstanceType_Search_2xlarge :: forall r.
PartitionInstanceType -> (Void# -> r) -> (Void# -> r) -> r
PartitionInstanceType_Search_2xlarge = PartitionInstanceType' "search.2xlarge"

pattern PartitionInstanceType_Search_large :: PartitionInstanceType
pattern $bPartitionInstanceType_Search_large :: PartitionInstanceType
$mPartitionInstanceType_Search_large :: forall r.
PartitionInstanceType -> (Void# -> r) -> (Void# -> r) -> r
PartitionInstanceType_Search_large = PartitionInstanceType' "search.large"

pattern PartitionInstanceType_Search_m1_large :: PartitionInstanceType
pattern $bPartitionInstanceType_Search_m1_large :: PartitionInstanceType
$mPartitionInstanceType_Search_m1_large :: forall r.
PartitionInstanceType -> (Void# -> r) -> (Void# -> r) -> r
PartitionInstanceType_Search_m1_large = PartitionInstanceType' "search.m1.large"

pattern PartitionInstanceType_Search_m1_small :: PartitionInstanceType
pattern $bPartitionInstanceType_Search_m1_small :: PartitionInstanceType
$mPartitionInstanceType_Search_m1_small :: forall r.
PartitionInstanceType -> (Void# -> r) -> (Void# -> r) -> r
PartitionInstanceType_Search_m1_small = PartitionInstanceType' "search.m1.small"

pattern PartitionInstanceType_Search_m2_2xlarge :: PartitionInstanceType
pattern $bPartitionInstanceType_Search_m2_2xlarge :: PartitionInstanceType
$mPartitionInstanceType_Search_m2_2xlarge :: forall r.
PartitionInstanceType -> (Void# -> r) -> (Void# -> r) -> r
PartitionInstanceType_Search_m2_2xlarge = PartitionInstanceType' "search.m2.2xlarge"

pattern PartitionInstanceType_Search_m2_xlarge :: PartitionInstanceType
pattern $bPartitionInstanceType_Search_m2_xlarge :: PartitionInstanceType
$mPartitionInstanceType_Search_m2_xlarge :: forall r.
PartitionInstanceType -> (Void# -> r) -> (Void# -> r) -> r
PartitionInstanceType_Search_m2_xlarge = PartitionInstanceType' "search.m2.xlarge"

pattern PartitionInstanceType_Search_m3_2xlarge :: PartitionInstanceType
pattern $bPartitionInstanceType_Search_m3_2xlarge :: PartitionInstanceType
$mPartitionInstanceType_Search_m3_2xlarge :: forall r.
PartitionInstanceType -> (Void# -> r) -> (Void# -> r) -> r
PartitionInstanceType_Search_m3_2xlarge = PartitionInstanceType' "search.m3.2xlarge"

pattern PartitionInstanceType_Search_m3_large :: PartitionInstanceType
pattern $bPartitionInstanceType_Search_m3_large :: PartitionInstanceType
$mPartitionInstanceType_Search_m3_large :: forall r.
PartitionInstanceType -> (Void# -> r) -> (Void# -> r) -> r
PartitionInstanceType_Search_m3_large = PartitionInstanceType' "search.m3.large"

pattern PartitionInstanceType_Search_m3_medium :: PartitionInstanceType
pattern $bPartitionInstanceType_Search_m3_medium :: PartitionInstanceType
$mPartitionInstanceType_Search_m3_medium :: forall r.
PartitionInstanceType -> (Void# -> r) -> (Void# -> r) -> r
PartitionInstanceType_Search_m3_medium = PartitionInstanceType' "search.m3.medium"

pattern PartitionInstanceType_Search_m3_xlarge :: PartitionInstanceType
pattern $bPartitionInstanceType_Search_m3_xlarge :: PartitionInstanceType
$mPartitionInstanceType_Search_m3_xlarge :: forall r.
PartitionInstanceType -> (Void# -> r) -> (Void# -> r) -> r
PartitionInstanceType_Search_m3_xlarge = PartitionInstanceType' "search.m3.xlarge"

pattern PartitionInstanceType_Search_medium :: PartitionInstanceType
pattern $bPartitionInstanceType_Search_medium :: PartitionInstanceType
$mPartitionInstanceType_Search_medium :: forall r.
PartitionInstanceType -> (Void# -> r) -> (Void# -> r) -> r
PartitionInstanceType_Search_medium = PartitionInstanceType' "search.medium"

pattern PartitionInstanceType_Search_previousgeneration_2xlarge :: PartitionInstanceType
pattern $bPartitionInstanceType_Search_previousgeneration_2xlarge :: PartitionInstanceType
$mPartitionInstanceType_Search_previousgeneration_2xlarge :: forall r.
PartitionInstanceType -> (Void# -> r) -> (Void# -> r) -> r
PartitionInstanceType_Search_previousgeneration_2xlarge = PartitionInstanceType' "search.previousgeneration.2xlarge"

pattern PartitionInstanceType_Search_previousgeneration_large :: PartitionInstanceType
pattern $bPartitionInstanceType_Search_previousgeneration_large :: PartitionInstanceType
$mPartitionInstanceType_Search_previousgeneration_large :: forall r.
PartitionInstanceType -> (Void# -> r) -> (Void# -> r) -> r
PartitionInstanceType_Search_previousgeneration_large = PartitionInstanceType' "search.previousgeneration.large"

pattern PartitionInstanceType_Search_previousgeneration_small :: PartitionInstanceType
pattern $bPartitionInstanceType_Search_previousgeneration_small :: PartitionInstanceType
$mPartitionInstanceType_Search_previousgeneration_small :: forall r.
PartitionInstanceType -> (Void# -> r) -> (Void# -> r) -> r
PartitionInstanceType_Search_previousgeneration_small = PartitionInstanceType' "search.previousgeneration.small"

pattern PartitionInstanceType_Search_previousgeneration_xlarge :: PartitionInstanceType
pattern $bPartitionInstanceType_Search_previousgeneration_xlarge :: PartitionInstanceType
$mPartitionInstanceType_Search_previousgeneration_xlarge :: forall r.
PartitionInstanceType -> (Void# -> r) -> (Void# -> r) -> r
PartitionInstanceType_Search_previousgeneration_xlarge = PartitionInstanceType' "search.previousgeneration.xlarge"

pattern PartitionInstanceType_Search_small :: PartitionInstanceType
pattern $bPartitionInstanceType_Search_small :: PartitionInstanceType
$mPartitionInstanceType_Search_small :: forall r.
PartitionInstanceType -> (Void# -> r) -> (Void# -> r) -> r
PartitionInstanceType_Search_small = PartitionInstanceType' "search.small"

pattern PartitionInstanceType_Search_xlarge :: PartitionInstanceType
pattern $bPartitionInstanceType_Search_xlarge :: PartitionInstanceType
$mPartitionInstanceType_Search_xlarge :: forall r.
PartitionInstanceType -> (Void# -> r) -> (Void# -> r) -> r
PartitionInstanceType_Search_xlarge = PartitionInstanceType' "search.xlarge"

{-# COMPLETE
  PartitionInstanceType_Search_2xlarge,
  PartitionInstanceType_Search_large,
  PartitionInstanceType_Search_m1_large,
  PartitionInstanceType_Search_m1_small,
  PartitionInstanceType_Search_m2_2xlarge,
  PartitionInstanceType_Search_m2_xlarge,
  PartitionInstanceType_Search_m3_2xlarge,
  PartitionInstanceType_Search_m3_large,
  PartitionInstanceType_Search_m3_medium,
  PartitionInstanceType_Search_m3_xlarge,
  PartitionInstanceType_Search_medium,
  PartitionInstanceType_Search_previousgeneration_2xlarge,
  PartitionInstanceType_Search_previousgeneration_large,
  PartitionInstanceType_Search_previousgeneration_small,
  PartitionInstanceType_Search_previousgeneration_xlarge,
  PartitionInstanceType_Search_small,
  PartitionInstanceType_Search_xlarge,
  PartitionInstanceType'
  #-}