{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Transfer.Types.ExecutionErrorType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Transfer.Types.ExecutionErrorType
  ( ExecutionErrorType
      ( ..,
        ExecutionErrorType_ALREADY_EXISTS,
        ExecutionErrorType_BAD_REQUEST,
        ExecutionErrorType_CUSTOM_STEP_FAILED,
        ExecutionErrorType_INTERNAL_SERVER_ERROR,
        ExecutionErrorType_NOT_FOUND,
        ExecutionErrorType_PERMISSION_DENIED,
        ExecutionErrorType_THROTTLED,
        ExecutionErrorType_TIMEOUT
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype ExecutionErrorType = ExecutionErrorType'
  { ExecutionErrorType -> Text
fromExecutionErrorType ::
      Data.Text
  }
  deriving stock
    ( Int -> ExecutionErrorType -> ShowS
[ExecutionErrorType] -> ShowS
ExecutionErrorType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ExecutionErrorType] -> ShowS
$cshowList :: [ExecutionErrorType] -> ShowS
show :: ExecutionErrorType -> String
$cshow :: ExecutionErrorType -> String
showsPrec :: Int -> ExecutionErrorType -> ShowS
$cshowsPrec :: Int -> ExecutionErrorType -> ShowS
Prelude.Show,
      ReadPrec [ExecutionErrorType]
ReadPrec ExecutionErrorType
Int -> ReadS ExecutionErrorType
ReadS [ExecutionErrorType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ExecutionErrorType]
$creadListPrec :: ReadPrec [ExecutionErrorType]
readPrec :: ReadPrec ExecutionErrorType
$creadPrec :: ReadPrec ExecutionErrorType
readList :: ReadS [ExecutionErrorType]
$creadList :: ReadS [ExecutionErrorType]
readsPrec :: Int -> ReadS ExecutionErrorType
$creadsPrec :: Int -> ReadS ExecutionErrorType
Prelude.Read,
      ExecutionErrorType -> ExecutionErrorType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ExecutionErrorType -> ExecutionErrorType -> Bool
$c/= :: ExecutionErrorType -> ExecutionErrorType -> Bool
== :: ExecutionErrorType -> ExecutionErrorType -> Bool
$c== :: ExecutionErrorType -> ExecutionErrorType -> Bool
Prelude.Eq,
      Eq ExecutionErrorType
ExecutionErrorType -> ExecutionErrorType -> Bool
ExecutionErrorType -> ExecutionErrorType -> Ordering
ExecutionErrorType -> ExecutionErrorType -> ExecutionErrorType
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 :: ExecutionErrorType -> ExecutionErrorType -> ExecutionErrorType
$cmin :: ExecutionErrorType -> ExecutionErrorType -> ExecutionErrorType
max :: ExecutionErrorType -> ExecutionErrorType -> ExecutionErrorType
$cmax :: ExecutionErrorType -> ExecutionErrorType -> ExecutionErrorType
>= :: ExecutionErrorType -> ExecutionErrorType -> Bool
$c>= :: ExecutionErrorType -> ExecutionErrorType -> Bool
> :: ExecutionErrorType -> ExecutionErrorType -> Bool
$c> :: ExecutionErrorType -> ExecutionErrorType -> Bool
<= :: ExecutionErrorType -> ExecutionErrorType -> Bool
$c<= :: ExecutionErrorType -> ExecutionErrorType -> Bool
< :: ExecutionErrorType -> ExecutionErrorType -> Bool
$c< :: ExecutionErrorType -> ExecutionErrorType -> Bool
compare :: ExecutionErrorType -> ExecutionErrorType -> Ordering
$ccompare :: ExecutionErrorType -> ExecutionErrorType -> Ordering
Prelude.Ord,
      forall x. Rep ExecutionErrorType x -> ExecutionErrorType
forall x. ExecutionErrorType -> Rep ExecutionErrorType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ExecutionErrorType x -> ExecutionErrorType
$cfrom :: forall x. ExecutionErrorType -> Rep ExecutionErrorType x
Prelude.Generic
    )
  deriving newtype
    ( Eq ExecutionErrorType
Int -> ExecutionErrorType -> Int
ExecutionErrorType -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ExecutionErrorType -> Int
$chash :: ExecutionErrorType -> Int
hashWithSalt :: Int -> ExecutionErrorType -> Int
$chashWithSalt :: Int -> ExecutionErrorType -> Int
Prelude.Hashable,
      ExecutionErrorType -> ()
forall a. (a -> ()) -> NFData a
rnf :: ExecutionErrorType -> ()
$crnf :: ExecutionErrorType -> ()
Prelude.NFData,
      Text -> Either String ExecutionErrorType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ExecutionErrorType
$cfromText :: Text -> Either String ExecutionErrorType
Data.FromText,
      ExecutionErrorType -> Text
forall a. (a -> Text) -> ToText a
toText :: ExecutionErrorType -> Text
$ctoText :: ExecutionErrorType -> Text
Data.ToText,
      ExecutionErrorType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: ExecutionErrorType -> ByteString
$ctoBS :: ExecutionErrorType -> ByteString
Data.ToByteString,
      ExecutionErrorType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ExecutionErrorType -> ByteStringBuilder
$cbuild :: ExecutionErrorType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> ExecutionErrorType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ExecutionErrorType -> [Header]
$ctoHeader :: HeaderName -> ExecutionErrorType -> [Header]
Data.ToHeader,
      ExecutionErrorType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ExecutionErrorType -> QueryString
$ctoQuery :: ExecutionErrorType -> QueryString
Data.ToQuery,
      Value -> Parser [ExecutionErrorType]
Value -> Parser ExecutionErrorType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ExecutionErrorType]
$cparseJSONList :: Value -> Parser [ExecutionErrorType]
parseJSON :: Value -> Parser ExecutionErrorType
$cparseJSON :: Value -> Parser ExecutionErrorType
Data.FromJSON,
      FromJSONKeyFunction [ExecutionErrorType]
FromJSONKeyFunction ExecutionErrorType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ExecutionErrorType]
$cfromJSONKeyList :: FromJSONKeyFunction [ExecutionErrorType]
fromJSONKey :: FromJSONKeyFunction ExecutionErrorType
$cfromJSONKey :: FromJSONKeyFunction ExecutionErrorType
Data.FromJSONKey,
      [ExecutionErrorType] -> Encoding
[ExecutionErrorType] -> Value
ExecutionErrorType -> Encoding
ExecutionErrorType -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ExecutionErrorType] -> Encoding
$ctoEncodingList :: [ExecutionErrorType] -> Encoding
toJSONList :: [ExecutionErrorType] -> Value
$ctoJSONList :: [ExecutionErrorType] -> Value
toEncoding :: ExecutionErrorType -> Encoding
$ctoEncoding :: ExecutionErrorType -> Encoding
toJSON :: ExecutionErrorType -> Value
$ctoJSON :: ExecutionErrorType -> Value
Data.ToJSON,
      ToJSONKeyFunction [ExecutionErrorType]
ToJSONKeyFunction ExecutionErrorType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ExecutionErrorType]
$ctoJSONKeyList :: ToJSONKeyFunction [ExecutionErrorType]
toJSONKey :: ToJSONKeyFunction ExecutionErrorType
$ctoJSONKey :: ToJSONKeyFunction ExecutionErrorType
Data.ToJSONKey,
      [Node] -> Either String ExecutionErrorType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ExecutionErrorType
$cparseXML :: [Node] -> Either String ExecutionErrorType
Data.FromXML,
      ExecutionErrorType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: ExecutionErrorType -> XML
$ctoXML :: ExecutionErrorType -> XML
Data.ToXML
    )

pattern ExecutionErrorType_ALREADY_EXISTS :: ExecutionErrorType
pattern $bExecutionErrorType_ALREADY_EXISTS :: ExecutionErrorType
$mExecutionErrorType_ALREADY_EXISTS :: forall {r}. ExecutionErrorType -> ((# #) -> r) -> ((# #) -> r) -> r
ExecutionErrorType_ALREADY_EXISTS = ExecutionErrorType' "ALREADY_EXISTS"

pattern ExecutionErrorType_BAD_REQUEST :: ExecutionErrorType
pattern $bExecutionErrorType_BAD_REQUEST :: ExecutionErrorType
$mExecutionErrorType_BAD_REQUEST :: forall {r}. ExecutionErrorType -> ((# #) -> r) -> ((# #) -> r) -> r
ExecutionErrorType_BAD_REQUEST = ExecutionErrorType' "BAD_REQUEST"

pattern ExecutionErrorType_CUSTOM_STEP_FAILED :: ExecutionErrorType
pattern $bExecutionErrorType_CUSTOM_STEP_FAILED :: ExecutionErrorType
$mExecutionErrorType_CUSTOM_STEP_FAILED :: forall {r}. ExecutionErrorType -> ((# #) -> r) -> ((# #) -> r) -> r
ExecutionErrorType_CUSTOM_STEP_FAILED = ExecutionErrorType' "CUSTOM_STEP_FAILED"

pattern ExecutionErrorType_INTERNAL_SERVER_ERROR :: ExecutionErrorType
pattern $bExecutionErrorType_INTERNAL_SERVER_ERROR :: ExecutionErrorType
$mExecutionErrorType_INTERNAL_SERVER_ERROR :: forall {r}. ExecutionErrorType -> ((# #) -> r) -> ((# #) -> r) -> r
ExecutionErrorType_INTERNAL_SERVER_ERROR = ExecutionErrorType' "INTERNAL_SERVER_ERROR"

pattern ExecutionErrorType_NOT_FOUND :: ExecutionErrorType
pattern $bExecutionErrorType_NOT_FOUND :: ExecutionErrorType
$mExecutionErrorType_NOT_FOUND :: forall {r}. ExecutionErrorType -> ((# #) -> r) -> ((# #) -> r) -> r
ExecutionErrorType_NOT_FOUND = ExecutionErrorType' "NOT_FOUND"

pattern ExecutionErrorType_PERMISSION_DENIED :: ExecutionErrorType
pattern $bExecutionErrorType_PERMISSION_DENIED :: ExecutionErrorType
$mExecutionErrorType_PERMISSION_DENIED :: forall {r}. ExecutionErrorType -> ((# #) -> r) -> ((# #) -> r) -> r
ExecutionErrorType_PERMISSION_DENIED = ExecutionErrorType' "PERMISSION_DENIED"

pattern ExecutionErrorType_THROTTLED :: ExecutionErrorType
pattern $bExecutionErrorType_THROTTLED :: ExecutionErrorType
$mExecutionErrorType_THROTTLED :: forall {r}. ExecutionErrorType -> ((# #) -> r) -> ((# #) -> r) -> r
ExecutionErrorType_THROTTLED = ExecutionErrorType' "THROTTLED"

pattern ExecutionErrorType_TIMEOUT :: ExecutionErrorType
pattern $bExecutionErrorType_TIMEOUT :: ExecutionErrorType
$mExecutionErrorType_TIMEOUT :: forall {r}. ExecutionErrorType -> ((# #) -> r) -> ((# #) -> r) -> r
ExecutionErrorType_TIMEOUT = ExecutionErrorType' "TIMEOUT"

{-# COMPLETE
  ExecutionErrorType_ALREADY_EXISTS,
  ExecutionErrorType_BAD_REQUEST,
  ExecutionErrorType_CUSTOM_STEP_FAILED,
  ExecutionErrorType_INTERNAL_SERVER_ERROR,
  ExecutionErrorType_NOT_FOUND,
  ExecutionErrorType_PERMISSION_DENIED,
  ExecutionErrorType_THROTTLED,
  ExecutionErrorType_TIMEOUT,
  ExecutionErrorType'
  #-}