{-# 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.S3SseAlgorithm
-- 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.S3SseAlgorithm
  ( S3SseAlgorithm
      ( ..,
        S3SseAlgorithm_AES256,
        S3SseAlgorithm_KMS
      ),
  )
where

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

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

pattern S3SseAlgorithm_AES256 :: S3SseAlgorithm
pattern $bS3SseAlgorithm_AES256 :: S3SseAlgorithm
$mS3SseAlgorithm_AES256 :: forall r. S3SseAlgorithm -> (Void# -> r) -> (Void# -> r) -> r
S3SseAlgorithm_AES256 = S3SseAlgorithm' "AES256"

pattern S3SseAlgorithm_KMS :: S3SseAlgorithm
pattern $bS3SseAlgorithm_KMS :: S3SseAlgorithm
$mS3SseAlgorithm_KMS :: forall r. S3SseAlgorithm -> (Void# -> r) -> (Void# -> r) -> r
S3SseAlgorithm_KMS = S3SseAlgorithm' "KMS"

{-# COMPLETE
  S3SseAlgorithm_AES256,
  S3SseAlgorithm_KMS,
  S3SseAlgorithm'
  #-}