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