{-# 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.ExportFormat
-- 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.DynamoDB.Types.ExportFormat
  ( ExportFormat
      ( ..,
        ExportFormat_DYNAMODB_JSON,
        ExportFormat_ION
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import Amazonka.DynamoDB.Types.AttributeValue
import Amazonka.DynamoDB.Types.WriteRequest
import qualified Amazonka.Prelude as Prelude

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

pattern ExportFormat_DYNAMODB_JSON :: ExportFormat
pattern $bExportFormat_DYNAMODB_JSON :: ExportFormat
$mExportFormat_DYNAMODB_JSON :: forall {r}. ExportFormat -> ((# #) -> r) -> ((# #) -> r) -> r
ExportFormat_DYNAMODB_JSON = ExportFormat' "DYNAMODB_JSON"

pattern ExportFormat_ION :: ExportFormat
pattern $bExportFormat_ION :: ExportFormat
$mExportFormat_ION :: forall {r}. ExportFormat -> ((# #) -> r) -> ((# #) -> r) -> r
ExportFormat_ION = ExportFormat' "ION"

{-# COMPLETE
  ExportFormat_DYNAMODB_JSON,
  ExportFormat_ION,
  ExportFormat'
  #-}