module Stratosphere.CloudFront.ResponseHeadersPolicy.ContentTypeOptionsProperty (
        ContentTypeOptionsProperty(..), mkContentTypeOptionsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ContentTypeOptionsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-contenttypeoptions.html>
    ContentTypeOptionsProperty {ContentTypeOptionsProperty -> ()
haddock_workaround_ :: (),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-contenttypeoptions.html#cfn-cloudfront-responseheaderspolicy-contenttypeoptions-override>
                                ContentTypeOptionsProperty -> Value Bool
override :: (Value Prelude.Bool)}
  deriving stock (ContentTypeOptionsProperty -> ContentTypeOptionsProperty -> Bool
(ContentTypeOptionsProperty -> ContentTypeOptionsProperty -> Bool)
-> (ContentTypeOptionsProperty
    -> ContentTypeOptionsProperty -> Bool)
-> Eq ContentTypeOptionsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ContentTypeOptionsProperty -> ContentTypeOptionsProperty -> Bool
== :: ContentTypeOptionsProperty -> ContentTypeOptionsProperty -> Bool
$c/= :: ContentTypeOptionsProperty -> ContentTypeOptionsProperty -> Bool
/= :: ContentTypeOptionsProperty -> ContentTypeOptionsProperty -> Bool
Prelude.Eq, Int -> ContentTypeOptionsProperty -> ShowS
[ContentTypeOptionsProperty] -> ShowS
ContentTypeOptionsProperty -> String
(Int -> ContentTypeOptionsProperty -> ShowS)
-> (ContentTypeOptionsProperty -> String)
-> ([ContentTypeOptionsProperty] -> ShowS)
-> Show ContentTypeOptionsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ContentTypeOptionsProperty -> ShowS
showsPrec :: Int -> ContentTypeOptionsProperty -> ShowS
$cshow :: ContentTypeOptionsProperty -> String
show :: ContentTypeOptionsProperty -> String
$cshowList :: [ContentTypeOptionsProperty] -> ShowS
showList :: [ContentTypeOptionsProperty] -> ShowS
Prelude.Show)
mkContentTypeOptionsProperty ::
  Value Prelude.Bool -> ContentTypeOptionsProperty
mkContentTypeOptionsProperty :: Value Bool -> ContentTypeOptionsProperty
mkContentTypeOptionsProperty Value Bool
override
  = ContentTypeOptionsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), override :: Value Bool
override = Value Bool
override}
instance ToResourceProperties ContentTypeOptionsProperty where
  toResourceProperties :: ContentTypeOptionsProperty -> ResourceProperties
toResourceProperties ContentTypeOptionsProperty {()
Value Bool
haddock_workaround_ :: ContentTypeOptionsProperty -> ()
override :: ContentTypeOptionsProperty -> Value Bool
haddock_workaround_ :: ()
override :: Value Bool
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::CloudFront::ResponseHeadersPolicy.ContentTypeOptions",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [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 ContentTypeOptionsProperty where
  toJSON :: ContentTypeOptionsProperty -> Value
toJSON ContentTypeOptionsProperty {()
Value Bool
haddock_workaround_ :: ContentTypeOptionsProperty -> ()
override :: ContentTypeOptionsProperty -> Value Bool
haddock_workaround_ :: ()
override :: Value Bool
..}
    = [(Key, Value)] -> Value
JSON.object [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 "Override" ContentTypeOptionsProperty where
  type PropertyType "Override" ContentTypeOptionsProperty = Value Prelude.Bool
  set :: PropertyType "Override" ContentTypeOptionsProperty
-> ContentTypeOptionsProperty -> ContentTypeOptionsProperty
set PropertyType "Override" ContentTypeOptionsProperty
newValue ContentTypeOptionsProperty {()
Value Bool
haddock_workaround_ :: ContentTypeOptionsProperty -> ()
override :: ContentTypeOptionsProperty -> Value Bool
haddock_workaround_ :: ()
override :: Value Bool
..}
    = ContentTypeOptionsProperty {override :: Value Bool
override = PropertyType "Override" ContentTypeOptionsProperty
Value Bool
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}