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