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