{-# 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.FrameOptionsList
-- 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.FrameOptionsList
  ( FrameOptionsList
      ( ..,
        FrameOptionsList_DENY,
        FrameOptionsList_SAMEORIGIN
      ),
  )
where

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

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

pattern FrameOptionsList_DENY :: FrameOptionsList
pattern $bFrameOptionsList_DENY :: FrameOptionsList
$mFrameOptionsList_DENY :: forall {r}. FrameOptionsList -> ((# #) -> r) -> ((# #) -> r) -> r
FrameOptionsList_DENY = FrameOptionsList' "DENY"

pattern FrameOptionsList_SAMEORIGIN :: FrameOptionsList
pattern $bFrameOptionsList_SAMEORIGIN :: FrameOptionsList
$mFrameOptionsList_SAMEORIGIN :: forall {r}. FrameOptionsList -> ((# #) -> r) -> ((# #) -> r) -> r
FrameOptionsList_SAMEORIGIN = FrameOptionsList' "SAMEORIGIN"

{-# COMPLETE
  FrameOptionsList_DENY,
  FrameOptionsList_SAMEORIGIN,
  FrameOptionsList'
  #-}