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