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