{-# 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.QLDB.Types.S3ObjectEncryptionType
-- 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.QLDB.Types.S3ObjectEncryptionType
  ( S3ObjectEncryptionType
      ( ..,
        S3ObjectEncryptionType_NO_ENCRYPTION,
        S3ObjectEncryptionType_SSE_KMS,
        S3ObjectEncryptionType_SSE_S3
      ),
  )
where

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

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

pattern S3ObjectEncryptionType_NO_ENCRYPTION :: S3ObjectEncryptionType
pattern $bS3ObjectEncryptionType_NO_ENCRYPTION :: S3ObjectEncryptionType
$mS3ObjectEncryptionType_NO_ENCRYPTION :: forall r.
S3ObjectEncryptionType -> (Void# -> r) -> (Void# -> r) -> r
S3ObjectEncryptionType_NO_ENCRYPTION = S3ObjectEncryptionType' "NO_ENCRYPTION"

pattern S3ObjectEncryptionType_SSE_KMS :: S3ObjectEncryptionType
pattern $bS3ObjectEncryptionType_SSE_KMS :: S3ObjectEncryptionType
$mS3ObjectEncryptionType_SSE_KMS :: forall r.
S3ObjectEncryptionType -> (Void# -> r) -> (Void# -> r) -> r
S3ObjectEncryptionType_SSE_KMS = S3ObjectEncryptionType' "SSE_KMS"

pattern S3ObjectEncryptionType_SSE_S3 :: S3ObjectEncryptionType
pattern $bS3ObjectEncryptionType_SSE_S3 :: S3ObjectEncryptionType
$mS3ObjectEncryptionType_SSE_S3 :: forall r.
S3ObjectEncryptionType -> (Void# -> r) -> (Void# -> r) -> r
S3ObjectEncryptionType_SSE_S3 = S3ObjectEncryptionType' "SSE_S3"

{-# COMPLETE
  S3ObjectEncryptionType_NO_ENCRYPTION,
  S3ObjectEncryptionType_SSE_KMS,
  S3ObjectEncryptionType_SSE_S3,
  S3ObjectEncryptionType'
  #-}