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