{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.CloudDirectory.Types.BatchReadExceptionType
( BatchReadExceptionType
( ..,
BatchReadExceptionType_AccessDeniedException,
BatchReadExceptionType_CannotListParentOfRootException,
BatchReadExceptionType_DirectoryNotEnabledException,
BatchReadExceptionType_FacetValidationException,
BatchReadExceptionType_InternalServiceException,
BatchReadExceptionType_InvalidArnException,
BatchReadExceptionType_InvalidNextTokenException,
BatchReadExceptionType_LimitExceededException,
BatchReadExceptionType_NotIndexException,
BatchReadExceptionType_NotNodeException,
BatchReadExceptionType_NotPolicyException,
BatchReadExceptionType_ResourceNotFoundException,
BatchReadExceptionType_ValidationException
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype BatchReadExceptionType = BatchReadExceptionType'
{ BatchReadExceptionType -> Text
fromBatchReadExceptionType ::
Core.Text
}
deriving stock
( Int -> BatchReadExceptionType -> ShowS
[BatchReadExceptionType] -> ShowS
BatchReadExceptionType -> String
(Int -> BatchReadExceptionType -> ShowS)
-> (BatchReadExceptionType -> String)
-> ([BatchReadExceptionType] -> ShowS)
-> Show BatchReadExceptionType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchReadExceptionType] -> ShowS
$cshowList :: [BatchReadExceptionType] -> ShowS
show :: BatchReadExceptionType -> String
$cshow :: BatchReadExceptionType -> String
showsPrec :: Int -> BatchReadExceptionType -> ShowS
$cshowsPrec :: Int -> BatchReadExceptionType -> ShowS
Prelude.Show,
ReadPrec [BatchReadExceptionType]
ReadPrec BatchReadExceptionType
Int -> ReadS BatchReadExceptionType
ReadS [BatchReadExceptionType]
(Int -> ReadS BatchReadExceptionType)
-> ReadS [BatchReadExceptionType]
-> ReadPrec BatchReadExceptionType
-> ReadPrec [BatchReadExceptionType]
-> Read BatchReadExceptionType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchReadExceptionType]
$creadListPrec :: ReadPrec [BatchReadExceptionType]
readPrec :: ReadPrec BatchReadExceptionType
$creadPrec :: ReadPrec BatchReadExceptionType
readList :: ReadS [BatchReadExceptionType]
$creadList :: ReadS [BatchReadExceptionType]
readsPrec :: Int -> ReadS BatchReadExceptionType
$creadsPrec :: Int -> ReadS BatchReadExceptionType
Prelude.Read,
BatchReadExceptionType -> BatchReadExceptionType -> Bool
(BatchReadExceptionType -> BatchReadExceptionType -> Bool)
-> (BatchReadExceptionType -> BatchReadExceptionType -> Bool)
-> Eq BatchReadExceptionType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchReadExceptionType -> BatchReadExceptionType -> Bool
$c/= :: BatchReadExceptionType -> BatchReadExceptionType -> Bool
== :: BatchReadExceptionType -> BatchReadExceptionType -> Bool
$c== :: BatchReadExceptionType -> BatchReadExceptionType -> Bool
Prelude.Eq,
Eq BatchReadExceptionType
Eq BatchReadExceptionType
-> (BatchReadExceptionType -> BatchReadExceptionType -> Ordering)
-> (BatchReadExceptionType -> BatchReadExceptionType -> Bool)
-> (BatchReadExceptionType -> BatchReadExceptionType -> Bool)
-> (BatchReadExceptionType -> BatchReadExceptionType -> Bool)
-> (BatchReadExceptionType -> BatchReadExceptionType -> Bool)
-> (BatchReadExceptionType
-> BatchReadExceptionType -> BatchReadExceptionType)
-> (BatchReadExceptionType
-> BatchReadExceptionType -> BatchReadExceptionType)
-> Ord BatchReadExceptionType
BatchReadExceptionType -> BatchReadExceptionType -> Bool
BatchReadExceptionType -> BatchReadExceptionType -> Ordering
BatchReadExceptionType
-> BatchReadExceptionType -> BatchReadExceptionType
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 :: BatchReadExceptionType
-> BatchReadExceptionType -> BatchReadExceptionType
$cmin :: BatchReadExceptionType
-> BatchReadExceptionType -> BatchReadExceptionType
max :: BatchReadExceptionType
-> BatchReadExceptionType -> BatchReadExceptionType
$cmax :: BatchReadExceptionType
-> BatchReadExceptionType -> BatchReadExceptionType
>= :: BatchReadExceptionType -> BatchReadExceptionType -> Bool
$c>= :: BatchReadExceptionType -> BatchReadExceptionType -> Bool
> :: BatchReadExceptionType -> BatchReadExceptionType -> Bool
$c> :: BatchReadExceptionType -> BatchReadExceptionType -> Bool
<= :: BatchReadExceptionType -> BatchReadExceptionType -> Bool
$c<= :: BatchReadExceptionType -> BatchReadExceptionType -> Bool
< :: BatchReadExceptionType -> BatchReadExceptionType -> Bool
$c< :: BatchReadExceptionType -> BatchReadExceptionType -> Bool
compare :: BatchReadExceptionType -> BatchReadExceptionType -> Ordering
$ccompare :: BatchReadExceptionType -> BatchReadExceptionType -> Ordering
$cp1Ord :: Eq BatchReadExceptionType
Prelude.Ord,
(forall x. BatchReadExceptionType -> Rep BatchReadExceptionType x)
-> (forall x.
Rep BatchReadExceptionType x -> BatchReadExceptionType)
-> Generic BatchReadExceptionType
forall x. Rep BatchReadExceptionType x -> BatchReadExceptionType
forall x. BatchReadExceptionType -> Rep BatchReadExceptionType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep BatchReadExceptionType x -> BatchReadExceptionType
$cfrom :: forall x. BatchReadExceptionType -> Rep BatchReadExceptionType x
Prelude.Generic
)
deriving newtype
( Int -> BatchReadExceptionType -> Int
BatchReadExceptionType -> Int
(Int -> BatchReadExceptionType -> Int)
-> (BatchReadExceptionType -> Int)
-> Hashable BatchReadExceptionType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: BatchReadExceptionType -> Int
$chash :: BatchReadExceptionType -> Int
hashWithSalt :: Int -> BatchReadExceptionType -> Int
$chashWithSalt :: Int -> BatchReadExceptionType -> Int
Prelude.Hashable,
BatchReadExceptionType -> ()
(BatchReadExceptionType -> ()) -> NFData BatchReadExceptionType
forall a. (a -> ()) -> NFData a
rnf :: BatchReadExceptionType -> ()
$crnf :: BatchReadExceptionType -> ()
Prelude.NFData,
Text -> Either String BatchReadExceptionType
(Text -> Either String BatchReadExceptionType)
-> FromText BatchReadExceptionType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String BatchReadExceptionType
$cfromText :: Text -> Either String BatchReadExceptionType
Core.FromText,
BatchReadExceptionType -> Text
(BatchReadExceptionType -> Text) -> ToText BatchReadExceptionType
forall a. (a -> Text) -> ToText a
toText :: BatchReadExceptionType -> Text
$ctoText :: BatchReadExceptionType -> Text
Core.ToText,
BatchReadExceptionType -> ByteString
(BatchReadExceptionType -> ByteString)
-> ToByteString BatchReadExceptionType
forall a. (a -> ByteString) -> ToByteString a
toBS :: BatchReadExceptionType -> ByteString
$ctoBS :: BatchReadExceptionType -> ByteString
Core.ToByteString,
BatchReadExceptionType -> ByteStringBuilder
(BatchReadExceptionType -> ByteStringBuilder)
-> ToLog BatchReadExceptionType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: BatchReadExceptionType -> ByteStringBuilder
$cbuild :: BatchReadExceptionType -> ByteStringBuilder
Core.ToLog,
HeaderName -> BatchReadExceptionType -> [Header]
(HeaderName -> BatchReadExceptionType -> [Header])
-> ToHeader BatchReadExceptionType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> BatchReadExceptionType -> [Header]
$ctoHeader :: HeaderName -> BatchReadExceptionType -> [Header]
Core.ToHeader,
BatchReadExceptionType -> QueryString
(BatchReadExceptionType -> QueryString)
-> ToQuery BatchReadExceptionType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: BatchReadExceptionType -> QueryString
$ctoQuery :: BatchReadExceptionType -> QueryString
Core.ToQuery,
Value -> Parser [BatchReadExceptionType]
Value -> Parser BatchReadExceptionType
(Value -> Parser BatchReadExceptionType)
-> (Value -> Parser [BatchReadExceptionType])
-> FromJSON BatchReadExceptionType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [BatchReadExceptionType]
$cparseJSONList :: Value -> Parser [BatchReadExceptionType]
parseJSON :: Value -> Parser BatchReadExceptionType
$cparseJSON :: Value -> Parser BatchReadExceptionType
Core.FromJSON,
FromJSONKeyFunction [BatchReadExceptionType]
FromJSONKeyFunction BatchReadExceptionType
FromJSONKeyFunction BatchReadExceptionType
-> FromJSONKeyFunction [BatchReadExceptionType]
-> FromJSONKey BatchReadExceptionType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [BatchReadExceptionType]
$cfromJSONKeyList :: FromJSONKeyFunction [BatchReadExceptionType]
fromJSONKey :: FromJSONKeyFunction BatchReadExceptionType
$cfromJSONKey :: FromJSONKeyFunction BatchReadExceptionType
Core.FromJSONKey,
[BatchReadExceptionType] -> Encoding
[BatchReadExceptionType] -> Value
BatchReadExceptionType -> Encoding
BatchReadExceptionType -> Value
(BatchReadExceptionType -> Value)
-> (BatchReadExceptionType -> Encoding)
-> ([BatchReadExceptionType] -> Value)
-> ([BatchReadExceptionType] -> Encoding)
-> ToJSON BatchReadExceptionType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [BatchReadExceptionType] -> Encoding
$ctoEncodingList :: [BatchReadExceptionType] -> Encoding
toJSONList :: [BatchReadExceptionType] -> Value
$ctoJSONList :: [BatchReadExceptionType] -> Value
toEncoding :: BatchReadExceptionType -> Encoding
$ctoEncoding :: BatchReadExceptionType -> Encoding
toJSON :: BatchReadExceptionType -> Value
$ctoJSON :: BatchReadExceptionType -> Value
Core.ToJSON,
ToJSONKeyFunction [BatchReadExceptionType]
ToJSONKeyFunction BatchReadExceptionType
ToJSONKeyFunction BatchReadExceptionType
-> ToJSONKeyFunction [BatchReadExceptionType]
-> ToJSONKey BatchReadExceptionType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [BatchReadExceptionType]
$ctoJSONKeyList :: ToJSONKeyFunction [BatchReadExceptionType]
toJSONKey :: ToJSONKeyFunction BatchReadExceptionType
$ctoJSONKey :: ToJSONKeyFunction BatchReadExceptionType
Core.ToJSONKey,
[Node] -> Either String BatchReadExceptionType
([Node] -> Either String BatchReadExceptionType)
-> FromXML BatchReadExceptionType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String BatchReadExceptionType
$cparseXML :: [Node] -> Either String BatchReadExceptionType
Core.FromXML,
BatchReadExceptionType -> XML
(BatchReadExceptionType -> XML) -> ToXML BatchReadExceptionType
forall a. (a -> XML) -> ToXML a
toXML :: BatchReadExceptionType -> XML
$ctoXML :: BatchReadExceptionType -> XML
Core.ToXML
)
pattern BatchReadExceptionType_AccessDeniedException :: BatchReadExceptionType
pattern $bBatchReadExceptionType_AccessDeniedException :: BatchReadExceptionType
$mBatchReadExceptionType_AccessDeniedException :: forall r.
BatchReadExceptionType -> (Void# -> r) -> (Void# -> r) -> r
BatchReadExceptionType_AccessDeniedException = BatchReadExceptionType' "AccessDeniedException"
pattern BatchReadExceptionType_CannotListParentOfRootException :: BatchReadExceptionType
pattern $bBatchReadExceptionType_CannotListParentOfRootException :: BatchReadExceptionType
$mBatchReadExceptionType_CannotListParentOfRootException :: forall r.
BatchReadExceptionType -> (Void# -> r) -> (Void# -> r) -> r
BatchReadExceptionType_CannotListParentOfRootException = BatchReadExceptionType' "CannotListParentOfRootException"
pattern BatchReadExceptionType_DirectoryNotEnabledException :: BatchReadExceptionType
pattern $bBatchReadExceptionType_DirectoryNotEnabledException :: BatchReadExceptionType
$mBatchReadExceptionType_DirectoryNotEnabledException :: forall r.
BatchReadExceptionType -> (Void# -> r) -> (Void# -> r) -> r
BatchReadExceptionType_DirectoryNotEnabledException = BatchReadExceptionType' "DirectoryNotEnabledException"
pattern BatchReadExceptionType_FacetValidationException :: BatchReadExceptionType
pattern $bBatchReadExceptionType_FacetValidationException :: BatchReadExceptionType
$mBatchReadExceptionType_FacetValidationException :: forall r.
BatchReadExceptionType -> (Void# -> r) -> (Void# -> r) -> r
BatchReadExceptionType_FacetValidationException = BatchReadExceptionType' "FacetValidationException"
pattern BatchReadExceptionType_InternalServiceException :: BatchReadExceptionType
pattern $bBatchReadExceptionType_InternalServiceException :: BatchReadExceptionType
$mBatchReadExceptionType_InternalServiceException :: forall r.
BatchReadExceptionType -> (Void# -> r) -> (Void# -> r) -> r
BatchReadExceptionType_InternalServiceException = BatchReadExceptionType' "InternalServiceException"
pattern BatchReadExceptionType_InvalidArnException :: BatchReadExceptionType
pattern $bBatchReadExceptionType_InvalidArnException :: BatchReadExceptionType
$mBatchReadExceptionType_InvalidArnException :: forall r.
BatchReadExceptionType -> (Void# -> r) -> (Void# -> r) -> r
BatchReadExceptionType_InvalidArnException = BatchReadExceptionType' "InvalidArnException"
pattern BatchReadExceptionType_InvalidNextTokenException :: BatchReadExceptionType
pattern $bBatchReadExceptionType_InvalidNextTokenException :: BatchReadExceptionType
$mBatchReadExceptionType_InvalidNextTokenException :: forall r.
BatchReadExceptionType -> (Void# -> r) -> (Void# -> r) -> r
BatchReadExceptionType_InvalidNextTokenException = BatchReadExceptionType' "InvalidNextTokenException"
pattern BatchReadExceptionType_LimitExceededException :: BatchReadExceptionType
pattern $bBatchReadExceptionType_LimitExceededException :: BatchReadExceptionType
$mBatchReadExceptionType_LimitExceededException :: forall r.
BatchReadExceptionType -> (Void# -> r) -> (Void# -> r) -> r
BatchReadExceptionType_LimitExceededException = BatchReadExceptionType' "LimitExceededException"
pattern BatchReadExceptionType_NotIndexException :: BatchReadExceptionType
pattern $bBatchReadExceptionType_NotIndexException :: BatchReadExceptionType
$mBatchReadExceptionType_NotIndexException :: forall r.
BatchReadExceptionType -> (Void# -> r) -> (Void# -> r) -> r
BatchReadExceptionType_NotIndexException = BatchReadExceptionType' "NotIndexException"
pattern BatchReadExceptionType_NotNodeException :: BatchReadExceptionType
pattern $bBatchReadExceptionType_NotNodeException :: BatchReadExceptionType
$mBatchReadExceptionType_NotNodeException :: forall r.
BatchReadExceptionType -> (Void# -> r) -> (Void# -> r) -> r
BatchReadExceptionType_NotNodeException = BatchReadExceptionType' "NotNodeException"
pattern BatchReadExceptionType_NotPolicyException :: BatchReadExceptionType
pattern $bBatchReadExceptionType_NotPolicyException :: BatchReadExceptionType
$mBatchReadExceptionType_NotPolicyException :: forall r.
BatchReadExceptionType -> (Void# -> r) -> (Void# -> r) -> r
BatchReadExceptionType_NotPolicyException = BatchReadExceptionType' "NotPolicyException"
pattern BatchReadExceptionType_ResourceNotFoundException :: BatchReadExceptionType
pattern $bBatchReadExceptionType_ResourceNotFoundException :: BatchReadExceptionType
$mBatchReadExceptionType_ResourceNotFoundException :: forall r.
BatchReadExceptionType -> (Void# -> r) -> (Void# -> r) -> r
BatchReadExceptionType_ResourceNotFoundException = BatchReadExceptionType' "ResourceNotFoundException"
pattern BatchReadExceptionType_ValidationException :: BatchReadExceptionType
pattern $bBatchReadExceptionType_ValidationException :: BatchReadExceptionType
$mBatchReadExceptionType_ValidationException :: forall r.
BatchReadExceptionType -> (Void# -> r) -> (Void# -> r) -> r
BatchReadExceptionType_ValidationException = BatchReadExceptionType' "ValidationException"
{-# COMPLETE
BatchReadExceptionType_AccessDeniedException,
BatchReadExceptionType_CannotListParentOfRootException,
BatchReadExceptionType_DirectoryNotEnabledException,
BatchReadExceptionType_FacetValidationException,
BatchReadExceptionType_InternalServiceException,
BatchReadExceptionType_InvalidArnException,
BatchReadExceptionType_InvalidNextTokenException,
BatchReadExceptionType_LimitExceededException,
BatchReadExceptionType_NotIndexException,
BatchReadExceptionType_NotNodeException,
BatchReadExceptionType_NotPolicyException,
BatchReadExceptionType_ResourceNotFoundException,
BatchReadExceptionType_ValidationException,
BatchReadExceptionType'
#-}