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