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

pattern SSEType_AES256 :: SSEType
pattern $bSSEType_AES256 :: SSEType
$mSSEType_AES256 :: forall {r}. SSEType -> ((# #) -> r) -> ((# #) -> r) -> r
SSEType_AES256 = SSEType' "AES256"

pattern SSEType_KMS :: SSEType
pattern $bSSEType_KMS :: SSEType
$mSSEType_KMS :: forall {r}. SSEType -> ((# #) -> r) -> ((# #) -> r) -> r
SSEType_KMS = SSEType' "KMS"

{-# COMPLETE
  SSEType_AES256,
  SSEType_KMS,
  SSEType'
  #-}