{-# 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.CloudWatchEncryptionMode
-- 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.CloudWatchEncryptionMode
  ( CloudWatchEncryptionMode
      ( ..,
        CloudWatchEncryptionMode_DISABLED,
        CloudWatchEncryptionMode_SSE_KMS
      ),
  )
where

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

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

pattern CloudWatchEncryptionMode_DISABLED :: CloudWatchEncryptionMode
pattern $bCloudWatchEncryptionMode_DISABLED :: CloudWatchEncryptionMode
$mCloudWatchEncryptionMode_DISABLED :: forall r.
CloudWatchEncryptionMode -> (Void# -> r) -> (Void# -> r) -> r
CloudWatchEncryptionMode_DISABLED = CloudWatchEncryptionMode' "DISABLED"

pattern CloudWatchEncryptionMode_SSE_KMS :: CloudWatchEncryptionMode
pattern $bCloudWatchEncryptionMode_SSE_KMS :: CloudWatchEncryptionMode
$mCloudWatchEncryptionMode_SSE_KMS :: forall r.
CloudWatchEncryptionMode -> (Void# -> r) -> (Void# -> r) -> r
CloudWatchEncryptionMode_SSE_KMS = CloudWatchEncryptionMode' "SSE-KMS"

{-# COMPLETE
  CloudWatchEncryptionMode_DISABLED,
  CloudWatchEncryptionMode_SSE_KMS,
  CloudWatchEncryptionMode'
  #-}