{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype S3EncryptionMode = S3EncryptionMode'
  { S3EncryptionMode -> Text
fromS3EncryptionMode ::
      Data.Text
  }
  deriving stock
    ( Int -> S3EncryptionMode -> ShowS
[S3EncryptionMode] -> ShowS
S3EncryptionMode -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq S3EncryptionMode
Int -> S3EncryptionMode -> Int
S3EncryptionMode -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: S3EncryptionMode -> ()
$crnf :: S3EncryptionMode -> ()
Prelude.NFData,
      Text -> Either String S3EncryptionMode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String S3EncryptionMode
$cfromText :: Text -> Either String S3EncryptionMode
Data.FromText,
      S3EncryptionMode -> Text
forall a. (a -> Text) -> ToText a
toText :: S3EncryptionMode -> Text
$ctoText :: S3EncryptionMode -> Text
Data.ToText,
      S3EncryptionMode -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: S3EncryptionMode -> ByteString
$ctoBS :: S3EncryptionMode -> ByteString
Data.ToByteString,
      S3EncryptionMode -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: S3EncryptionMode -> ByteStringBuilder
$cbuild :: S3EncryptionMode -> ByteStringBuilder
Data.ToLog,
      HeaderName -> S3EncryptionMode -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> S3EncryptionMode -> [Header]
$ctoHeader :: HeaderName -> S3EncryptionMode -> [Header]
Data.ToHeader,
      S3EncryptionMode -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: S3EncryptionMode -> QueryString
$ctoQuery :: S3EncryptionMode -> QueryString
Data.ToQuery,
      Value -> Parser [S3EncryptionMode]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [S3EncryptionMode]
FromJSONKeyFunction S3EncryptionMode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [S3EncryptionMode]
$cfromJSONKeyList :: FromJSONKeyFunction [S3EncryptionMode]
fromJSONKey :: FromJSONKeyFunction S3EncryptionMode
$cfromJSONKey :: FromJSONKeyFunction S3EncryptionMode
Data.FromJSONKey,
      [S3EncryptionMode] -> Encoding
[S3EncryptionMode] -> Value
S3EncryptionMode -> Encoding
S3EncryptionMode -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [S3EncryptionMode]
ToJSONKeyFunction S3EncryptionMode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [S3EncryptionMode]
$ctoJSONKeyList :: ToJSONKeyFunction [S3EncryptionMode]
toJSONKey :: ToJSONKeyFunction S3EncryptionMode
$ctoJSONKey :: ToJSONKeyFunction S3EncryptionMode
Data.ToJSONKey,
      [Node] -> Either String S3EncryptionMode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String S3EncryptionMode
$cparseXML :: [Node] -> Either String S3EncryptionMode
Data.FromXML,
      S3EncryptionMode -> XML
forall a. (a -> XML) -> ToXML a
toXML :: S3EncryptionMode -> XML
$ctoXML :: S3EncryptionMode -> XML
Data.ToXML
    )

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

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

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

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