{-# 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.Glue.Types.S3EncryptionMode
-- 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.Glue.Types.S3EncryptionMode
  ( S3EncryptionMode
      ( ..,
        S3EncryptionMode_DISABLED,
        S3EncryptionMode_SSE_KMS,
        S3EncryptionMode_SSE_S3
      ),
  )
where

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

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

pattern S3EncryptionMode_DISABLED :: S3EncryptionMode
pattern $bS3EncryptionMode_DISABLED :: S3EncryptionMode
$mS3EncryptionMode_DISABLED :: forall r. S3EncryptionMode -> (Void# -> r) -> (Void# -> r) -> r
S3EncryptionMode_DISABLED = S3EncryptionMode' "DISABLED"

pattern S3EncryptionMode_SSE_KMS :: S3EncryptionMode
pattern $bS3EncryptionMode_SSE_KMS :: S3EncryptionMode
$mS3EncryptionMode_SSE_KMS :: forall r. S3EncryptionMode -> (Void# -> r) -> (Void# -> r) -> r
S3EncryptionMode_SSE_KMS = S3EncryptionMode' "SSE-KMS"

pattern S3EncryptionMode_SSE_S3 :: S3EncryptionMode
pattern $bS3EncryptionMode_SSE_S3 :: S3EncryptionMode
$mS3EncryptionMode_SSE_S3 :: forall r. S3EncryptionMode -> (Void# -> r) -> (Void# -> r) -> r
S3EncryptionMode_SSE_S3 = S3EncryptionMode' "SSE-S3"

{-# COMPLETE
  S3EncryptionMode_DISABLED,
  S3EncryptionMode_SSE_KMS,
  S3EncryptionMode_SSE_S3,
  S3EncryptionMode'
  #-}