{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.CloudFront.Types.ReferrerPolicyList
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.CloudFront.Types.ReferrerPolicyList
  ( ReferrerPolicyList
      ( ..,
        ReferrerPolicyList_No_referrer,
        ReferrerPolicyList_No_referrer_when_downgrade,
        ReferrerPolicyList_Origin,
        ReferrerPolicyList_Origin_when_cross_origin,
        ReferrerPolicyList_Same_origin,
        ReferrerPolicyList_Strict_origin,
        ReferrerPolicyList_Strict_origin_when_cross_origin,
        ReferrerPolicyList_Unsafe_url
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

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

pattern ReferrerPolicyList_No_referrer :: ReferrerPolicyList
pattern $bReferrerPolicyList_No_referrer :: ReferrerPolicyList
$mReferrerPolicyList_No_referrer :: forall {r}. ReferrerPolicyList -> ((# #) -> r) -> ((# #) -> r) -> r
ReferrerPolicyList_No_referrer = ReferrerPolicyList' "no-referrer"

pattern ReferrerPolicyList_No_referrer_when_downgrade :: ReferrerPolicyList
pattern $bReferrerPolicyList_No_referrer_when_downgrade :: ReferrerPolicyList
$mReferrerPolicyList_No_referrer_when_downgrade :: forall {r}. ReferrerPolicyList -> ((# #) -> r) -> ((# #) -> r) -> r
ReferrerPolicyList_No_referrer_when_downgrade = ReferrerPolicyList' "no-referrer-when-downgrade"

pattern ReferrerPolicyList_Origin :: ReferrerPolicyList
pattern $bReferrerPolicyList_Origin :: ReferrerPolicyList
$mReferrerPolicyList_Origin :: forall {r}. ReferrerPolicyList -> ((# #) -> r) -> ((# #) -> r) -> r
ReferrerPolicyList_Origin = ReferrerPolicyList' "origin"

pattern ReferrerPolicyList_Origin_when_cross_origin :: ReferrerPolicyList
pattern $bReferrerPolicyList_Origin_when_cross_origin :: ReferrerPolicyList
$mReferrerPolicyList_Origin_when_cross_origin :: forall {r}. ReferrerPolicyList -> ((# #) -> r) -> ((# #) -> r) -> r
ReferrerPolicyList_Origin_when_cross_origin = ReferrerPolicyList' "origin-when-cross-origin"

pattern ReferrerPolicyList_Same_origin :: ReferrerPolicyList
pattern $bReferrerPolicyList_Same_origin :: ReferrerPolicyList
$mReferrerPolicyList_Same_origin :: forall {r}. ReferrerPolicyList -> ((# #) -> r) -> ((# #) -> r) -> r
ReferrerPolicyList_Same_origin = ReferrerPolicyList' "same-origin"

pattern ReferrerPolicyList_Strict_origin :: ReferrerPolicyList
pattern $bReferrerPolicyList_Strict_origin :: ReferrerPolicyList
$mReferrerPolicyList_Strict_origin :: forall {r}. ReferrerPolicyList -> ((# #) -> r) -> ((# #) -> r) -> r
ReferrerPolicyList_Strict_origin = ReferrerPolicyList' "strict-origin"

pattern ReferrerPolicyList_Strict_origin_when_cross_origin :: ReferrerPolicyList
pattern $bReferrerPolicyList_Strict_origin_when_cross_origin :: ReferrerPolicyList
$mReferrerPolicyList_Strict_origin_when_cross_origin :: forall {r}. ReferrerPolicyList -> ((# #) -> r) -> ((# #) -> r) -> r
ReferrerPolicyList_Strict_origin_when_cross_origin = ReferrerPolicyList' "strict-origin-when-cross-origin"

pattern ReferrerPolicyList_Unsafe_url :: ReferrerPolicyList
pattern $bReferrerPolicyList_Unsafe_url :: ReferrerPolicyList
$mReferrerPolicyList_Unsafe_url :: forall {r}. ReferrerPolicyList -> ((# #) -> r) -> ((# #) -> r) -> r
ReferrerPolicyList_Unsafe_url = ReferrerPolicyList' "unsafe-url"

{-# COMPLETE
  ReferrerPolicyList_No_referrer,
  ReferrerPolicyList_No_referrer_when_downgrade,
  ReferrerPolicyList_Origin,
  ReferrerPolicyList_Origin_when_cross_origin,
  ReferrerPolicyList_Same_origin,
  ReferrerPolicyList_Strict_origin,
  ReferrerPolicyList_Strict_origin_when_cross_origin,
  ReferrerPolicyList_Unsafe_url,
  ReferrerPolicyList'
  #-}