{-# 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.CatalogEncryptionMode
-- 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.CatalogEncryptionMode
  ( CatalogEncryptionMode
      ( ..,
        CatalogEncryptionMode_DISABLED,
        CatalogEncryptionMode_SSE_KMS
      ),
  )
where

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

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

pattern CatalogEncryptionMode_DISABLED :: CatalogEncryptionMode
pattern $bCatalogEncryptionMode_DISABLED :: CatalogEncryptionMode
$mCatalogEncryptionMode_DISABLED :: forall r.
CatalogEncryptionMode -> (Void# -> r) -> (Void# -> r) -> r
CatalogEncryptionMode_DISABLED = CatalogEncryptionMode' "DISABLED"

pattern CatalogEncryptionMode_SSE_KMS :: CatalogEncryptionMode
pattern $bCatalogEncryptionMode_SSE_KMS :: CatalogEncryptionMode
$mCatalogEncryptionMode_SSE_KMS :: forall r.
CatalogEncryptionMode -> (Void# -> r) -> (Void# -> r) -> r
CatalogEncryptionMode_SSE_KMS = CatalogEncryptionMode' "SSE-KMS"

{-# COMPLETE
  CatalogEncryptionMode_DISABLED,
  CatalogEncryptionMode_SSE_KMS,
  CatalogEncryptionMode'
  #-}