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