{-# 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.ElasticSearch.Types.VolumeType
-- 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.ElasticSearch.Types.VolumeType
  ( VolumeType
      ( ..,
        VolumeType_Gp2,
        VolumeType_Gp3,
        VolumeType_Io1,
        VolumeType_Standard
      ),
  )
where

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

-- | The type of EBS volume, standard, gp2, gp3 or io1. See
-- <http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-ebs Configuring EBS-based Storage>for
-- more information.
newtype VolumeType = VolumeType'
  { VolumeType -> Text
fromVolumeType ::
      Data.Text
  }
  deriving stock
    ( Int -> VolumeType -> ShowS
[VolumeType] -> ShowS
VolumeType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [VolumeType] -> ShowS
$cshowList :: [VolumeType] -> ShowS
show :: VolumeType -> String
$cshow :: VolumeType -> String
showsPrec :: Int -> VolumeType -> ShowS
$cshowsPrec :: Int -> VolumeType -> ShowS
Prelude.Show,
      ReadPrec [VolumeType]
ReadPrec VolumeType
Int -> ReadS VolumeType
ReadS [VolumeType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [VolumeType]
$creadListPrec :: ReadPrec [VolumeType]
readPrec :: ReadPrec VolumeType
$creadPrec :: ReadPrec VolumeType
readList :: ReadS [VolumeType]
$creadList :: ReadS [VolumeType]
readsPrec :: Int -> ReadS VolumeType
$creadsPrec :: Int -> ReadS VolumeType
Prelude.Read,
      VolumeType -> VolumeType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: VolumeType -> VolumeType -> Bool
$c/= :: VolumeType -> VolumeType -> Bool
== :: VolumeType -> VolumeType -> Bool
$c== :: VolumeType -> VolumeType -> Bool
Prelude.Eq,
      Eq VolumeType
VolumeType -> VolumeType -> Bool
VolumeType -> VolumeType -> Ordering
VolumeType -> VolumeType -> VolumeType
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 :: VolumeType -> VolumeType -> VolumeType
$cmin :: VolumeType -> VolumeType -> VolumeType
max :: VolumeType -> VolumeType -> VolumeType
$cmax :: VolumeType -> VolumeType -> VolumeType
>= :: VolumeType -> VolumeType -> Bool
$c>= :: VolumeType -> VolumeType -> Bool
> :: VolumeType -> VolumeType -> Bool
$c> :: VolumeType -> VolumeType -> Bool
<= :: VolumeType -> VolumeType -> Bool
$c<= :: VolumeType -> VolumeType -> Bool
< :: VolumeType -> VolumeType -> Bool
$c< :: VolumeType -> VolumeType -> Bool
compare :: VolumeType -> VolumeType -> Ordering
$ccompare :: VolumeType -> VolumeType -> Ordering
Prelude.Ord,
      forall x. Rep VolumeType x -> VolumeType
forall x. VolumeType -> Rep VolumeType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep VolumeType x -> VolumeType
$cfrom :: forall x. VolumeType -> Rep VolumeType x
Prelude.Generic
    )
  deriving newtype
    ( Eq VolumeType
Int -> VolumeType -> Int
VolumeType -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: VolumeType -> Int
$chash :: VolumeType -> Int
hashWithSalt :: Int -> VolumeType -> Int
$chashWithSalt :: Int -> VolumeType -> Int
Prelude.Hashable,
      VolumeType -> ()
forall a. (a -> ()) -> NFData a
rnf :: VolumeType -> ()
$crnf :: VolumeType -> ()
Prelude.NFData,
      Text -> Either String VolumeType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String VolumeType
$cfromText :: Text -> Either String VolumeType
Data.FromText,
      VolumeType -> Text
forall a. (a -> Text) -> ToText a
toText :: VolumeType -> Text
$ctoText :: VolumeType -> Text
Data.ToText,
      VolumeType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: VolumeType -> ByteString
$ctoBS :: VolumeType -> ByteString
Data.ToByteString,
      VolumeType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: VolumeType -> ByteStringBuilder
$cbuild :: VolumeType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> VolumeType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> VolumeType -> [Header]
$ctoHeader :: HeaderName -> VolumeType -> [Header]
Data.ToHeader,
      VolumeType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: VolumeType -> QueryString
$ctoQuery :: VolumeType -> QueryString
Data.ToQuery,
      Value -> Parser [VolumeType]
Value -> Parser VolumeType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [VolumeType]
$cparseJSONList :: Value -> Parser [VolumeType]
parseJSON :: Value -> Parser VolumeType
$cparseJSON :: Value -> Parser VolumeType
Data.FromJSON,
      FromJSONKeyFunction [VolumeType]
FromJSONKeyFunction VolumeType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [VolumeType]
$cfromJSONKeyList :: FromJSONKeyFunction [VolumeType]
fromJSONKey :: FromJSONKeyFunction VolumeType
$cfromJSONKey :: FromJSONKeyFunction VolumeType
Data.FromJSONKey,
      [VolumeType] -> Encoding
[VolumeType] -> Value
VolumeType -> Encoding
VolumeType -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [VolumeType] -> Encoding
$ctoEncodingList :: [VolumeType] -> Encoding
toJSONList :: [VolumeType] -> Value
$ctoJSONList :: [VolumeType] -> Value
toEncoding :: VolumeType -> Encoding
$ctoEncoding :: VolumeType -> Encoding
toJSON :: VolumeType -> Value
$ctoJSON :: VolumeType -> Value
Data.ToJSON,
      ToJSONKeyFunction [VolumeType]
ToJSONKeyFunction VolumeType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [VolumeType]
$ctoJSONKeyList :: ToJSONKeyFunction [VolumeType]
toJSONKey :: ToJSONKeyFunction VolumeType
$ctoJSONKey :: ToJSONKeyFunction VolumeType
Data.ToJSONKey,
      [Node] -> Either String VolumeType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String VolumeType
$cparseXML :: [Node] -> Either String VolumeType
Data.FromXML,
      VolumeType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: VolumeType -> XML
$ctoXML :: VolumeType -> XML
Data.ToXML
    )

pattern VolumeType_Gp2 :: VolumeType
pattern $bVolumeType_Gp2 :: VolumeType
$mVolumeType_Gp2 :: forall {r}. VolumeType -> ((# #) -> r) -> ((# #) -> r) -> r
VolumeType_Gp2 = VolumeType' "gp2"

pattern VolumeType_Gp3 :: VolumeType
pattern $bVolumeType_Gp3 :: VolumeType
$mVolumeType_Gp3 :: forall {r}. VolumeType -> ((# #) -> r) -> ((# #) -> r) -> r
VolumeType_Gp3 = VolumeType' "gp3"

pattern VolumeType_Io1 :: VolumeType
pattern $bVolumeType_Io1 :: VolumeType
$mVolumeType_Io1 :: forall {r}. VolumeType -> ((# #) -> r) -> ((# #) -> r) -> r
VolumeType_Io1 = VolumeType' "io1"

pattern VolumeType_Standard :: VolumeType
pattern $bVolumeType_Standard :: VolumeType
$mVolumeType_Standard :: forall {r}. VolumeType -> ((# #) -> r) -> ((# #) -> r) -> r
VolumeType_Standard = VolumeType' "standard"

{-# COMPLETE
  VolumeType_Gp2,
  VolumeType_Gp3,
  VolumeType_Io1,
  VolumeType_Standard,
  VolumeType'
  #-}