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