{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.DAX.Types.ClusterEndpointEncryptionType
( ClusterEndpointEncryptionType
( ..,
ClusterEndpointEncryptionType_NONE,
ClusterEndpointEncryptionType_TLS
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ClusterEndpointEncryptionType = ClusterEndpointEncryptionType'
{ ClusterEndpointEncryptionType -> Text
fromClusterEndpointEncryptionType ::
Core.Text
}
deriving stock
( Int -> ClusterEndpointEncryptionType -> ShowS
[ClusterEndpointEncryptionType] -> ShowS
ClusterEndpointEncryptionType -> String
(Int -> ClusterEndpointEncryptionType -> ShowS)
-> (ClusterEndpointEncryptionType -> String)
-> ([ClusterEndpointEncryptionType] -> ShowS)
-> Show ClusterEndpointEncryptionType
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]
(Int -> ReadS ClusterEndpointEncryptionType)
-> ReadS [ClusterEndpointEncryptionType]
-> ReadPrec ClusterEndpointEncryptionType
-> ReadPrec [ClusterEndpointEncryptionType]
-> Read 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
(ClusterEndpointEncryptionType
-> ClusterEndpointEncryptionType -> Bool)
-> (ClusterEndpointEncryptionType
-> ClusterEndpointEncryptionType -> Bool)
-> Eq ClusterEndpointEncryptionType
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
Eq ClusterEndpointEncryptionType
-> (ClusterEndpointEncryptionType
-> ClusterEndpointEncryptionType -> Ordering)
-> (ClusterEndpointEncryptionType
-> ClusterEndpointEncryptionType -> Bool)
-> (ClusterEndpointEncryptionType
-> ClusterEndpointEncryptionType -> Bool)
-> (ClusterEndpointEncryptionType
-> ClusterEndpointEncryptionType -> Bool)
-> (ClusterEndpointEncryptionType
-> ClusterEndpointEncryptionType -> Bool)
-> (ClusterEndpointEncryptionType
-> ClusterEndpointEncryptionType -> ClusterEndpointEncryptionType)
-> (ClusterEndpointEncryptionType
-> ClusterEndpointEncryptionType -> ClusterEndpointEncryptionType)
-> Ord 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
$cp1Ord :: Eq ClusterEndpointEncryptionType
Prelude.Ord,
(forall x.
ClusterEndpointEncryptionType
-> Rep ClusterEndpointEncryptionType x)
-> (forall x.
Rep ClusterEndpointEncryptionType x
-> ClusterEndpointEncryptionType)
-> Generic ClusterEndpointEncryptionType
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
( Int -> ClusterEndpointEncryptionType -> Int
ClusterEndpointEncryptionType -> Int
(Int -> ClusterEndpointEncryptionType -> Int)
-> (ClusterEndpointEncryptionType -> Int)
-> Hashable ClusterEndpointEncryptionType
forall 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 -> ()
(ClusterEndpointEncryptionType -> ())
-> NFData ClusterEndpointEncryptionType
forall a. (a -> ()) -> NFData a
rnf :: ClusterEndpointEncryptionType -> ()
$crnf :: ClusterEndpointEncryptionType -> ()
Prelude.NFData,
Text -> Either String ClusterEndpointEncryptionType
(Text -> Either String ClusterEndpointEncryptionType)
-> FromText ClusterEndpointEncryptionType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ClusterEndpointEncryptionType
$cfromText :: Text -> Either String ClusterEndpointEncryptionType
Core.FromText,
ClusterEndpointEncryptionType -> Text
(ClusterEndpointEncryptionType -> Text)
-> ToText ClusterEndpointEncryptionType
forall a. (a -> Text) -> ToText a
toText :: ClusterEndpointEncryptionType -> Text
$ctoText :: ClusterEndpointEncryptionType -> Text
Core.ToText,
ClusterEndpointEncryptionType -> ByteString
(ClusterEndpointEncryptionType -> ByteString)
-> ToByteString ClusterEndpointEncryptionType
forall a. (a -> ByteString) -> ToByteString a
toBS :: ClusterEndpointEncryptionType -> ByteString
$ctoBS :: ClusterEndpointEncryptionType -> ByteString
Core.ToByteString,
ClusterEndpointEncryptionType -> ByteStringBuilder
(ClusterEndpointEncryptionType -> ByteStringBuilder)
-> ToLog ClusterEndpointEncryptionType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ClusterEndpointEncryptionType -> ByteStringBuilder
$cbuild :: ClusterEndpointEncryptionType -> ByteStringBuilder
Core.ToLog,
HeaderName -> ClusterEndpointEncryptionType -> [Header]
(HeaderName -> ClusterEndpointEncryptionType -> [Header])
-> ToHeader ClusterEndpointEncryptionType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ClusterEndpointEncryptionType -> [Header]
$ctoHeader :: HeaderName -> ClusterEndpointEncryptionType -> [Header]
Core.ToHeader,
ClusterEndpointEncryptionType -> QueryString
(ClusterEndpointEncryptionType -> QueryString)
-> ToQuery ClusterEndpointEncryptionType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ClusterEndpointEncryptionType -> QueryString
$ctoQuery :: ClusterEndpointEncryptionType -> QueryString
Core.ToQuery,
Value -> Parser [ClusterEndpointEncryptionType]
Value -> Parser ClusterEndpointEncryptionType
(Value -> Parser ClusterEndpointEncryptionType)
-> (Value -> Parser [ClusterEndpointEncryptionType])
-> FromJSON 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
Core.FromJSON,
FromJSONKeyFunction [ClusterEndpointEncryptionType]
FromJSONKeyFunction ClusterEndpointEncryptionType
FromJSONKeyFunction ClusterEndpointEncryptionType
-> FromJSONKeyFunction [ClusterEndpointEncryptionType]
-> FromJSONKey ClusterEndpointEncryptionType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ClusterEndpointEncryptionType]
$cfromJSONKeyList :: FromJSONKeyFunction [ClusterEndpointEncryptionType]
fromJSONKey :: FromJSONKeyFunction ClusterEndpointEncryptionType
$cfromJSONKey :: FromJSONKeyFunction ClusterEndpointEncryptionType
Core.FromJSONKey,
[ClusterEndpointEncryptionType] -> Encoding
[ClusterEndpointEncryptionType] -> Value
ClusterEndpointEncryptionType -> Encoding
ClusterEndpointEncryptionType -> Value
(ClusterEndpointEncryptionType -> Value)
-> (ClusterEndpointEncryptionType -> Encoding)
-> ([ClusterEndpointEncryptionType] -> Value)
-> ([ClusterEndpointEncryptionType] -> Encoding)
-> ToJSON ClusterEndpointEncryptionType
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
Core.ToJSON,
ToJSONKeyFunction [ClusterEndpointEncryptionType]
ToJSONKeyFunction ClusterEndpointEncryptionType
ToJSONKeyFunction ClusterEndpointEncryptionType
-> ToJSONKeyFunction [ClusterEndpointEncryptionType]
-> ToJSONKey ClusterEndpointEncryptionType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ClusterEndpointEncryptionType]
$ctoJSONKeyList :: ToJSONKeyFunction [ClusterEndpointEncryptionType]
toJSONKey :: ToJSONKeyFunction ClusterEndpointEncryptionType
$ctoJSONKey :: ToJSONKeyFunction ClusterEndpointEncryptionType
Core.ToJSONKey,
[Node] -> Either String ClusterEndpointEncryptionType
([Node] -> Either String ClusterEndpointEncryptionType)
-> FromXML ClusterEndpointEncryptionType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ClusterEndpointEncryptionType
$cparseXML :: [Node] -> Either String ClusterEndpointEncryptionType
Core.FromXML,
ClusterEndpointEncryptionType -> XML
(ClusterEndpointEncryptionType -> XML)
-> ToXML ClusterEndpointEncryptionType
forall a. (a -> XML) -> ToXML a
toXML :: ClusterEndpointEncryptionType -> XML
$ctoXML :: ClusterEndpointEncryptionType -> XML
Core.ToXML
)
pattern ClusterEndpointEncryptionType_NONE :: ClusterEndpointEncryptionType
pattern $bClusterEndpointEncryptionType_NONE :: ClusterEndpointEncryptionType
$mClusterEndpointEncryptionType_NONE :: forall r.
ClusterEndpointEncryptionType -> (Void# -> r) -> (Void# -> r) -> r
ClusterEndpointEncryptionType_NONE = ClusterEndpointEncryptionType' "NONE"
pattern ClusterEndpointEncryptionType_TLS :: ClusterEndpointEncryptionType
pattern $bClusterEndpointEncryptionType_TLS :: ClusterEndpointEncryptionType
$mClusterEndpointEncryptionType_TLS :: forall r.
ClusterEndpointEncryptionType -> (Void# -> r) -> (Void# -> r) -> r
ClusterEndpointEncryptionType_TLS = ClusterEndpointEncryptionType' "TLS"
{-# COMPLETE
ClusterEndpointEncryptionType_NONE,
ClusterEndpointEncryptionType_TLS,
ClusterEndpointEncryptionType'
#-}