{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.EC2.Types.DiskType
( DiskType
( ..,
DiskType_Hdd,
DiskType_Ssd
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import Amazonka.EC2.Internal
import qualified Amazonka.Prelude as Prelude
newtype DiskType = DiskType'
{ DiskType -> Text
fromDiskType ::
Data.Text
}
deriving stock
( Int -> DiskType -> ShowS
[DiskType] -> ShowS
DiskType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DiskType] -> ShowS
$cshowList :: [DiskType] -> ShowS
show :: DiskType -> String
$cshow :: DiskType -> String
showsPrec :: Int -> DiskType -> ShowS
$cshowsPrec :: Int -> DiskType -> ShowS
Prelude.Show,
ReadPrec [DiskType]
ReadPrec DiskType
Int -> ReadS DiskType
ReadS [DiskType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DiskType]
$creadListPrec :: ReadPrec [DiskType]
readPrec :: ReadPrec DiskType
$creadPrec :: ReadPrec DiskType
readList :: ReadS [DiskType]
$creadList :: ReadS [DiskType]
readsPrec :: Int -> ReadS DiskType
$creadsPrec :: Int -> ReadS DiskType
Prelude.Read,
DiskType -> DiskType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DiskType -> DiskType -> Bool
$c/= :: DiskType -> DiskType -> Bool
== :: DiskType -> DiskType -> Bool
$c== :: DiskType -> DiskType -> Bool
Prelude.Eq,
Eq DiskType
DiskType -> DiskType -> Bool
DiskType -> DiskType -> Ordering
DiskType -> DiskType -> DiskType
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 :: DiskType -> DiskType -> DiskType
$cmin :: DiskType -> DiskType -> DiskType
max :: DiskType -> DiskType -> DiskType
$cmax :: DiskType -> DiskType -> DiskType
>= :: DiskType -> DiskType -> Bool
$c>= :: DiskType -> DiskType -> Bool
> :: DiskType -> DiskType -> Bool
$c> :: DiskType -> DiskType -> Bool
<= :: DiskType -> DiskType -> Bool
$c<= :: DiskType -> DiskType -> Bool
< :: DiskType -> DiskType -> Bool
$c< :: DiskType -> DiskType -> Bool
compare :: DiskType -> DiskType -> Ordering
$ccompare :: DiskType -> DiskType -> Ordering
Prelude.Ord,
forall x. Rep DiskType x -> DiskType
forall x. DiskType -> Rep DiskType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DiskType x -> DiskType
$cfrom :: forall x. DiskType -> Rep DiskType x
Prelude.Generic
)
deriving newtype
( Eq DiskType
Int -> DiskType -> Int
DiskType -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: DiskType -> Int
$chash :: DiskType -> Int
hashWithSalt :: Int -> DiskType -> Int
$chashWithSalt :: Int -> DiskType -> Int
Prelude.Hashable,
DiskType -> ()
forall a. (a -> ()) -> NFData a
rnf :: DiskType -> ()
$crnf :: DiskType -> ()
Prelude.NFData,
Text -> Either String DiskType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DiskType
$cfromText :: Text -> Either String DiskType
Data.FromText,
DiskType -> Text
forall a. (a -> Text) -> ToText a
toText :: DiskType -> Text
$ctoText :: DiskType -> Text
Data.ToText,
DiskType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: DiskType -> ByteString
$ctoBS :: DiskType -> ByteString
Data.ToByteString,
DiskType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DiskType -> ByteStringBuilder
$cbuild :: DiskType -> ByteStringBuilder
Data.ToLog,
HeaderName -> DiskType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DiskType -> [Header]
$ctoHeader :: HeaderName -> DiskType -> [Header]
Data.ToHeader,
DiskType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DiskType -> QueryString
$ctoQuery :: DiskType -> QueryString
Data.ToQuery,
Value -> Parser [DiskType]
Value -> Parser DiskType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [DiskType]
$cparseJSONList :: Value -> Parser [DiskType]
parseJSON :: Value -> Parser DiskType
$cparseJSON :: Value -> Parser DiskType
Data.FromJSON,
FromJSONKeyFunction [DiskType]
FromJSONKeyFunction DiskType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DiskType]
$cfromJSONKeyList :: FromJSONKeyFunction [DiskType]
fromJSONKey :: FromJSONKeyFunction DiskType
$cfromJSONKey :: FromJSONKeyFunction DiskType
Data.FromJSONKey,
[DiskType] -> Encoding
[DiskType] -> Value
DiskType -> Encoding
DiskType -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [DiskType] -> Encoding
$ctoEncodingList :: [DiskType] -> Encoding
toJSONList :: [DiskType] -> Value
$ctoJSONList :: [DiskType] -> Value
toEncoding :: DiskType -> Encoding
$ctoEncoding :: DiskType -> Encoding
toJSON :: DiskType -> Value
$ctoJSON :: DiskType -> Value
Data.ToJSON,
ToJSONKeyFunction [DiskType]
ToJSONKeyFunction DiskType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DiskType]
$ctoJSONKeyList :: ToJSONKeyFunction [DiskType]
toJSONKey :: ToJSONKeyFunction DiskType
$ctoJSONKey :: ToJSONKeyFunction DiskType
Data.ToJSONKey,
[Node] -> Either String DiskType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DiskType
$cparseXML :: [Node] -> Either String DiskType
Data.FromXML,
DiskType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: DiskType -> XML
$ctoXML :: DiskType -> XML
Data.ToXML
)
pattern DiskType_Hdd :: DiskType
pattern $bDiskType_Hdd :: DiskType
$mDiskType_Hdd :: forall {r}. DiskType -> ((# #) -> r) -> ((# #) -> r) -> r
DiskType_Hdd = DiskType' "hdd"
pattern DiskType_Ssd :: DiskType
pattern $bDiskType_Ssd :: DiskType
$mDiskType_Ssd :: forall {r}. DiskType -> ((# #) -> r) -> ((# #) -> r) -> r
DiskType_Ssd = DiskType' "ssd"
{-# COMPLETE
DiskType_Hdd,
DiskType_Ssd,
DiskType'
#-}