module Stratosphere.AppIntegrations.Application.IframeConfigProperty (
        IframeConfigProperty(..), mkIframeConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data IframeConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appintegrations-application-iframeconfig.html>
    IframeConfigProperty {IframeConfigProperty -> ()
haddock_workaround_ :: (),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appintegrations-application-iframeconfig.html#cfn-appintegrations-application-iframeconfig-allow>
                          IframeConfigProperty -> Maybe (ValueList Text)
allow :: (Prelude.Maybe (ValueList Prelude.Text)),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appintegrations-application-iframeconfig.html#cfn-appintegrations-application-iframeconfig-sandbox>
                          IframeConfigProperty -> Maybe (ValueList Text)
sandbox :: (Prelude.Maybe (ValueList Prelude.Text))}
  deriving stock (IframeConfigProperty -> IframeConfigProperty -> Bool
(IframeConfigProperty -> IframeConfigProperty -> Bool)
-> (IframeConfigProperty -> IframeConfigProperty -> Bool)
-> Eq IframeConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: IframeConfigProperty -> IframeConfigProperty -> Bool
== :: IframeConfigProperty -> IframeConfigProperty -> Bool
$c/= :: IframeConfigProperty -> IframeConfigProperty -> Bool
/= :: IframeConfigProperty -> IframeConfigProperty -> Bool
Prelude.Eq, Int -> IframeConfigProperty -> ShowS
[IframeConfigProperty] -> ShowS
IframeConfigProperty -> String
(Int -> IframeConfigProperty -> ShowS)
-> (IframeConfigProperty -> String)
-> ([IframeConfigProperty] -> ShowS)
-> Show IframeConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> IframeConfigProperty -> ShowS
showsPrec :: Int -> IframeConfigProperty -> ShowS
$cshow :: IframeConfigProperty -> String
show :: IframeConfigProperty -> String
$cshowList :: [IframeConfigProperty] -> ShowS
showList :: [IframeConfigProperty] -> ShowS
Prelude.Show)
mkIframeConfigProperty :: IframeConfigProperty
mkIframeConfigProperty :: IframeConfigProperty
mkIframeConfigProperty
  = IframeConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), allow :: Maybe (ValueList Text)
allow = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
       sandbox :: Maybe (ValueList Text)
sandbox = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties IframeConfigProperty where
  toResourceProperties :: IframeConfigProperty -> ResourceProperties
toResourceProperties IframeConfigProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: IframeConfigProperty -> ()
allow :: IframeConfigProperty -> Maybe (ValueList Text)
sandbox :: IframeConfigProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
allow :: Maybe (ValueList Text)
sandbox :: Maybe (ValueList Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AppIntegrations::Application.IframeConfig",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                           [Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Allow" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
allow,
                            Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Sandbox" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
sandbox])}
instance JSON.ToJSON IframeConfigProperty where
  toJSON :: IframeConfigProperty -> Value
toJSON IframeConfigProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: IframeConfigProperty -> ()
allow :: IframeConfigProperty -> Maybe (ValueList Text)
sandbox :: IframeConfigProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
allow :: Maybe (ValueList Text)
sandbox :: Maybe (ValueList Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
              [Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Allow" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
allow,
               Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Sandbox" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
sandbox]))
instance Property "Allow" IframeConfigProperty where
  type PropertyType "Allow" IframeConfigProperty = ValueList Prelude.Text
  set :: PropertyType "Allow" IframeConfigProperty
-> IframeConfigProperty -> IframeConfigProperty
set PropertyType "Allow" IframeConfigProperty
newValue IframeConfigProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: IframeConfigProperty -> ()
allow :: IframeConfigProperty -> Maybe (ValueList Text)
sandbox :: IframeConfigProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
allow :: Maybe (ValueList Text)
sandbox :: Maybe (ValueList Text)
..}
    = IframeConfigProperty {allow :: Maybe (ValueList Text)
allow = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Allow" IframeConfigProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
sandbox :: Maybe (ValueList Text)
haddock_workaround_ :: ()
sandbox :: Maybe (ValueList Text)
..}
instance Property "Sandbox" IframeConfigProperty where
  type PropertyType "Sandbox" IframeConfigProperty = ValueList Prelude.Text
  set :: PropertyType "Sandbox" IframeConfigProperty
-> IframeConfigProperty -> IframeConfigProperty
set PropertyType "Sandbox" IframeConfigProperty
newValue IframeConfigProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: IframeConfigProperty -> ()
allow :: IframeConfigProperty -> Maybe (ValueList Text)
sandbox :: IframeConfigProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
allow :: Maybe (ValueList Text)
sandbox :: Maybe (ValueList Text)
..}
    = IframeConfigProperty {sandbox :: Maybe (ValueList Text)
sandbox = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Sandbox" IframeConfigProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
allow :: Maybe (ValueList Text)
haddock_workaround_ :: ()
allow :: Maybe (ValueList Text)
..}