{-# 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.MLUserDataEncryptionModeString
-- 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.MLUserDataEncryptionModeString
  ( MLUserDataEncryptionModeString
      ( ..,
        MLUserDataEncryptionModeString_DISABLED,
        MLUserDataEncryptionModeString_SSE_KMS
      ),
  )
where

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

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

pattern MLUserDataEncryptionModeString_DISABLED :: MLUserDataEncryptionModeString
pattern $bMLUserDataEncryptionModeString_DISABLED :: MLUserDataEncryptionModeString
$mMLUserDataEncryptionModeString_DISABLED :: forall r.
MLUserDataEncryptionModeString -> (Void# -> r) -> (Void# -> r) -> r
MLUserDataEncryptionModeString_DISABLED = MLUserDataEncryptionModeString' "DISABLED"

pattern MLUserDataEncryptionModeString_SSE_KMS :: MLUserDataEncryptionModeString
pattern $bMLUserDataEncryptionModeString_SSE_KMS :: MLUserDataEncryptionModeString
$mMLUserDataEncryptionModeString_SSE_KMS :: forall r.
MLUserDataEncryptionModeString -> (Void# -> r) -> (Void# -> r) -> r
MLUserDataEncryptionModeString_SSE_KMS = MLUserDataEncryptionModeString' "SSE-KMS"

{-# COMPLETE
  MLUserDataEncryptionModeString_DISABLED,
  MLUserDataEncryptionModeString_SSE_KMS,
  MLUserDataEncryptionModeString'
  #-}