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