{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.CloudFront.Types.SslProtocol
( SslProtocol
( ..,
SslProtocol_SSLv3,
SslProtocol_TLSv1,
SslProtocol_TLSv1_1,
SslProtocol_TLSv1_2
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype SslProtocol = SslProtocol'
{ SslProtocol -> Text
fromSslProtocol ::
Data.Text
}
deriving stock
( Int -> SslProtocol -> ShowS
[SslProtocol] -> ShowS
SslProtocol -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SslProtocol] -> ShowS
$cshowList :: [SslProtocol] -> ShowS
show :: SslProtocol -> String
$cshow :: SslProtocol -> String
showsPrec :: Int -> SslProtocol -> ShowS
$cshowsPrec :: Int -> SslProtocol -> ShowS
Prelude.Show,
ReadPrec [SslProtocol]
ReadPrec SslProtocol
Int -> ReadS SslProtocol
ReadS [SslProtocol]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SslProtocol]
$creadListPrec :: ReadPrec [SslProtocol]
readPrec :: ReadPrec SslProtocol
$creadPrec :: ReadPrec SslProtocol
readList :: ReadS [SslProtocol]
$creadList :: ReadS [SslProtocol]
readsPrec :: Int -> ReadS SslProtocol
$creadsPrec :: Int -> ReadS SslProtocol
Prelude.Read,
SslProtocol -> SslProtocol -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SslProtocol -> SslProtocol -> Bool
$c/= :: SslProtocol -> SslProtocol -> Bool
== :: SslProtocol -> SslProtocol -> Bool
$c== :: SslProtocol -> SslProtocol -> Bool
Prelude.Eq,
Eq SslProtocol
SslProtocol -> SslProtocol -> Bool
SslProtocol -> SslProtocol -> Ordering
SslProtocol -> SslProtocol -> SslProtocol
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 :: SslProtocol -> SslProtocol -> SslProtocol
$cmin :: SslProtocol -> SslProtocol -> SslProtocol
max :: SslProtocol -> SslProtocol -> SslProtocol
$cmax :: SslProtocol -> SslProtocol -> SslProtocol
>= :: SslProtocol -> SslProtocol -> Bool
$c>= :: SslProtocol -> SslProtocol -> Bool
> :: SslProtocol -> SslProtocol -> Bool
$c> :: SslProtocol -> SslProtocol -> Bool
<= :: SslProtocol -> SslProtocol -> Bool
$c<= :: SslProtocol -> SslProtocol -> Bool
< :: SslProtocol -> SslProtocol -> Bool
$c< :: SslProtocol -> SslProtocol -> Bool
compare :: SslProtocol -> SslProtocol -> Ordering
$ccompare :: SslProtocol -> SslProtocol -> Ordering
Prelude.Ord,
forall x. Rep SslProtocol x -> SslProtocol
forall x. SslProtocol -> Rep SslProtocol x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep SslProtocol x -> SslProtocol
$cfrom :: forall x. SslProtocol -> Rep SslProtocol x
Prelude.Generic
)
deriving newtype
( Eq SslProtocol
Int -> SslProtocol -> Int
SslProtocol -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: SslProtocol -> Int
$chash :: SslProtocol -> Int
hashWithSalt :: Int -> SslProtocol -> Int
$chashWithSalt :: Int -> SslProtocol -> Int
Prelude.Hashable,
SslProtocol -> ()
forall a. (a -> ()) -> NFData a
rnf :: SslProtocol -> ()
$crnf :: SslProtocol -> ()
Prelude.NFData,
Text -> Either String SslProtocol
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String SslProtocol
$cfromText :: Text -> Either String SslProtocol
Data.FromText,
SslProtocol -> Text
forall a. (a -> Text) -> ToText a
toText :: SslProtocol -> Text
$ctoText :: SslProtocol -> Text
Data.ToText,
SslProtocol -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: SslProtocol -> ByteString
$ctoBS :: SslProtocol -> ByteString
Data.ToByteString,
SslProtocol -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: SslProtocol -> ByteStringBuilder
$cbuild :: SslProtocol -> ByteStringBuilder
Data.ToLog,
HeaderName -> SslProtocol -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> SslProtocol -> [Header]
$ctoHeader :: HeaderName -> SslProtocol -> [Header]
Data.ToHeader,
SslProtocol -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: SslProtocol -> QueryString
$ctoQuery :: SslProtocol -> QueryString
Data.ToQuery,
Value -> Parser [SslProtocol]
Value -> Parser SslProtocol
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [SslProtocol]
$cparseJSONList :: Value -> Parser [SslProtocol]
parseJSON :: Value -> Parser SslProtocol
$cparseJSON :: Value -> Parser SslProtocol
Data.FromJSON,
FromJSONKeyFunction [SslProtocol]
FromJSONKeyFunction SslProtocol
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [SslProtocol]
$cfromJSONKeyList :: FromJSONKeyFunction [SslProtocol]
fromJSONKey :: FromJSONKeyFunction SslProtocol
$cfromJSONKey :: FromJSONKeyFunction SslProtocol
Data.FromJSONKey,
[SslProtocol] -> Encoding
[SslProtocol] -> Value
SslProtocol -> Encoding
SslProtocol -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [SslProtocol] -> Encoding
$ctoEncodingList :: [SslProtocol] -> Encoding
toJSONList :: [SslProtocol] -> Value
$ctoJSONList :: [SslProtocol] -> Value
toEncoding :: SslProtocol -> Encoding
$ctoEncoding :: SslProtocol -> Encoding
toJSON :: SslProtocol -> Value
$ctoJSON :: SslProtocol -> Value
Data.ToJSON,
ToJSONKeyFunction [SslProtocol]
ToJSONKeyFunction SslProtocol
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [SslProtocol]
$ctoJSONKeyList :: ToJSONKeyFunction [SslProtocol]
toJSONKey :: ToJSONKeyFunction SslProtocol
$ctoJSONKey :: ToJSONKeyFunction SslProtocol
Data.ToJSONKey,
[Node] -> Either String SslProtocol
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String SslProtocol
$cparseXML :: [Node] -> Either String SslProtocol
Data.FromXML,
SslProtocol -> XML
forall a. (a -> XML) -> ToXML a
toXML :: SslProtocol -> XML
$ctoXML :: SslProtocol -> XML
Data.ToXML
)
pattern SslProtocol_SSLv3 :: SslProtocol
pattern $bSslProtocol_SSLv3 :: SslProtocol
$mSslProtocol_SSLv3 :: forall {r}. SslProtocol -> ((# #) -> r) -> ((# #) -> r) -> r
SslProtocol_SSLv3 = SslProtocol' "SSLv3"
pattern SslProtocol_TLSv1 :: SslProtocol
pattern $bSslProtocol_TLSv1 :: SslProtocol
$mSslProtocol_TLSv1 :: forall {r}. SslProtocol -> ((# #) -> r) -> ((# #) -> r) -> r
SslProtocol_TLSv1 = SslProtocol' "TLSv1"
pattern SslProtocol_TLSv1_1 :: SslProtocol
pattern $bSslProtocol_TLSv1_1 :: SslProtocol
$mSslProtocol_TLSv1_1 :: forall {r}. SslProtocol -> ((# #) -> r) -> ((# #) -> r) -> r
SslProtocol_TLSv1_1 = SslProtocol' "TLSv1.1"
pattern SslProtocol_TLSv1_2 :: SslProtocol
pattern $bSslProtocol_TLSv1_2 :: SslProtocol
$mSslProtocol_TLSv1_2 :: forall {r}. SslProtocol -> ((# #) -> r) -> ((# #) -> r) -> r
SslProtocol_TLSv1_2 = SslProtocol' "TLSv1.2"
{-# COMPLETE
SslProtocol_SSLv3,
SslProtocol_TLSv1,
SslProtocol_TLSv1_1,
SslProtocol_TLSv1_2,
SslProtocol'
#-}