module Stratosphere.QuickSight.Dashboard.DefaultInteractiveLayoutConfigurationProperty (
        module Exports, DefaultInteractiveLayoutConfigurationProperty(..),
        mkDefaultInteractiveLayoutConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Dashboard.DefaultFreeFormLayoutConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.QuickSight.Dashboard.DefaultGridLayoutConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data DefaultInteractiveLayoutConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-defaultinteractivelayoutconfiguration.html>
    DefaultInteractiveLayoutConfigurationProperty {DefaultInteractiveLayoutConfigurationProperty -> ()
haddock_workaround_ :: (),
                                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-defaultinteractivelayoutconfiguration.html#cfn-quicksight-dashboard-defaultinteractivelayoutconfiguration-freeform>
                                                   DefaultInteractiveLayoutConfigurationProperty
-> Maybe DefaultFreeFormLayoutConfigurationProperty
freeForm :: (Prelude.Maybe DefaultFreeFormLayoutConfigurationProperty),
                                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-defaultinteractivelayoutconfiguration.html#cfn-quicksight-dashboard-defaultinteractivelayoutconfiguration-grid>
                                                   DefaultInteractiveLayoutConfigurationProperty
-> Maybe DefaultGridLayoutConfigurationProperty
grid :: (Prelude.Maybe DefaultGridLayoutConfigurationProperty)}
  deriving stock (DefaultInteractiveLayoutConfigurationProperty
-> DefaultInteractiveLayoutConfigurationProperty -> Bool
(DefaultInteractiveLayoutConfigurationProperty
 -> DefaultInteractiveLayoutConfigurationProperty -> Bool)
-> (DefaultInteractiveLayoutConfigurationProperty
    -> DefaultInteractiveLayoutConfigurationProperty -> Bool)
-> Eq DefaultInteractiveLayoutConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DefaultInteractiveLayoutConfigurationProperty
-> DefaultInteractiveLayoutConfigurationProperty -> Bool
== :: DefaultInteractiveLayoutConfigurationProperty
-> DefaultInteractiveLayoutConfigurationProperty -> Bool
$c/= :: DefaultInteractiveLayoutConfigurationProperty
-> DefaultInteractiveLayoutConfigurationProperty -> Bool
/= :: DefaultInteractiveLayoutConfigurationProperty
-> DefaultInteractiveLayoutConfigurationProperty -> Bool
Prelude.Eq, Int -> DefaultInteractiveLayoutConfigurationProperty -> ShowS
[DefaultInteractiveLayoutConfigurationProperty] -> ShowS
DefaultInteractiveLayoutConfigurationProperty -> String
(Int -> DefaultInteractiveLayoutConfigurationProperty -> ShowS)
-> (DefaultInteractiveLayoutConfigurationProperty -> String)
-> ([DefaultInteractiveLayoutConfigurationProperty] -> ShowS)
-> Show DefaultInteractiveLayoutConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DefaultInteractiveLayoutConfigurationProperty -> ShowS
showsPrec :: Int -> DefaultInteractiveLayoutConfigurationProperty -> ShowS
$cshow :: DefaultInteractiveLayoutConfigurationProperty -> String
show :: DefaultInteractiveLayoutConfigurationProperty -> String
$cshowList :: [DefaultInteractiveLayoutConfigurationProperty] -> ShowS
showList :: [DefaultInteractiveLayoutConfigurationProperty] -> ShowS
Prelude.Show)
mkDefaultInteractiveLayoutConfigurationProperty ::
  DefaultInteractiveLayoutConfigurationProperty
mkDefaultInteractiveLayoutConfigurationProperty :: DefaultInteractiveLayoutConfigurationProperty
mkDefaultInteractiveLayoutConfigurationProperty
  = DefaultInteractiveLayoutConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), freeForm :: Maybe DefaultFreeFormLayoutConfigurationProperty
freeForm = Maybe DefaultFreeFormLayoutConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
       grid :: Maybe DefaultGridLayoutConfigurationProperty
grid = Maybe DefaultGridLayoutConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DefaultInteractiveLayoutConfigurationProperty where
  toResourceProperties :: DefaultInteractiveLayoutConfigurationProperty -> ResourceProperties
toResourceProperties
    DefaultInteractiveLayoutConfigurationProperty {Maybe DefaultFreeFormLayoutConfigurationProperty
Maybe DefaultGridLayoutConfigurationProperty
()
haddock_workaround_ :: DefaultInteractiveLayoutConfigurationProperty -> ()
freeForm :: DefaultInteractiveLayoutConfigurationProperty
-> Maybe DefaultFreeFormLayoutConfigurationProperty
grid :: DefaultInteractiveLayoutConfigurationProperty
-> Maybe DefaultGridLayoutConfigurationProperty
haddock_workaround_ :: ()
freeForm :: Maybe DefaultFreeFormLayoutConfigurationProperty
grid :: Maybe DefaultGridLayoutConfigurationProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::Dashboard.DefaultInteractiveLayoutConfiguration",
         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 -> DefaultFreeFormLayoutConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FreeForm" (DefaultFreeFormLayoutConfigurationProperty -> (Key, Value))
-> Maybe DefaultFreeFormLayoutConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DefaultFreeFormLayoutConfigurationProperty
freeForm,
                            Key -> DefaultGridLayoutConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Grid" (DefaultGridLayoutConfigurationProperty -> (Key, Value))
-> Maybe DefaultGridLayoutConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DefaultGridLayoutConfigurationProperty
grid])}
instance JSON.ToJSON DefaultInteractiveLayoutConfigurationProperty where
  toJSON :: DefaultInteractiveLayoutConfigurationProperty -> Value
toJSON DefaultInteractiveLayoutConfigurationProperty {Maybe DefaultFreeFormLayoutConfigurationProperty
Maybe DefaultGridLayoutConfigurationProperty
()
haddock_workaround_ :: DefaultInteractiveLayoutConfigurationProperty -> ()
freeForm :: DefaultInteractiveLayoutConfigurationProperty
-> Maybe DefaultFreeFormLayoutConfigurationProperty
grid :: DefaultInteractiveLayoutConfigurationProperty
-> Maybe DefaultGridLayoutConfigurationProperty
haddock_workaround_ :: ()
freeForm :: Maybe DefaultFreeFormLayoutConfigurationProperty
grid :: Maybe DefaultGridLayoutConfigurationProperty
..}
    = [(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 -> DefaultFreeFormLayoutConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FreeForm" (DefaultFreeFormLayoutConfigurationProperty -> (Key, Value))
-> Maybe DefaultFreeFormLayoutConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DefaultFreeFormLayoutConfigurationProperty
freeForm,
               Key -> DefaultGridLayoutConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Grid" (DefaultGridLayoutConfigurationProperty -> (Key, Value))
-> Maybe DefaultGridLayoutConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DefaultGridLayoutConfigurationProperty
grid]))
instance Property "FreeForm" DefaultInteractiveLayoutConfigurationProperty where
  type PropertyType "FreeForm" DefaultInteractiveLayoutConfigurationProperty = DefaultFreeFormLayoutConfigurationProperty
  set :: PropertyType
  "FreeForm" DefaultInteractiveLayoutConfigurationProperty
-> DefaultInteractiveLayoutConfigurationProperty
-> DefaultInteractiveLayoutConfigurationProperty
set PropertyType
  "FreeForm" DefaultInteractiveLayoutConfigurationProperty
newValue DefaultInteractiveLayoutConfigurationProperty {Maybe DefaultFreeFormLayoutConfigurationProperty
Maybe DefaultGridLayoutConfigurationProperty
()
haddock_workaround_ :: DefaultInteractiveLayoutConfigurationProperty -> ()
freeForm :: DefaultInteractiveLayoutConfigurationProperty
-> Maybe DefaultFreeFormLayoutConfigurationProperty
grid :: DefaultInteractiveLayoutConfigurationProperty
-> Maybe DefaultGridLayoutConfigurationProperty
haddock_workaround_ :: ()
freeForm :: Maybe DefaultFreeFormLayoutConfigurationProperty
grid :: Maybe DefaultGridLayoutConfigurationProperty
..}
    = DefaultInteractiveLayoutConfigurationProperty
        {freeForm :: Maybe DefaultFreeFormLayoutConfigurationProperty
freeForm = DefaultFreeFormLayoutConfigurationProperty
-> Maybe DefaultFreeFormLayoutConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "FreeForm" DefaultInteractiveLayoutConfigurationProperty
DefaultFreeFormLayoutConfigurationProperty
newValue, Maybe DefaultGridLayoutConfigurationProperty
()
haddock_workaround_ :: ()
grid :: Maybe DefaultGridLayoutConfigurationProperty
haddock_workaround_ :: ()
grid :: Maybe DefaultGridLayoutConfigurationProperty
..}
instance Property "Grid" DefaultInteractiveLayoutConfigurationProperty where
  type PropertyType "Grid" DefaultInteractiveLayoutConfigurationProperty = DefaultGridLayoutConfigurationProperty
  set :: PropertyType "Grid" DefaultInteractiveLayoutConfigurationProperty
-> DefaultInteractiveLayoutConfigurationProperty
-> DefaultInteractiveLayoutConfigurationProperty
set PropertyType "Grid" DefaultInteractiveLayoutConfigurationProperty
newValue DefaultInteractiveLayoutConfigurationProperty {Maybe DefaultFreeFormLayoutConfigurationProperty
Maybe DefaultGridLayoutConfigurationProperty
()
haddock_workaround_ :: DefaultInteractiveLayoutConfigurationProperty -> ()
freeForm :: DefaultInteractiveLayoutConfigurationProperty
-> Maybe DefaultFreeFormLayoutConfigurationProperty
grid :: DefaultInteractiveLayoutConfigurationProperty
-> Maybe DefaultGridLayoutConfigurationProperty
haddock_workaround_ :: ()
freeForm :: Maybe DefaultFreeFormLayoutConfigurationProperty
grid :: Maybe DefaultGridLayoutConfigurationProperty
..}
    = DefaultInteractiveLayoutConfigurationProperty
        {grid :: Maybe DefaultGridLayoutConfigurationProperty
grid = DefaultGridLayoutConfigurationProperty
-> Maybe DefaultGridLayoutConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Grid" DefaultInteractiveLayoutConfigurationProperty
DefaultGridLayoutConfigurationProperty
newValue, Maybe DefaultFreeFormLayoutConfigurationProperty
()
haddock_workaround_ :: ()
freeForm :: Maybe DefaultFreeFormLayoutConfigurationProperty
haddock_workaround_ :: ()
freeForm :: Maybe DefaultFreeFormLayoutConfigurationProperty
..}