{-# 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.Prelude as Prelude
newtype CachePolicyQueryStringBehavior = CachePolicyQueryStringBehavior'
{ CachePolicyQueryStringBehavior -> Text
fromCachePolicyQueryStringBehavior ::
Core.Text
}
deriving stock
( Int -> CachePolicyQueryStringBehavior -> ShowS
[CachePolicyQueryStringBehavior] -> ShowS
CachePolicyQueryStringBehavior -> String
(Int -> CachePolicyQueryStringBehavior -> ShowS)
-> (CachePolicyQueryStringBehavior -> String)
-> ([CachePolicyQueryStringBehavior] -> ShowS)
-> Show CachePolicyQueryStringBehavior
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]
(Int -> ReadS CachePolicyQueryStringBehavior)
-> ReadS [CachePolicyQueryStringBehavior]
-> ReadPrec CachePolicyQueryStringBehavior
-> ReadPrec [CachePolicyQueryStringBehavior]
-> Read 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
(CachePolicyQueryStringBehavior
-> CachePolicyQueryStringBehavior -> Bool)
-> (CachePolicyQueryStringBehavior
-> CachePolicyQueryStringBehavior -> Bool)
-> Eq CachePolicyQueryStringBehavior
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
Eq CachePolicyQueryStringBehavior
-> (CachePolicyQueryStringBehavior
-> CachePolicyQueryStringBehavior -> Ordering)
-> (CachePolicyQueryStringBehavior
-> CachePolicyQueryStringBehavior -> Bool)
-> (CachePolicyQueryStringBehavior
-> CachePolicyQueryStringBehavior -> Bool)
-> (CachePolicyQueryStringBehavior
-> CachePolicyQueryStringBehavior -> Bool)
-> (CachePolicyQueryStringBehavior
-> CachePolicyQueryStringBehavior -> Bool)
-> (CachePolicyQueryStringBehavior
-> CachePolicyQueryStringBehavior
-> CachePolicyQueryStringBehavior)
-> (CachePolicyQueryStringBehavior
-> CachePolicyQueryStringBehavior
-> CachePolicyQueryStringBehavior)
-> Ord 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
$cp1Ord :: Eq CachePolicyQueryStringBehavior
Prelude.Ord,
(forall x.
CachePolicyQueryStringBehavior
-> Rep CachePolicyQueryStringBehavior x)
-> (forall x.
Rep CachePolicyQueryStringBehavior x
-> CachePolicyQueryStringBehavior)
-> Generic CachePolicyQueryStringBehavior
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
( Int -> CachePolicyQueryStringBehavior -> Int
CachePolicyQueryStringBehavior -> Int
(Int -> CachePolicyQueryStringBehavior -> Int)
-> (CachePolicyQueryStringBehavior -> Int)
-> Hashable CachePolicyQueryStringBehavior
forall 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 -> ()
(CachePolicyQueryStringBehavior -> ())
-> NFData CachePolicyQueryStringBehavior
forall a. (a -> ()) -> NFData a
rnf :: CachePolicyQueryStringBehavior -> ()
$crnf :: CachePolicyQueryStringBehavior -> ()
Prelude.NFData,
Text -> Either String CachePolicyQueryStringBehavior
(Text -> Either String CachePolicyQueryStringBehavior)
-> FromText CachePolicyQueryStringBehavior
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String CachePolicyQueryStringBehavior
$cfromText :: Text -> Either String CachePolicyQueryStringBehavior
Core.FromText,
CachePolicyQueryStringBehavior -> Text
(CachePolicyQueryStringBehavior -> Text)
-> ToText CachePolicyQueryStringBehavior
forall a. (a -> Text) -> ToText a
toText :: CachePolicyQueryStringBehavior -> Text
$ctoText :: CachePolicyQueryStringBehavior -> Text
Core.ToText,
CachePolicyQueryStringBehavior -> ByteString
(CachePolicyQueryStringBehavior -> ByteString)
-> ToByteString CachePolicyQueryStringBehavior
forall a. (a -> ByteString) -> ToByteString a
toBS :: CachePolicyQueryStringBehavior -> ByteString
$ctoBS :: CachePolicyQueryStringBehavior -> ByteString
Core.ToByteString,
CachePolicyQueryStringBehavior -> ByteStringBuilder
(CachePolicyQueryStringBehavior -> ByteStringBuilder)
-> ToLog CachePolicyQueryStringBehavior
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: CachePolicyQueryStringBehavior -> ByteStringBuilder
$cbuild :: CachePolicyQueryStringBehavior -> ByteStringBuilder
Core.ToLog,
HeaderName -> CachePolicyQueryStringBehavior -> [Header]
(HeaderName -> CachePolicyQueryStringBehavior -> [Header])
-> ToHeader CachePolicyQueryStringBehavior
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> CachePolicyQueryStringBehavior -> [Header]
$ctoHeader :: HeaderName -> CachePolicyQueryStringBehavior -> [Header]
Core.ToHeader,
CachePolicyQueryStringBehavior -> QueryString
(CachePolicyQueryStringBehavior -> QueryString)
-> ToQuery CachePolicyQueryStringBehavior
forall a. (a -> QueryString) -> ToQuery a
toQuery :: CachePolicyQueryStringBehavior -> QueryString
$ctoQuery :: CachePolicyQueryStringBehavior -> QueryString
Core.ToQuery,
Value -> Parser [CachePolicyQueryStringBehavior]
Value -> Parser CachePolicyQueryStringBehavior
(Value -> Parser CachePolicyQueryStringBehavior)
-> (Value -> Parser [CachePolicyQueryStringBehavior])
-> FromJSON 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
Core.FromJSON,
FromJSONKeyFunction [CachePolicyQueryStringBehavior]
FromJSONKeyFunction CachePolicyQueryStringBehavior
FromJSONKeyFunction CachePolicyQueryStringBehavior
-> FromJSONKeyFunction [CachePolicyQueryStringBehavior]
-> FromJSONKey CachePolicyQueryStringBehavior
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [CachePolicyQueryStringBehavior]
$cfromJSONKeyList :: FromJSONKeyFunction [CachePolicyQueryStringBehavior]
fromJSONKey :: FromJSONKeyFunction CachePolicyQueryStringBehavior
$cfromJSONKey :: FromJSONKeyFunction CachePolicyQueryStringBehavior
Core.FromJSONKey,
[CachePolicyQueryStringBehavior] -> Encoding
[CachePolicyQueryStringBehavior] -> Value
CachePolicyQueryStringBehavior -> Encoding
CachePolicyQueryStringBehavior -> Value
(CachePolicyQueryStringBehavior -> Value)
-> (CachePolicyQueryStringBehavior -> Encoding)
-> ([CachePolicyQueryStringBehavior] -> Value)
-> ([CachePolicyQueryStringBehavior] -> Encoding)
-> ToJSON CachePolicyQueryStringBehavior
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
Core.ToJSON,
ToJSONKeyFunction [CachePolicyQueryStringBehavior]
ToJSONKeyFunction CachePolicyQueryStringBehavior
ToJSONKeyFunction CachePolicyQueryStringBehavior
-> ToJSONKeyFunction [CachePolicyQueryStringBehavior]
-> ToJSONKey CachePolicyQueryStringBehavior
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [CachePolicyQueryStringBehavior]
$ctoJSONKeyList :: ToJSONKeyFunction [CachePolicyQueryStringBehavior]
toJSONKey :: ToJSONKeyFunction CachePolicyQueryStringBehavior
$ctoJSONKey :: ToJSONKeyFunction CachePolicyQueryStringBehavior
Core.ToJSONKey,
[Node] -> Either String CachePolicyQueryStringBehavior
([Node] -> Either String CachePolicyQueryStringBehavior)
-> FromXML CachePolicyQueryStringBehavior
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String CachePolicyQueryStringBehavior
$cparseXML :: [Node] -> Either String CachePolicyQueryStringBehavior
Core.FromXML,
CachePolicyQueryStringBehavior -> XML
(CachePolicyQueryStringBehavior -> XML)
-> ToXML CachePolicyQueryStringBehavior
forall a. (a -> XML) -> ToXML a
toXML :: CachePolicyQueryStringBehavior -> XML
$ctoXML :: CachePolicyQueryStringBehavior -> XML
Core.ToXML
)
pattern CachePolicyQueryStringBehavior_All :: CachePolicyQueryStringBehavior
pattern $bCachePolicyQueryStringBehavior_All :: CachePolicyQueryStringBehavior
$mCachePolicyQueryStringBehavior_All :: forall r.
CachePolicyQueryStringBehavior -> (Void# -> r) -> (Void# -> r) -> r
CachePolicyQueryStringBehavior_All = CachePolicyQueryStringBehavior' "all"
pattern CachePolicyQueryStringBehavior_AllExcept :: CachePolicyQueryStringBehavior
pattern $bCachePolicyQueryStringBehavior_AllExcept :: CachePolicyQueryStringBehavior
$mCachePolicyQueryStringBehavior_AllExcept :: forall r.
CachePolicyQueryStringBehavior -> (Void# -> r) -> (Void# -> r) -> r
CachePolicyQueryStringBehavior_AllExcept = CachePolicyQueryStringBehavior' "allExcept"
pattern CachePolicyQueryStringBehavior_None :: CachePolicyQueryStringBehavior
pattern $bCachePolicyQueryStringBehavior_None :: CachePolicyQueryStringBehavior
$mCachePolicyQueryStringBehavior_None :: forall r.
CachePolicyQueryStringBehavior -> (Void# -> r) -> (Void# -> r) -> r
CachePolicyQueryStringBehavior_None = CachePolicyQueryStringBehavior' "none"
pattern CachePolicyQueryStringBehavior_Whitelist :: CachePolicyQueryStringBehavior
pattern $bCachePolicyQueryStringBehavior_Whitelist :: CachePolicyQueryStringBehavior
$mCachePolicyQueryStringBehavior_Whitelist :: forall r.
CachePolicyQueryStringBehavior -> (Void# -> r) -> (Void# -> r) -> r
CachePolicyQueryStringBehavior_Whitelist = CachePolicyQueryStringBehavior' "whitelist"
{-# COMPLETE
CachePolicyQueryStringBehavior_All,
CachePolicyQueryStringBehavior_AllExcept,
CachePolicyQueryStringBehavior_None,
CachePolicyQueryStringBehavior_Whitelist,
CachePolicyQueryStringBehavior'
#-}