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