{-# 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.DAX.Types.ClusterEndpointEncryptionType
-- 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.DAX.Types.ClusterEndpointEncryptionType
  ( ClusterEndpointEncryptionType
      ( ..,
        ClusterEndpointEncryptionType_NONE,
        ClusterEndpointEncryptionType_TLS
      ),
  )
where

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

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

pattern ClusterEndpointEncryptionType_NONE :: ClusterEndpointEncryptionType
pattern $bClusterEndpointEncryptionType_NONE :: ClusterEndpointEncryptionType
$mClusterEndpointEncryptionType_NONE :: forall {r}.
ClusterEndpointEncryptionType -> ((# #) -> r) -> ((# #) -> r) -> r
ClusterEndpointEncryptionType_NONE = ClusterEndpointEncryptionType' "NONE"

pattern ClusterEndpointEncryptionType_TLS :: ClusterEndpointEncryptionType
pattern $bClusterEndpointEncryptionType_TLS :: ClusterEndpointEncryptionType
$mClusterEndpointEncryptionType_TLS :: forall {r}.
ClusterEndpointEncryptionType -> ((# #) -> r) -> ((# #) -> r) -> r
ClusterEndpointEncryptionType_TLS = ClusterEndpointEncryptionType' "TLS"

{-# COMPLETE
  ClusterEndpointEncryptionType_NONE,
  ClusterEndpointEncryptionType_TLS,
  ClusterEndpointEncryptionType'
  #-}