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