module Stratosphere.CloudFront.ResponseHeadersPolicy.FrameOptionsProperty (
FrameOptionsProperty(..), mkFrameOptionsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FrameOptionsProperty
=
FrameOptionsProperty {FrameOptionsProperty -> ()
haddock_workaround_ :: (),
FrameOptionsProperty -> Value Text
frameOption :: (Value Prelude.Text),
FrameOptionsProperty -> Value Bool
override :: (Value Prelude.Bool)}
deriving stock (FrameOptionsProperty -> FrameOptionsProperty -> Bool
(FrameOptionsProperty -> FrameOptionsProperty -> Bool)
-> (FrameOptionsProperty -> FrameOptionsProperty -> Bool)
-> Eq FrameOptionsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FrameOptionsProperty -> FrameOptionsProperty -> Bool
== :: FrameOptionsProperty -> FrameOptionsProperty -> Bool
$c/= :: FrameOptionsProperty -> FrameOptionsProperty -> Bool
/= :: FrameOptionsProperty -> FrameOptionsProperty -> Bool
Prelude.Eq, Int -> FrameOptionsProperty -> ShowS
[FrameOptionsProperty] -> ShowS
FrameOptionsProperty -> String
(Int -> FrameOptionsProperty -> ShowS)
-> (FrameOptionsProperty -> String)
-> ([FrameOptionsProperty] -> ShowS)
-> Show FrameOptionsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FrameOptionsProperty -> ShowS
showsPrec :: Int -> FrameOptionsProperty -> ShowS
$cshow :: FrameOptionsProperty -> String
show :: FrameOptionsProperty -> String
$cshowList :: [FrameOptionsProperty] -> ShowS
showList :: [FrameOptionsProperty] -> ShowS
Prelude.Show)
mkFrameOptionsProperty ::
Value Prelude.Text -> Value Prelude.Bool -> FrameOptionsProperty
mkFrameOptionsProperty :: Value Text -> Value Bool -> FrameOptionsProperty
mkFrameOptionsProperty Value Text
frameOption Value Bool
override
= FrameOptionsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), frameOption :: Value Text
frameOption = Value Text
frameOption,
override :: Value Bool
override = Value Bool
override}
instance ToResourceProperties FrameOptionsProperty where
toResourceProperties :: FrameOptionsProperty -> ResourceProperties
toResourceProperties FrameOptionsProperty {()
Value Bool
Value Text
haddock_workaround_ :: FrameOptionsProperty -> ()
frameOption :: FrameOptionsProperty -> Value Text
override :: FrameOptionsProperty -> Value Bool
haddock_workaround_ :: ()
frameOption :: Value Text
override :: Value Bool
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CloudFront::ResponseHeadersPolicy.FrameOptions",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"FrameOption" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
frameOption,
Key
"Override" Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Bool
override]}
instance JSON.ToJSON FrameOptionsProperty where
toJSON :: FrameOptionsProperty -> Value
toJSON FrameOptionsProperty {()
Value Bool
Value Text
haddock_workaround_ :: FrameOptionsProperty -> ()
frameOption :: FrameOptionsProperty -> Value Text
override :: FrameOptionsProperty -> Value Bool
haddock_workaround_ :: ()
frameOption :: Value Text
override :: Value Bool
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"FrameOption" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
frameOption, Key
"Override" Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Bool
override]
instance Property "FrameOption" FrameOptionsProperty where
type PropertyType "FrameOption" FrameOptionsProperty = Value Prelude.Text
set :: PropertyType "FrameOption" FrameOptionsProperty
-> FrameOptionsProperty -> FrameOptionsProperty
set PropertyType "FrameOption" FrameOptionsProperty
newValue FrameOptionsProperty {()
Value Bool
Value Text
haddock_workaround_ :: FrameOptionsProperty -> ()
frameOption :: FrameOptionsProperty -> Value Text
override :: FrameOptionsProperty -> Value Bool
haddock_workaround_ :: ()
frameOption :: Value Text
override :: Value Bool
..}
= FrameOptionsProperty {frameOption :: Value Text
frameOption = PropertyType "FrameOption" FrameOptionsProperty
Value Text
newValue, ()
Value Bool
haddock_workaround_ :: ()
override :: Value Bool
haddock_workaround_ :: ()
override :: Value Bool
..}
instance Property "Override" FrameOptionsProperty where
type PropertyType "Override" FrameOptionsProperty = Value Prelude.Bool
set :: PropertyType "Override" FrameOptionsProperty
-> FrameOptionsProperty -> FrameOptionsProperty
set PropertyType "Override" FrameOptionsProperty
newValue FrameOptionsProperty {()
Value Bool
Value Text
haddock_workaround_ :: FrameOptionsProperty -> ()
frameOption :: FrameOptionsProperty -> Value Text
override :: FrameOptionsProperty -> Value Bool
haddock_workaround_ :: ()
frameOption :: Value Text
override :: Value Bool
..}
= FrameOptionsProperty {override :: Value Bool
override = PropertyType "Override" FrameOptionsProperty
Value Bool
newValue, ()
Value Text
haddock_workaround_ :: ()
frameOption :: Value Text
haddock_workaround_ :: ()
frameOption :: Value Text
..}