{-# 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.OpenSearch.Types.OpenSearchWarmPartitionInstanceType
-- 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.OpenSearch.Types.OpenSearchWarmPartitionInstanceType
  ( OpenSearchWarmPartitionInstanceType
      ( ..,
        OpenSearchWarmPartitionInstanceType_Ultrawarm1_large_search,
        OpenSearchWarmPartitionInstanceType_Ultrawarm1_medium_search,
        OpenSearchWarmPartitionInstanceType_Ultrawarm1_xlarge_search
      ),
  )
where

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

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

pattern OpenSearchWarmPartitionInstanceType_Ultrawarm1_large_search :: OpenSearchWarmPartitionInstanceType
pattern $bOpenSearchWarmPartitionInstanceType_Ultrawarm1_large_search :: OpenSearchWarmPartitionInstanceType
$mOpenSearchWarmPartitionInstanceType_Ultrawarm1_large_search :: forall r.
OpenSearchWarmPartitionInstanceType
-> (Void# -> r) -> (Void# -> r) -> r
OpenSearchWarmPartitionInstanceType_Ultrawarm1_large_search = OpenSearchWarmPartitionInstanceType' "ultrawarm1.large.search"

pattern OpenSearchWarmPartitionInstanceType_Ultrawarm1_medium_search :: OpenSearchWarmPartitionInstanceType
pattern $bOpenSearchWarmPartitionInstanceType_Ultrawarm1_medium_search :: OpenSearchWarmPartitionInstanceType
$mOpenSearchWarmPartitionInstanceType_Ultrawarm1_medium_search :: forall r.
OpenSearchWarmPartitionInstanceType
-> (Void# -> r) -> (Void# -> r) -> r
OpenSearchWarmPartitionInstanceType_Ultrawarm1_medium_search = OpenSearchWarmPartitionInstanceType' "ultrawarm1.medium.search"

pattern OpenSearchWarmPartitionInstanceType_Ultrawarm1_xlarge_search :: OpenSearchWarmPartitionInstanceType
pattern $bOpenSearchWarmPartitionInstanceType_Ultrawarm1_xlarge_search :: OpenSearchWarmPartitionInstanceType
$mOpenSearchWarmPartitionInstanceType_Ultrawarm1_xlarge_search :: forall r.
OpenSearchWarmPartitionInstanceType
-> (Void# -> r) -> (Void# -> r) -> r
OpenSearchWarmPartitionInstanceType_Ultrawarm1_xlarge_search = OpenSearchWarmPartitionInstanceType' "ultrawarm1.xlarge.search"

{-# COMPLETE
  OpenSearchWarmPartitionInstanceType_Ultrawarm1_large_search,
  OpenSearchWarmPartitionInstanceType_Ultrawarm1_medium_search,
  OpenSearchWarmPartitionInstanceType_Ultrawarm1_xlarge_search,
  OpenSearchWarmPartitionInstanceType'
  #-}