{-# 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.DMS.Types.EncryptionModeValue
-- 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.DMS.Types.EncryptionModeValue
  ( EncryptionModeValue
      ( ..,
        EncryptionModeValue_Sse_kms,
        EncryptionModeValue_Sse_s3
      ),
  )
where

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

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

pattern EncryptionModeValue_Sse_kms :: EncryptionModeValue
pattern $bEncryptionModeValue_Sse_kms :: EncryptionModeValue
$mEncryptionModeValue_Sse_kms :: forall r. EncryptionModeValue -> (Void# -> r) -> (Void# -> r) -> r
EncryptionModeValue_Sse_kms = EncryptionModeValue' "sse-kms"

pattern EncryptionModeValue_Sse_s3 :: EncryptionModeValue
pattern $bEncryptionModeValue_Sse_s3 :: EncryptionModeValue
$mEncryptionModeValue_Sse_s3 :: forall r. EncryptionModeValue -> (Void# -> r) -> (Void# -> r) -> r
EncryptionModeValue_Sse_s3 = EncryptionModeValue' "sse-s3"

{-# COMPLETE
  EncryptionModeValue_Sse_kms,
  EncryptionModeValue_Sse_s3,
  EncryptionModeValue'
  #-}