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