module Stratosphere.QuickSight.Template.LayoutConfigurationProperty (
module Exports, LayoutConfigurationProperty(..),
mkLayoutConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Template.FreeFormLayoutConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.QuickSight.Template.GridLayoutConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.QuickSight.Template.SectionBasedLayoutConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data LayoutConfigurationProperty
=
LayoutConfigurationProperty {LayoutConfigurationProperty -> ()
haddock_workaround_ :: (),
LayoutConfigurationProperty
-> Maybe FreeFormLayoutConfigurationProperty
freeFormLayout :: (Prelude.Maybe FreeFormLayoutConfigurationProperty),
LayoutConfigurationProperty
-> Maybe GridLayoutConfigurationProperty
gridLayout :: (Prelude.Maybe GridLayoutConfigurationProperty),
LayoutConfigurationProperty
-> Maybe SectionBasedLayoutConfigurationProperty
sectionBasedLayout :: (Prelude.Maybe SectionBasedLayoutConfigurationProperty)}
deriving stock (LayoutConfigurationProperty -> LayoutConfigurationProperty -> Bool
(LayoutConfigurationProperty
-> LayoutConfigurationProperty -> Bool)
-> (LayoutConfigurationProperty
-> LayoutConfigurationProperty -> Bool)
-> Eq LayoutConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LayoutConfigurationProperty -> LayoutConfigurationProperty -> Bool
== :: LayoutConfigurationProperty -> LayoutConfigurationProperty -> Bool
$c/= :: LayoutConfigurationProperty -> LayoutConfigurationProperty -> Bool
/= :: LayoutConfigurationProperty -> LayoutConfigurationProperty -> Bool
Prelude.Eq, Int -> LayoutConfigurationProperty -> ShowS
[LayoutConfigurationProperty] -> ShowS
LayoutConfigurationProperty -> String
(Int -> LayoutConfigurationProperty -> ShowS)
-> (LayoutConfigurationProperty -> String)
-> ([LayoutConfigurationProperty] -> ShowS)
-> Show LayoutConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LayoutConfigurationProperty -> ShowS
showsPrec :: Int -> LayoutConfigurationProperty -> ShowS
$cshow :: LayoutConfigurationProperty -> String
show :: LayoutConfigurationProperty -> String
$cshowList :: [LayoutConfigurationProperty] -> ShowS
showList :: [LayoutConfigurationProperty] -> ShowS
Prelude.Show)
mkLayoutConfigurationProperty :: LayoutConfigurationProperty
mkLayoutConfigurationProperty :: LayoutConfigurationProperty
mkLayoutConfigurationProperty
= LayoutConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), freeFormLayout :: Maybe FreeFormLayoutConfigurationProperty
freeFormLayout = Maybe FreeFormLayoutConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
gridLayout :: Maybe GridLayoutConfigurationProperty
gridLayout = Maybe GridLayoutConfigurationProperty
forall a. Maybe a
Prelude.Nothing, sectionBasedLayout :: Maybe SectionBasedLayoutConfigurationProperty
sectionBasedLayout = Maybe SectionBasedLayoutConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties LayoutConfigurationProperty where
toResourceProperties :: LayoutConfigurationProperty -> ResourceProperties
toResourceProperties LayoutConfigurationProperty {Maybe GridLayoutConfigurationProperty
Maybe FreeFormLayoutConfigurationProperty
Maybe SectionBasedLayoutConfigurationProperty
()
haddock_workaround_ :: LayoutConfigurationProperty -> ()
freeFormLayout :: LayoutConfigurationProperty
-> Maybe FreeFormLayoutConfigurationProperty
gridLayout :: LayoutConfigurationProperty
-> Maybe GridLayoutConfigurationProperty
sectionBasedLayout :: LayoutConfigurationProperty
-> Maybe SectionBasedLayoutConfigurationProperty
haddock_workaround_ :: ()
freeFormLayout :: Maybe FreeFormLayoutConfigurationProperty
gridLayout :: Maybe GridLayoutConfigurationProperty
sectionBasedLayout :: Maybe SectionBasedLayoutConfigurationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Template.LayoutConfiguration",
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 -> FreeFormLayoutConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FreeFormLayout" (FreeFormLayoutConfigurationProperty -> (Key, Value))
-> Maybe FreeFormLayoutConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FreeFormLayoutConfigurationProperty
freeFormLayout,
Key -> GridLayoutConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"GridLayout" (GridLayoutConfigurationProperty -> (Key, Value))
-> Maybe GridLayoutConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe GridLayoutConfigurationProperty
gridLayout,
Key -> SectionBasedLayoutConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SectionBasedLayout" (SectionBasedLayoutConfigurationProperty -> (Key, Value))
-> Maybe SectionBasedLayoutConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SectionBasedLayoutConfigurationProperty
sectionBasedLayout])}
instance JSON.ToJSON LayoutConfigurationProperty where
toJSON :: LayoutConfigurationProperty -> Value
toJSON LayoutConfigurationProperty {Maybe GridLayoutConfigurationProperty
Maybe FreeFormLayoutConfigurationProperty
Maybe SectionBasedLayoutConfigurationProperty
()
haddock_workaround_ :: LayoutConfigurationProperty -> ()
freeFormLayout :: LayoutConfigurationProperty
-> Maybe FreeFormLayoutConfigurationProperty
gridLayout :: LayoutConfigurationProperty
-> Maybe GridLayoutConfigurationProperty
sectionBasedLayout :: LayoutConfigurationProperty
-> Maybe SectionBasedLayoutConfigurationProperty
haddock_workaround_ :: ()
freeFormLayout :: Maybe FreeFormLayoutConfigurationProperty
gridLayout :: Maybe GridLayoutConfigurationProperty
sectionBasedLayout :: Maybe SectionBasedLayoutConfigurationProperty
..}
= [(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 -> FreeFormLayoutConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FreeFormLayout" (FreeFormLayoutConfigurationProperty -> (Key, Value))
-> Maybe FreeFormLayoutConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FreeFormLayoutConfigurationProperty
freeFormLayout,
Key -> GridLayoutConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"GridLayout" (GridLayoutConfigurationProperty -> (Key, Value))
-> Maybe GridLayoutConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe GridLayoutConfigurationProperty
gridLayout,
Key -> SectionBasedLayoutConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SectionBasedLayout" (SectionBasedLayoutConfigurationProperty -> (Key, Value))
-> Maybe SectionBasedLayoutConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SectionBasedLayoutConfigurationProperty
sectionBasedLayout]))
instance Property "FreeFormLayout" LayoutConfigurationProperty where
type PropertyType "FreeFormLayout" LayoutConfigurationProperty = FreeFormLayoutConfigurationProperty
set :: PropertyType "FreeFormLayout" LayoutConfigurationProperty
-> LayoutConfigurationProperty -> LayoutConfigurationProperty
set PropertyType "FreeFormLayout" LayoutConfigurationProperty
newValue LayoutConfigurationProperty {Maybe GridLayoutConfigurationProperty
Maybe FreeFormLayoutConfigurationProperty
Maybe SectionBasedLayoutConfigurationProperty
()
haddock_workaround_ :: LayoutConfigurationProperty -> ()
freeFormLayout :: LayoutConfigurationProperty
-> Maybe FreeFormLayoutConfigurationProperty
gridLayout :: LayoutConfigurationProperty
-> Maybe GridLayoutConfigurationProperty
sectionBasedLayout :: LayoutConfigurationProperty
-> Maybe SectionBasedLayoutConfigurationProperty
haddock_workaround_ :: ()
freeFormLayout :: Maybe FreeFormLayoutConfigurationProperty
gridLayout :: Maybe GridLayoutConfigurationProperty
sectionBasedLayout :: Maybe SectionBasedLayoutConfigurationProperty
..}
= LayoutConfigurationProperty
{freeFormLayout :: Maybe FreeFormLayoutConfigurationProperty
freeFormLayout = FreeFormLayoutConfigurationProperty
-> Maybe FreeFormLayoutConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "FreeFormLayout" LayoutConfigurationProperty
FreeFormLayoutConfigurationProperty
newValue, Maybe GridLayoutConfigurationProperty
Maybe SectionBasedLayoutConfigurationProperty
()
haddock_workaround_ :: ()
gridLayout :: Maybe GridLayoutConfigurationProperty
sectionBasedLayout :: Maybe SectionBasedLayoutConfigurationProperty
haddock_workaround_ :: ()
gridLayout :: Maybe GridLayoutConfigurationProperty
sectionBasedLayout :: Maybe SectionBasedLayoutConfigurationProperty
..}
instance Property "GridLayout" LayoutConfigurationProperty where
type PropertyType "GridLayout" LayoutConfigurationProperty = GridLayoutConfigurationProperty
set :: PropertyType "GridLayout" LayoutConfigurationProperty
-> LayoutConfigurationProperty -> LayoutConfigurationProperty
set PropertyType "GridLayout" LayoutConfigurationProperty
newValue LayoutConfigurationProperty {Maybe GridLayoutConfigurationProperty
Maybe FreeFormLayoutConfigurationProperty
Maybe SectionBasedLayoutConfigurationProperty
()
haddock_workaround_ :: LayoutConfigurationProperty -> ()
freeFormLayout :: LayoutConfigurationProperty
-> Maybe FreeFormLayoutConfigurationProperty
gridLayout :: LayoutConfigurationProperty
-> Maybe GridLayoutConfigurationProperty
sectionBasedLayout :: LayoutConfigurationProperty
-> Maybe SectionBasedLayoutConfigurationProperty
haddock_workaround_ :: ()
freeFormLayout :: Maybe FreeFormLayoutConfigurationProperty
gridLayout :: Maybe GridLayoutConfigurationProperty
sectionBasedLayout :: Maybe SectionBasedLayoutConfigurationProperty
..}
= LayoutConfigurationProperty
{gridLayout :: Maybe GridLayoutConfigurationProperty
gridLayout = GridLayoutConfigurationProperty
-> Maybe GridLayoutConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "GridLayout" LayoutConfigurationProperty
GridLayoutConfigurationProperty
newValue, Maybe FreeFormLayoutConfigurationProperty
Maybe SectionBasedLayoutConfigurationProperty
()
haddock_workaround_ :: ()
freeFormLayout :: Maybe FreeFormLayoutConfigurationProperty
sectionBasedLayout :: Maybe SectionBasedLayoutConfigurationProperty
haddock_workaround_ :: ()
freeFormLayout :: Maybe FreeFormLayoutConfigurationProperty
sectionBasedLayout :: Maybe SectionBasedLayoutConfigurationProperty
..}
instance Property "SectionBasedLayout" LayoutConfigurationProperty where
type PropertyType "SectionBasedLayout" LayoutConfigurationProperty = SectionBasedLayoutConfigurationProperty
set :: PropertyType "SectionBasedLayout" LayoutConfigurationProperty
-> LayoutConfigurationProperty -> LayoutConfigurationProperty
set PropertyType "SectionBasedLayout" LayoutConfigurationProperty
newValue LayoutConfigurationProperty {Maybe GridLayoutConfigurationProperty
Maybe FreeFormLayoutConfigurationProperty
Maybe SectionBasedLayoutConfigurationProperty
()
haddock_workaround_ :: LayoutConfigurationProperty -> ()
freeFormLayout :: LayoutConfigurationProperty
-> Maybe FreeFormLayoutConfigurationProperty
gridLayout :: LayoutConfigurationProperty
-> Maybe GridLayoutConfigurationProperty
sectionBasedLayout :: LayoutConfigurationProperty
-> Maybe SectionBasedLayoutConfigurationProperty
haddock_workaround_ :: ()
freeFormLayout :: Maybe FreeFormLayoutConfigurationProperty
gridLayout :: Maybe GridLayoutConfigurationProperty
sectionBasedLayout :: Maybe SectionBasedLayoutConfigurationProperty
..}
= LayoutConfigurationProperty
{sectionBasedLayout :: Maybe SectionBasedLayoutConfigurationProperty
sectionBasedLayout = SectionBasedLayoutConfigurationProperty
-> Maybe SectionBasedLayoutConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SectionBasedLayout" LayoutConfigurationProperty
SectionBasedLayoutConfigurationProperty
newValue, Maybe GridLayoutConfigurationProperty
Maybe FreeFormLayoutConfigurationProperty
()
haddock_workaround_ :: ()
freeFormLayout :: Maybe FreeFormLayoutConfigurationProperty
gridLayout :: Maybe GridLayoutConfigurationProperty
haddock_workaround_ :: ()
freeFormLayout :: Maybe FreeFormLayoutConfigurationProperty
gridLayout :: Maybe GridLayoutConfigurationProperty
..}