{-# 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.BackfillErrorCode
( BackfillErrorCode
( ..,
BackfillErrorCode_ENCRYPTED_PARTITION_ERROR,
BackfillErrorCode_INTERNAL_ERROR,
BackfillErrorCode_INVALID_PARTITION_TYPE_DATA_ERROR,
BackfillErrorCode_MISSING_PARTITION_VALUE_ERROR,
BackfillErrorCode_UNSUPPORTED_PARTITION_CHARACTER_ERROR
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype BackfillErrorCode = BackfillErrorCode'
{ BackfillErrorCode -> Text
fromBackfillErrorCode ::
Core.Text
}
deriving stock
( Int -> BackfillErrorCode -> ShowS
[BackfillErrorCode] -> ShowS
BackfillErrorCode -> String
(Int -> BackfillErrorCode -> ShowS)
-> (BackfillErrorCode -> String)
-> ([BackfillErrorCode] -> ShowS)
-> Show BackfillErrorCode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BackfillErrorCode] -> ShowS
$cshowList :: [BackfillErrorCode] -> ShowS
show :: BackfillErrorCode -> String
$cshow :: BackfillErrorCode -> String
showsPrec :: Int -> BackfillErrorCode -> ShowS
$cshowsPrec :: Int -> BackfillErrorCode -> ShowS
Prelude.Show,
ReadPrec [BackfillErrorCode]
ReadPrec BackfillErrorCode
Int -> ReadS BackfillErrorCode
ReadS [BackfillErrorCode]
(Int -> ReadS BackfillErrorCode)
-> ReadS [BackfillErrorCode]
-> ReadPrec BackfillErrorCode
-> ReadPrec [BackfillErrorCode]
-> Read BackfillErrorCode
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BackfillErrorCode]
$creadListPrec :: ReadPrec [BackfillErrorCode]
readPrec :: ReadPrec BackfillErrorCode
$creadPrec :: ReadPrec BackfillErrorCode
readList :: ReadS [BackfillErrorCode]
$creadList :: ReadS [BackfillErrorCode]
readsPrec :: Int -> ReadS BackfillErrorCode
$creadsPrec :: Int -> ReadS BackfillErrorCode
Prelude.Read,
BackfillErrorCode -> BackfillErrorCode -> Bool
(BackfillErrorCode -> BackfillErrorCode -> Bool)
-> (BackfillErrorCode -> BackfillErrorCode -> Bool)
-> Eq BackfillErrorCode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BackfillErrorCode -> BackfillErrorCode -> Bool
$c/= :: BackfillErrorCode -> BackfillErrorCode -> Bool
== :: BackfillErrorCode -> BackfillErrorCode -> Bool
$c== :: BackfillErrorCode -> BackfillErrorCode -> Bool
Prelude.Eq,
Eq BackfillErrorCode
Eq BackfillErrorCode
-> (BackfillErrorCode -> BackfillErrorCode -> Ordering)
-> (BackfillErrorCode -> BackfillErrorCode -> Bool)
-> (BackfillErrorCode -> BackfillErrorCode -> Bool)
-> (BackfillErrorCode -> BackfillErrorCode -> Bool)
-> (BackfillErrorCode -> BackfillErrorCode -> Bool)
-> (BackfillErrorCode -> BackfillErrorCode -> BackfillErrorCode)
-> (BackfillErrorCode -> BackfillErrorCode -> BackfillErrorCode)
-> Ord BackfillErrorCode
BackfillErrorCode -> BackfillErrorCode -> Bool
BackfillErrorCode -> BackfillErrorCode -> Ordering
BackfillErrorCode -> BackfillErrorCode -> BackfillErrorCode
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 :: BackfillErrorCode -> BackfillErrorCode -> BackfillErrorCode
$cmin :: BackfillErrorCode -> BackfillErrorCode -> BackfillErrorCode
max :: BackfillErrorCode -> BackfillErrorCode -> BackfillErrorCode
$cmax :: BackfillErrorCode -> BackfillErrorCode -> BackfillErrorCode
>= :: BackfillErrorCode -> BackfillErrorCode -> Bool
$c>= :: BackfillErrorCode -> BackfillErrorCode -> Bool
> :: BackfillErrorCode -> BackfillErrorCode -> Bool
$c> :: BackfillErrorCode -> BackfillErrorCode -> Bool
<= :: BackfillErrorCode -> BackfillErrorCode -> Bool
$c<= :: BackfillErrorCode -> BackfillErrorCode -> Bool
< :: BackfillErrorCode -> BackfillErrorCode -> Bool
$c< :: BackfillErrorCode -> BackfillErrorCode -> Bool
compare :: BackfillErrorCode -> BackfillErrorCode -> Ordering
$ccompare :: BackfillErrorCode -> BackfillErrorCode -> Ordering
$cp1Ord :: Eq BackfillErrorCode
Prelude.Ord,
(forall x. BackfillErrorCode -> Rep BackfillErrorCode x)
-> (forall x. Rep BackfillErrorCode x -> BackfillErrorCode)
-> Generic BackfillErrorCode
forall x. Rep BackfillErrorCode x -> BackfillErrorCode
forall x. BackfillErrorCode -> Rep BackfillErrorCode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep BackfillErrorCode x -> BackfillErrorCode
$cfrom :: forall x. BackfillErrorCode -> Rep BackfillErrorCode x
Prelude.Generic
)
deriving newtype
( Int -> BackfillErrorCode -> Int
BackfillErrorCode -> Int
(Int -> BackfillErrorCode -> Int)
-> (BackfillErrorCode -> Int) -> Hashable BackfillErrorCode
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: BackfillErrorCode -> Int
$chash :: BackfillErrorCode -> Int
hashWithSalt :: Int -> BackfillErrorCode -> Int
$chashWithSalt :: Int -> BackfillErrorCode -> Int
Prelude.Hashable,
BackfillErrorCode -> ()
(BackfillErrorCode -> ()) -> NFData BackfillErrorCode
forall a. (a -> ()) -> NFData a
rnf :: BackfillErrorCode -> ()
$crnf :: BackfillErrorCode -> ()
Prelude.NFData,
Text -> Either String BackfillErrorCode
(Text -> Either String BackfillErrorCode)
-> FromText BackfillErrorCode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String BackfillErrorCode
$cfromText :: Text -> Either String BackfillErrorCode
Core.FromText,
BackfillErrorCode -> Text
(BackfillErrorCode -> Text) -> ToText BackfillErrorCode
forall a. (a -> Text) -> ToText a
toText :: BackfillErrorCode -> Text
$ctoText :: BackfillErrorCode -> Text
Core.ToText,
BackfillErrorCode -> ByteString
(BackfillErrorCode -> ByteString) -> ToByteString BackfillErrorCode
forall a. (a -> ByteString) -> ToByteString a
toBS :: BackfillErrorCode -> ByteString
$ctoBS :: BackfillErrorCode -> ByteString
Core.ToByteString,
BackfillErrorCode -> ByteStringBuilder
(BackfillErrorCode -> ByteStringBuilder) -> ToLog BackfillErrorCode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: BackfillErrorCode -> ByteStringBuilder
$cbuild :: BackfillErrorCode -> ByteStringBuilder
Core.ToLog,
HeaderName -> BackfillErrorCode -> [Header]
(HeaderName -> BackfillErrorCode -> [Header])
-> ToHeader BackfillErrorCode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> BackfillErrorCode -> [Header]
$ctoHeader :: HeaderName -> BackfillErrorCode -> [Header]
Core.ToHeader,
BackfillErrorCode -> QueryString
(BackfillErrorCode -> QueryString) -> ToQuery BackfillErrorCode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: BackfillErrorCode -> QueryString
$ctoQuery :: BackfillErrorCode -> QueryString
Core.ToQuery,
Value -> Parser [BackfillErrorCode]
Value -> Parser BackfillErrorCode
(Value -> Parser BackfillErrorCode)
-> (Value -> Parser [BackfillErrorCode])
-> FromJSON BackfillErrorCode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [BackfillErrorCode]
$cparseJSONList :: Value -> Parser [BackfillErrorCode]
parseJSON :: Value -> Parser BackfillErrorCode
$cparseJSON :: Value -> Parser BackfillErrorCode
Core.FromJSON,
FromJSONKeyFunction [BackfillErrorCode]
FromJSONKeyFunction BackfillErrorCode
FromJSONKeyFunction BackfillErrorCode
-> FromJSONKeyFunction [BackfillErrorCode]
-> FromJSONKey BackfillErrorCode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [BackfillErrorCode]
$cfromJSONKeyList :: FromJSONKeyFunction [BackfillErrorCode]
fromJSONKey :: FromJSONKeyFunction BackfillErrorCode
$cfromJSONKey :: FromJSONKeyFunction BackfillErrorCode
Core.FromJSONKey,
[BackfillErrorCode] -> Encoding
[BackfillErrorCode] -> Value
BackfillErrorCode -> Encoding
BackfillErrorCode -> Value
(BackfillErrorCode -> Value)
-> (BackfillErrorCode -> Encoding)
-> ([BackfillErrorCode] -> Value)
-> ([BackfillErrorCode] -> Encoding)
-> ToJSON BackfillErrorCode
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [BackfillErrorCode] -> Encoding
$ctoEncodingList :: [BackfillErrorCode] -> Encoding
toJSONList :: [BackfillErrorCode] -> Value
$ctoJSONList :: [BackfillErrorCode] -> Value
toEncoding :: BackfillErrorCode -> Encoding
$ctoEncoding :: BackfillErrorCode -> Encoding
toJSON :: BackfillErrorCode -> Value
$ctoJSON :: BackfillErrorCode -> Value
Core.ToJSON,
ToJSONKeyFunction [BackfillErrorCode]
ToJSONKeyFunction BackfillErrorCode
ToJSONKeyFunction BackfillErrorCode
-> ToJSONKeyFunction [BackfillErrorCode]
-> ToJSONKey BackfillErrorCode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [BackfillErrorCode]
$ctoJSONKeyList :: ToJSONKeyFunction [BackfillErrorCode]
toJSONKey :: ToJSONKeyFunction BackfillErrorCode
$ctoJSONKey :: ToJSONKeyFunction BackfillErrorCode
Core.ToJSONKey,
[Node] -> Either String BackfillErrorCode
([Node] -> Either String BackfillErrorCode)
-> FromXML BackfillErrorCode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String BackfillErrorCode
$cparseXML :: [Node] -> Either String BackfillErrorCode
Core.FromXML,
BackfillErrorCode -> XML
(BackfillErrorCode -> XML) -> ToXML BackfillErrorCode
forall a. (a -> XML) -> ToXML a
toXML :: BackfillErrorCode -> XML
$ctoXML :: BackfillErrorCode -> XML
Core.ToXML
)
pattern BackfillErrorCode_ENCRYPTED_PARTITION_ERROR :: BackfillErrorCode
pattern $bBackfillErrorCode_ENCRYPTED_PARTITION_ERROR :: BackfillErrorCode
$mBackfillErrorCode_ENCRYPTED_PARTITION_ERROR :: forall r. BackfillErrorCode -> (Void# -> r) -> (Void# -> r) -> r
BackfillErrorCode_ENCRYPTED_PARTITION_ERROR = BackfillErrorCode' "ENCRYPTED_PARTITION_ERROR"
pattern BackfillErrorCode_INTERNAL_ERROR :: BackfillErrorCode
pattern $bBackfillErrorCode_INTERNAL_ERROR :: BackfillErrorCode
$mBackfillErrorCode_INTERNAL_ERROR :: forall r. BackfillErrorCode -> (Void# -> r) -> (Void# -> r) -> r
BackfillErrorCode_INTERNAL_ERROR = BackfillErrorCode' "INTERNAL_ERROR"
pattern BackfillErrorCode_INVALID_PARTITION_TYPE_DATA_ERROR :: BackfillErrorCode
pattern $bBackfillErrorCode_INVALID_PARTITION_TYPE_DATA_ERROR :: BackfillErrorCode
$mBackfillErrorCode_INVALID_PARTITION_TYPE_DATA_ERROR :: forall r. BackfillErrorCode -> (Void# -> r) -> (Void# -> r) -> r
BackfillErrorCode_INVALID_PARTITION_TYPE_DATA_ERROR = BackfillErrorCode' "INVALID_PARTITION_TYPE_DATA_ERROR"
pattern BackfillErrorCode_MISSING_PARTITION_VALUE_ERROR :: BackfillErrorCode
pattern $bBackfillErrorCode_MISSING_PARTITION_VALUE_ERROR :: BackfillErrorCode
$mBackfillErrorCode_MISSING_PARTITION_VALUE_ERROR :: forall r. BackfillErrorCode -> (Void# -> r) -> (Void# -> r) -> r
BackfillErrorCode_MISSING_PARTITION_VALUE_ERROR = BackfillErrorCode' "MISSING_PARTITION_VALUE_ERROR"
pattern BackfillErrorCode_UNSUPPORTED_PARTITION_CHARACTER_ERROR :: BackfillErrorCode
pattern $bBackfillErrorCode_UNSUPPORTED_PARTITION_CHARACTER_ERROR :: BackfillErrorCode
$mBackfillErrorCode_UNSUPPORTED_PARTITION_CHARACTER_ERROR :: forall r. BackfillErrorCode -> (Void# -> r) -> (Void# -> r) -> r
BackfillErrorCode_UNSUPPORTED_PARTITION_CHARACTER_ERROR = BackfillErrorCode' "UNSUPPORTED_PARTITION_CHARACTER_ERROR"
{-# COMPLETE
BackfillErrorCode_ENCRYPTED_PARTITION_ERROR,
BackfillErrorCode_INTERNAL_ERROR,
BackfillErrorCode_INVALID_PARTITION_TYPE_DATA_ERROR,
BackfillErrorCode_MISSING_PARTITION_VALUE_ERROR,
BackfillErrorCode_UNSUPPORTED_PARTITION_CHARACTER_ERROR,
BackfillErrorCode'
#-}