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