{-# 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.DynamoDB.Types.BatchStatementErrorCodeEnum
-- 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.DynamoDB.Types.BatchStatementErrorCodeEnum
  ( BatchStatementErrorCodeEnum
      ( ..,
        BatchStatementErrorCodeEnum_AccessDenied,
        BatchStatementErrorCodeEnum_ConditionalCheckFailed,
        BatchStatementErrorCodeEnum_DuplicateItem,
        BatchStatementErrorCodeEnum_InternalServerError,
        BatchStatementErrorCodeEnum_ItemCollectionSizeLimitExceeded,
        BatchStatementErrorCodeEnum_ProvisionedThroughputExceeded,
        BatchStatementErrorCodeEnum_RequestLimitExceeded,
        BatchStatementErrorCodeEnum_ResourceNotFound,
        BatchStatementErrorCodeEnum_ThrottlingError,
        BatchStatementErrorCodeEnum_TransactionConflict,
        BatchStatementErrorCodeEnum_ValidationError
      ),
  )
where

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

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

pattern BatchStatementErrorCodeEnum_AccessDenied :: BatchStatementErrorCodeEnum
pattern $bBatchStatementErrorCodeEnum_AccessDenied :: BatchStatementErrorCodeEnum
$mBatchStatementErrorCodeEnum_AccessDenied :: forall r.
BatchStatementErrorCodeEnum -> (Void# -> r) -> (Void# -> r) -> r
BatchStatementErrorCodeEnum_AccessDenied = BatchStatementErrorCodeEnum' "AccessDenied"

pattern BatchStatementErrorCodeEnum_ConditionalCheckFailed :: BatchStatementErrorCodeEnum
pattern $bBatchStatementErrorCodeEnum_ConditionalCheckFailed :: BatchStatementErrorCodeEnum
$mBatchStatementErrorCodeEnum_ConditionalCheckFailed :: forall r.
BatchStatementErrorCodeEnum -> (Void# -> r) -> (Void# -> r) -> r
BatchStatementErrorCodeEnum_ConditionalCheckFailed = BatchStatementErrorCodeEnum' "ConditionalCheckFailed"

pattern BatchStatementErrorCodeEnum_DuplicateItem :: BatchStatementErrorCodeEnum
pattern $bBatchStatementErrorCodeEnum_DuplicateItem :: BatchStatementErrorCodeEnum
$mBatchStatementErrorCodeEnum_DuplicateItem :: forall r.
BatchStatementErrorCodeEnum -> (Void# -> r) -> (Void# -> r) -> r
BatchStatementErrorCodeEnum_DuplicateItem = BatchStatementErrorCodeEnum' "DuplicateItem"

pattern BatchStatementErrorCodeEnum_InternalServerError :: BatchStatementErrorCodeEnum
pattern $bBatchStatementErrorCodeEnum_InternalServerError :: BatchStatementErrorCodeEnum
$mBatchStatementErrorCodeEnum_InternalServerError :: forall r.
BatchStatementErrorCodeEnum -> (Void# -> r) -> (Void# -> r) -> r
BatchStatementErrorCodeEnum_InternalServerError = BatchStatementErrorCodeEnum' "InternalServerError"

pattern BatchStatementErrorCodeEnum_ItemCollectionSizeLimitExceeded :: BatchStatementErrorCodeEnum
pattern $bBatchStatementErrorCodeEnum_ItemCollectionSizeLimitExceeded :: BatchStatementErrorCodeEnum
$mBatchStatementErrorCodeEnum_ItemCollectionSizeLimitExceeded :: forall r.
BatchStatementErrorCodeEnum -> (Void# -> r) -> (Void# -> r) -> r
BatchStatementErrorCodeEnum_ItemCollectionSizeLimitExceeded = BatchStatementErrorCodeEnum' "ItemCollectionSizeLimitExceeded"

pattern BatchStatementErrorCodeEnum_ProvisionedThroughputExceeded :: BatchStatementErrorCodeEnum
pattern $bBatchStatementErrorCodeEnum_ProvisionedThroughputExceeded :: BatchStatementErrorCodeEnum
$mBatchStatementErrorCodeEnum_ProvisionedThroughputExceeded :: forall r.
BatchStatementErrorCodeEnum -> (Void# -> r) -> (Void# -> r) -> r
BatchStatementErrorCodeEnum_ProvisionedThroughputExceeded = BatchStatementErrorCodeEnum' "ProvisionedThroughputExceeded"

pattern BatchStatementErrorCodeEnum_RequestLimitExceeded :: BatchStatementErrorCodeEnum
pattern $bBatchStatementErrorCodeEnum_RequestLimitExceeded :: BatchStatementErrorCodeEnum
$mBatchStatementErrorCodeEnum_RequestLimitExceeded :: forall r.
BatchStatementErrorCodeEnum -> (Void# -> r) -> (Void# -> r) -> r
BatchStatementErrorCodeEnum_RequestLimitExceeded = BatchStatementErrorCodeEnum' "RequestLimitExceeded"

pattern BatchStatementErrorCodeEnum_ResourceNotFound :: BatchStatementErrorCodeEnum
pattern $bBatchStatementErrorCodeEnum_ResourceNotFound :: BatchStatementErrorCodeEnum
$mBatchStatementErrorCodeEnum_ResourceNotFound :: forall r.
BatchStatementErrorCodeEnum -> (Void# -> r) -> (Void# -> r) -> r
BatchStatementErrorCodeEnum_ResourceNotFound = BatchStatementErrorCodeEnum' "ResourceNotFound"

pattern BatchStatementErrorCodeEnum_ThrottlingError :: BatchStatementErrorCodeEnum
pattern $bBatchStatementErrorCodeEnum_ThrottlingError :: BatchStatementErrorCodeEnum
$mBatchStatementErrorCodeEnum_ThrottlingError :: forall r.
BatchStatementErrorCodeEnum -> (Void# -> r) -> (Void# -> r) -> r
BatchStatementErrorCodeEnum_ThrottlingError = BatchStatementErrorCodeEnum' "ThrottlingError"

pattern BatchStatementErrorCodeEnum_TransactionConflict :: BatchStatementErrorCodeEnum
pattern $bBatchStatementErrorCodeEnum_TransactionConflict :: BatchStatementErrorCodeEnum
$mBatchStatementErrorCodeEnum_TransactionConflict :: forall r.
BatchStatementErrorCodeEnum -> (Void# -> r) -> (Void# -> r) -> r
BatchStatementErrorCodeEnum_TransactionConflict = BatchStatementErrorCodeEnum' "TransactionConflict"

pattern BatchStatementErrorCodeEnum_ValidationError :: BatchStatementErrorCodeEnum
pattern $bBatchStatementErrorCodeEnum_ValidationError :: BatchStatementErrorCodeEnum
$mBatchStatementErrorCodeEnum_ValidationError :: forall r.
BatchStatementErrorCodeEnum -> (Void# -> r) -> (Void# -> r) -> r
BatchStatementErrorCodeEnum_ValidationError = BatchStatementErrorCodeEnum' "ValidationError"

{-# COMPLETE
  BatchStatementErrorCodeEnum_AccessDenied,
  BatchStatementErrorCodeEnum_ConditionalCheckFailed,
  BatchStatementErrorCodeEnum_DuplicateItem,
  BatchStatementErrorCodeEnum_InternalServerError,
  BatchStatementErrorCodeEnum_ItemCollectionSizeLimitExceeded,
  BatchStatementErrorCodeEnum_ProvisionedThroughputExceeded,
  BatchStatementErrorCodeEnum_RequestLimitExceeded,
  BatchStatementErrorCodeEnum_ResourceNotFound,
  BatchStatementErrorCodeEnum_ThrottlingError,
  BatchStatementErrorCodeEnum_TransactionConflict,
  BatchStatementErrorCodeEnum_ValidationError,
  BatchStatementErrorCodeEnum'
  #-}