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