{-# 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.CrawlState
( CrawlState
( ..,
CrawlState_CANCELLED,
CrawlState_CANCELLING,
CrawlState_FAILED,
CrawlState_RUNNING,
CrawlState_SUCCEEDED
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype CrawlState = CrawlState'
{ CrawlState -> Text
fromCrawlState ::
Core.Text
}
deriving stock
( Int -> CrawlState -> ShowS
[CrawlState] -> ShowS
CrawlState -> String
(Int -> CrawlState -> ShowS)
-> (CrawlState -> String)
-> ([CrawlState] -> ShowS)
-> Show CrawlState
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CrawlState] -> ShowS
$cshowList :: [CrawlState] -> ShowS
show :: CrawlState -> String
$cshow :: CrawlState -> String
showsPrec :: Int -> CrawlState -> ShowS
$cshowsPrec :: Int -> CrawlState -> ShowS
Prelude.Show,
ReadPrec [CrawlState]
ReadPrec CrawlState
Int -> ReadS CrawlState
ReadS [CrawlState]
(Int -> ReadS CrawlState)
-> ReadS [CrawlState]
-> ReadPrec CrawlState
-> ReadPrec [CrawlState]
-> Read CrawlState
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CrawlState]
$creadListPrec :: ReadPrec [CrawlState]
readPrec :: ReadPrec CrawlState
$creadPrec :: ReadPrec CrawlState
readList :: ReadS [CrawlState]
$creadList :: ReadS [CrawlState]
readsPrec :: Int -> ReadS CrawlState
$creadsPrec :: Int -> ReadS CrawlState
Prelude.Read,
CrawlState -> CrawlState -> Bool
(CrawlState -> CrawlState -> Bool)
-> (CrawlState -> CrawlState -> Bool) -> Eq CrawlState
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CrawlState -> CrawlState -> Bool
$c/= :: CrawlState -> CrawlState -> Bool
== :: CrawlState -> CrawlState -> Bool
$c== :: CrawlState -> CrawlState -> Bool
Prelude.Eq,
Eq CrawlState
Eq CrawlState
-> (CrawlState -> CrawlState -> Ordering)
-> (CrawlState -> CrawlState -> Bool)
-> (CrawlState -> CrawlState -> Bool)
-> (CrawlState -> CrawlState -> Bool)
-> (CrawlState -> CrawlState -> Bool)
-> (CrawlState -> CrawlState -> CrawlState)
-> (CrawlState -> CrawlState -> CrawlState)
-> Ord CrawlState
CrawlState -> CrawlState -> Bool
CrawlState -> CrawlState -> Ordering
CrawlState -> CrawlState -> CrawlState
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 :: CrawlState -> CrawlState -> CrawlState
$cmin :: CrawlState -> CrawlState -> CrawlState
max :: CrawlState -> CrawlState -> CrawlState
$cmax :: CrawlState -> CrawlState -> CrawlState
>= :: CrawlState -> CrawlState -> Bool
$c>= :: CrawlState -> CrawlState -> Bool
> :: CrawlState -> CrawlState -> Bool
$c> :: CrawlState -> CrawlState -> Bool
<= :: CrawlState -> CrawlState -> Bool
$c<= :: CrawlState -> CrawlState -> Bool
< :: CrawlState -> CrawlState -> Bool
$c< :: CrawlState -> CrawlState -> Bool
compare :: CrawlState -> CrawlState -> Ordering
$ccompare :: CrawlState -> CrawlState -> Ordering
$cp1Ord :: Eq CrawlState
Prelude.Ord,
(forall x. CrawlState -> Rep CrawlState x)
-> (forall x. Rep CrawlState x -> CrawlState) -> Generic CrawlState
forall x. Rep CrawlState x -> CrawlState
forall x. CrawlState -> Rep CrawlState x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CrawlState x -> CrawlState
$cfrom :: forall x. CrawlState -> Rep CrawlState x
Prelude.Generic
)
deriving newtype
( Int -> CrawlState -> Int
CrawlState -> Int
(Int -> CrawlState -> Int)
-> (CrawlState -> Int) -> Hashable CrawlState
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: CrawlState -> Int
$chash :: CrawlState -> Int
hashWithSalt :: Int -> CrawlState -> Int
$chashWithSalt :: Int -> CrawlState -> Int
Prelude.Hashable,
CrawlState -> ()
(CrawlState -> ()) -> NFData CrawlState
forall a. (a -> ()) -> NFData a
rnf :: CrawlState -> ()
$crnf :: CrawlState -> ()
Prelude.NFData,
Text -> Either String CrawlState
(Text -> Either String CrawlState) -> FromText CrawlState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String CrawlState
$cfromText :: Text -> Either String CrawlState
Core.FromText,
CrawlState -> Text
(CrawlState -> Text) -> ToText CrawlState
forall a. (a -> Text) -> ToText a
toText :: CrawlState -> Text
$ctoText :: CrawlState -> Text
Core.ToText,
CrawlState -> ByteString
(CrawlState -> ByteString) -> ToByteString CrawlState
forall a. (a -> ByteString) -> ToByteString a
toBS :: CrawlState -> ByteString
$ctoBS :: CrawlState -> ByteString
Core.ToByteString,
CrawlState -> ByteStringBuilder
(CrawlState -> ByteStringBuilder) -> ToLog CrawlState
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: CrawlState -> ByteStringBuilder
$cbuild :: CrawlState -> ByteStringBuilder
Core.ToLog,
HeaderName -> CrawlState -> [Header]
(HeaderName -> CrawlState -> [Header]) -> ToHeader CrawlState
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> CrawlState -> [Header]
$ctoHeader :: HeaderName -> CrawlState -> [Header]
Core.ToHeader,
CrawlState -> QueryString
(CrawlState -> QueryString) -> ToQuery CrawlState
forall a. (a -> QueryString) -> ToQuery a
toQuery :: CrawlState -> QueryString
$ctoQuery :: CrawlState -> QueryString
Core.ToQuery,
Value -> Parser [CrawlState]
Value -> Parser CrawlState
(Value -> Parser CrawlState)
-> (Value -> Parser [CrawlState]) -> FromJSON CrawlState
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [CrawlState]
$cparseJSONList :: Value -> Parser [CrawlState]
parseJSON :: Value -> Parser CrawlState
$cparseJSON :: Value -> Parser CrawlState
Core.FromJSON,
FromJSONKeyFunction [CrawlState]
FromJSONKeyFunction CrawlState
FromJSONKeyFunction CrawlState
-> FromJSONKeyFunction [CrawlState] -> FromJSONKey CrawlState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [CrawlState]
$cfromJSONKeyList :: FromJSONKeyFunction [CrawlState]
fromJSONKey :: FromJSONKeyFunction CrawlState
$cfromJSONKey :: FromJSONKeyFunction CrawlState
Core.FromJSONKey,
[CrawlState] -> Encoding
[CrawlState] -> Value
CrawlState -> Encoding
CrawlState -> Value
(CrawlState -> Value)
-> (CrawlState -> Encoding)
-> ([CrawlState] -> Value)
-> ([CrawlState] -> Encoding)
-> ToJSON CrawlState
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [CrawlState] -> Encoding
$ctoEncodingList :: [CrawlState] -> Encoding
toJSONList :: [CrawlState] -> Value
$ctoJSONList :: [CrawlState] -> Value
toEncoding :: CrawlState -> Encoding
$ctoEncoding :: CrawlState -> Encoding
toJSON :: CrawlState -> Value
$ctoJSON :: CrawlState -> Value
Core.ToJSON,
ToJSONKeyFunction [CrawlState]
ToJSONKeyFunction CrawlState
ToJSONKeyFunction CrawlState
-> ToJSONKeyFunction [CrawlState] -> ToJSONKey CrawlState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [CrawlState]
$ctoJSONKeyList :: ToJSONKeyFunction [CrawlState]
toJSONKey :: ToJSONKeyFunction CrawlState
$ctoJSONKey :: ToJSONKeyFunction CrawlState
Core.ToJSONKey,
[Node] -> Either String CrawlState
([Node] -> Either String CrawlState) -> FromXML CrawlState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String CrawlState
$cparseXML :: [Node] -> Either String CrawlState
Core.FromXML,
CrawlState -> XML
(CrawlState -> XML) -> ToXML CrawlState
forall a. (a -> XML) -> ToXML a
toXML :: CrawlState -> XML
$ctoXML :: CrawlState -> XML
Core.ToXML
)
pattern CrawlState_CANCELLED :: CrawlState
pattern $bCrawlState_CANCELLED :: CrawlState
$mCrawlState_CANCELLED :: forall r. CrawlState -> (Void# -> r) -> (Void# -> r) -> r
CrawlState_CANCELLED = CrawlState' "CANCELLED"
pattern CrawlState_CANCELLING :: CrawlState
pattern $bCrawlState_CANCELLING :: CrawlState
$mCrawlState_CANCELLING :: forall r. CrawlState -> (Void# -> r) -> (Void# -> r) -> r
CrawlState_CANCELLING = CrawlState' "CANCELLING"
pattern CrawlState_FAILED :: CrawlState
pattern $bCrawlState_FAILED :: CrawlState
$mCrawlState_FAILED :: forall r. CrawlState -> (Void# -> r) -> (Void# -> r) -> r
CrawlState_FAILED = CrawlState' "FAILED"
pattern CrawlState_RUNNING :: CrawlState
pattern $bCrawlState_RUNNING :: CrawlState
$mCrawlState_RUNNING :: forall r. CrawlState -> (Void# -> r) -> (Void# -> r) -> r
CrawlState_RUNNING = CrawlState' "RUNNING"
pattern CrawlState_SUCCEEDED :: CrawlState
pattern $bCrawlState_SUCCEEDED :: CrawlState
$mCrawlState_SUCCEEDED :: forall r. CrawlState -> (Void# -> r) -> (Void# -> r) -> r
CrawlState_SUCCEEDED = CrawlState' "SUCCEEDED"
{-# COMPLETE
CrawlState_CANCELLED,
CrawlState_CANCELLING,
CrawlState_FAILED,
CrawlState_RUNNING,
CrawlState_SUCCEEDED,
CrawlState'
#-}