{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Transfer.Types.ExecutionErrorType
  ( ExecutionErrorType
      ( ..,
        ExecutionErrorType_PERMISSION_DENIED
      ),
  )
where

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

newtype ExecutionErrorType = ExecutionErrorType'
  { ExecutionErrorType -> Text
fromExecutionErrorType ::
      Core.Text
  }
  deriving stock
    ( Int -> ExecutionErrorType -> ShowS
[ExecutionErrorType] -> ShowS
ExecutionErrorType -> String
(Int -> ExecutionErrorType -> ShowS)
-> (ExecutionErrorType -> String)
-> ([ExecutionErrorType] -> ShowS)
-> Show ExecutionErrorType
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]
(Int -> ReadS ExecutionErrorType)
-> ReadS [ExecutionErrorType]
-> ReadPrec ExecutionErrorType
-> ReadPrec [ExecutionErrorType]
-> Read 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
(ExecutionErrorType -> ExecutionErrorType -> Bool)
-> (ExecutionErrorType -> ExecutionErrorType -> Bool)
-> Eq ExecutionErrorType
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
Eq ExecutionErrorType
-> (ExecutionErrorType -> ExecutionErrorType -> Ordering)
-> (ExecutionErrorType -> ExecutionErrorType -> Bool)
-> (ExecutionErrorType -> ExecutionErrorType -> Bool)
-> (ExecutionErrorType -> ExecutionErrorType -> Bool)
-> (ExecutionErrorType -> ExecutionErrorType -> Bool)
-> (ExecutionErrorType -> ExecutionErrorType -> ExecutionErrorType)
-> (ExecutionErrorType -> ExecutionErrorType -> ExecutionErrorType)
-> Ord 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
$cp1Ord :: Eq ExecutionErrorType
Prelude.Ord,
      (forall x. ExecutionErrorType -> Rep ExecutionErrorType x)
-> (forall x. Rep ExecutionErrorType x -> ExecutionErrorType)
-> Generic ExecutionErrorType
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
    ( Int -> ExecutionErrorType -> Int
ExecutionErrorType -> Int
(Int -> ExecutionErrorType -> Int)
-> (ExecutionErrorType -> Int) -> Hashable ExecutionErrorType
forall 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 -> ()
(ExecutionErrorType -> ()) -> NFData ExecutionErrorType
forall a. (a -> ()) -> NFData a
rnf :: ExecutionErrorType -> ()
$crnf :: ExecutionErrorType -> ()
Prelude.NFData,
      Text -> Either String ExecutionErrorType
(Text -> Either String ExecutionErrorType)
-> FromText ExecutionErrorType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ExecutionErrorType
$cfromText :: Text -> Either String ExecutionErrorType
Core.FromText,
      ExecutionErrorType -> Text
(ExecutionErrorType -> Text) -> ToText ExecutionErrorType
forall a. (a -> Text) -> ToText a
toText :: ExecutionErrorType -> Text
$ctoText :: ExecutionErrorType -> Text
Core.ToText,
      ExecutionErrorType -> ByteString
(ExecutionErrorType -> ByteString)
-> ToByteString ExecutionErrorType
forall a. (a -> ByteString) -> ToByteString a
toBS :: ExecutionErrorType -> ByteString
$ctoBS :: ExecutionErrorType -> ByteString
Core.ToByteString,
      ExecutionErrorType -> ByteStringBuilder
(ExecutionErrorType -> ByteStringBuilder)
-> ToLog ExecutionErrorType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ExecutionErrorType -> ByteStringBuilder
$cbuild :: ExecutionErrorType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ExecutionErrorType -> [Header]
(HeaderName -> ExecutionErrorType -> [Header])
-> ToHeader ExecutionErrorType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ExecutionErrorType -> [Header]
$ctoHeader :: HeaderName -> ExecutionErrorType -> [Header]
Core.ToHeader,
      ExecutionErrorType -> QueryString
(ExecutionErrorType -> QueryString) -> ToQuery ExecutionErrorType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ExecutionErrorType -> QueryString
$ctoQuery :: ExecutionErrorType -> QueryString
Core.ToQuery,
      Value -> Parser [ExecutionErrorType]
Value -> Parser ExecutionErrorType
(Value -> Parser ExecutionErrorType)
-> (Value -> Parser [ExecutionErrorType])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [ExecutionErrorType]
FromJSONKeyFunction ExecutionErrorType
FromJSONKeyFunction ExecutionErrorType
-> FromJSONKeyFunction [ExecutionErrorType]
-> FromJSONKey ExecutionErrorType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ExecutionErrorType]
$cfromJSONKeyList :: FromJSONKeyFunction [ExecutionErrorType]
fromJSONKey :: FromJSONKeyFunction ExecutionErrorType
$cfromJSONKey :: FromJSONKeyFunction ExecutionErrorType
Core.FromJSONKey,
      [ExecutionErrorType] -> Encoding
[ExecutionErrorType] -> Value
ExecutionErrorType -> Encoding
ExecutionErrorType -> Value
(ExecutionErrorType -> Value)
-> (ExecutionErrorType -> Encoding)
-> ([ExecutionErrorType] -> Value)
-> ([ExecutionErrorType] -> Encoding)
-> ToJSON ExecutionErrorType
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
Core.ToJSON,
      ToJSONKeyFunction [ExecutionErrorType]
ToJSONKeyFunction ExecutionErrorType
ToJSONKeyFunction ExecutionErrorType
-> ToJSONKeyFunction [ExecutionErrorType]
-> ToJSONKey ExecutionErrorType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ExecutionErrorType]
$ctoJSONKeyList :: ToJSONKeyFunction [ExecutionErrorType]
toJSONKey :: ToJSONKeyFunction ExecutionErrorType
$ctoJSONKey :: ToJSONKeyFunction ExecutionErrorType
Core.ToJSONKey,
      [Node] -> Either String ExecutionErrorType
([Node] -> Either String ExecutionErrorType)
-> FromXML ExecutionErrorType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ExecutionErrorType
$cparseXML :: [Node] -> Either String ExecutionErrorType
Core.FromXML,
      ExecutionErrorType -> XML
(ExecutionErrorType -> XML) -> ToXML ExecutionErrorType
forall a. (a -> XML) -> ToXML a
toXML :: ExecutionErrorType -> XML
$ctoXML :: ExecutionErrorType -> XML
Core.ToXML
    )

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

{-# COMPLETE
  ExecutionErrorType_PERMISSION_DENIED,
  ExecutionErrorType'
  #-}