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