module Stratosphere.QuickSight.Analysis.GridLayoutConfigurationProperty (
module Exports, GridLayoutConfigurationProperty(..),
mkGridLayoutConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.GridLayoutCanvasSizeOptionsProperty as Exports
import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.GridLayoutElementProperty as Exports
import Stratosphere.ResourceProperties
data GridLayoutConfigurationProperty
=
GridLayoutConfigurationProperty {GridLayoutConfigurationProperty -> ()
haddock_workaround_ :: (),
GridLayoutConfigurationProperty
-> Maybe GridLayoutCanvasSizeOptionsProperty
canvasSizeOptions :: (Prelude.Maybe GridLayoutCanvasSizeOptionsProperty),
GridLayoutConfigurationProperty -> [GridLayoutElementProperty]
elements :: [GridLayoutElementProperty]}
deriving stock (GridLayoutConfigurationProperty
-> GridLayoutConfigurationProperty -> Bool
(GridLayoutConfigurationProperty
-> GridLayoutConfigurationProperty -> Bool)
-> (GridLayoutConfigurationProperty
-> GridLayoutConfigurationProperty -> Bool)
-> Eq GridLayoutConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GridLayoutConfigurationProperty
-> GridLayoutConfigurationProperty -> Bool
== :: GridLayoutConfigurationProperty
-> GridLayoutConfigurationProperty -> Bool
$c/= :: GridLayoutConfigurationProperty
-> GridLayoutConfigurationProperty -> Bool
/= :: GridLayoutConfigurationProperty
-> GridLayoutConfigurationProperty -> Bool
Prelude.Eq, Int -> GridLayoutConfigurationProperty -> ShowS
[GridLayoutConfigurationProperty] -> ShowS
GridLayoutConfigurationProperty -> String
(Int -> GridLayoutConfigurationProperty -> ShowS)
-> (GridLayoutConfigurationProperty -> String)
-> ([GridLayoutConfigurationProperty] -> ShowS)
-> Show GridLayoutConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GridLayoutConfigurationProperty -> ShowS
showsPrec :: Int -> GridLayoutConfigurationProperty -> ShowS
$cshow :: GridLayoutConfigurationProperty -> String
show :: GridLayoutConfigurationProperty -> String
$cshowList :: [GridLayoutConfigurationProperty] -> ShowS
showList :: [GridLayoutConfigurationProperty] -> ShowS
Prelude.Show)
mkGridLayoutConfigurationProperty ::
[GridLayoutElementProperty] -> GridLayoutConfigurationProperty
mkGridLayoutConfigurationProperty :: [GridLayoutElementProperty] -> GridLayoutConfigurationProperty
mkGridLayoutConfigurationProperty [GridLayoutElementProperty]
elements
= GridLayoutConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), elements :: [GridLayoutElementProperty]
elements = [GridLayoutElementProperty]
elements,
canvasSizeOptions :: Maybe GridLayoutCanvasSizeOptionsProperty
canvasSizeOptions = Maybe GridLayoutCanvasSizeOptionsProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties GridLayoutConfigurationProperty where
toResourceProperties :: GridLayoutConfigurationProperty -> ResourceProperties
toResourceProperties GridLayoutConfigurationProperty {[GridLayoutElementProperty]
Maybe GridLayoutCanvasSizeOptionsProperty
()
haddock_workaround_ :: GridLayoutConfigurationProperty -> ()
canvasSizeOptions :: GridLayoutConfigurationProperty
-> Maybe GridLayoutCanvasSizeOptionsProperty
elements :: GridLayoutConfigurationProperty -> [GridLayoutElementProperty]
haddock_workaround_ :: ()
canvasSizeOptions :: Maybe GridLayoutCanvasSizeOptionsProperty
elements :: [GridLayoutElementProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Analysis.GridLayoutConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Elements" Key -> [GridLayoutElementProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [GridLayoutElementProperty]
elements]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> GridLayoutCanvasSizeOptionsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CanvasSizeOptions" (GridLayoutCanvasSizeOptionsProperty -> (Key, Value))
-> Maybe GridLayoutCanvasSizeOptionsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe GridLayoutCanvasSizeOptionsProperty
canvasSizeOptions]))}
instance JSON.ToJSON GridLayoutConfigurationProperty where
toJSON :: GridLayoutConfigurationProperty -> Value
toJSON GridLayoutConfigurationProperty {[GridLayoutElementProperty]
Maybe GridLayoutCanvasSizeOptionsProperty
()
haddock_workaround_ :: GridLayoutConfigurationProperty -> ()
canvasSizeOptions :: GridLayoutConfigurationProperty
-> Maybe GridLayoutCanvasSizeOptionsProperty
elements :: GridLayoutConfigurationProperty -> [GridLayoutElementProperty]
haddock_workaround_ :: ()
canvasSizeOptions :: Maybe GridLayoutCanvasSizeOptionsProperty
elements :: [GridLayoutElementProperty]
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Elements" Key -> [GridLayoutElementProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [GridLayoutElementProperty]
elements]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> GridLayoutCanvasSizeOptionsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CanvasSizeOptions" (GridLayoutCanvasSizeOptionsProperty -> (Key, Value))
-> Maybe GridLayoutCanvasSizeOptionsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe GridLayoutCanvasSizeOptionsProperty
canvasSizeOptions])))
instance Property "CanvasSizeOptions" GridLayoutConfigurationProperty where
type PropertyType "CanvasSizeOptions" GridLayoutConfigurationProperty = GridLayoutCanvasSizeOptionsProperty
set :: PropertyType "CanvasSizeOptions" GridLayoutConfigurationProperty
-> GridLayoutConfigurationProperty
-> GridLayoutConfigurationProperty
set PropertyType "CanvasSizeOptions" GridLayoutConfigurationProperty
newValue GridLayoutConfigurationProperty {[GridLayoutElementProperty]
Maybe GridLayoutCanvasSizeOptionsProperty
()
haddock_workaround_ :: GridLayoutConfigurationProperty -> ()
canvasSizeOptions :: GridLayoutConfigurationProperty
-> Maybe GridLayoutCanvasSizeOptionsProperty
elements :: GridLayoutConfigurationProperty -> [GridLayoutElementProperty]
haddock_workaround_ :: ()
canvasSizeOptions :: Maybe GridLayoutCanvasSizeOptionsProperty
elements :: [GridLayoutElementProperty]
..}
= GridLayoutConfigurationProperty
{canvasSizeOptions :: Maybe GridLayoutCanvasSizeOptionsProperty
canvasSizeOptions = GridLayoutCanvasSizeOptionsProperty
-> Maybe GridLayoutCanvasSizeOptionsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CanvasSizeOptions" GridLayoutConfigurationProperty
GridLayoutCanvasSizeOptionsProperty
newValue, [GridLayoutElementProperty]
()
haddock_workaround_ :: ()
elements :: [GridLayoutElementProperty]
haddock_workaround_ :: ()
elements :: [GridLayoutElementProperty]
..}
instance Property "Elements" GridLayoutConfigurationProperty where
type PropertyType "Elements" GridLayoutConfigurationProperty = [GridLayoutElementProperty]
set :: PropertyType "Elements" GridLayoutConfigurationProperty
-> GridLayoutConfigurationProperty
-> GridLayoutConfigurationProperty
set PropertyType "Elements" GridLayoutConfigurationProperty
newValue GridLayoutConfigurationProperty {[GridLayoutElementProperty]
Maybe GridLayoutCanvasSizeOptionsProperty
()
haddock_workaround_ :: GridLayoutConfigurationProperty -> ()
canvasSizeOptions :: GridLayoutConfigurationProperty
-> Maybe GridLayoutCanvasSizeOptionsProperty
elements :: GridLayoutConfigurationProperty -> [GridLayoutElementProperty]
haddock_workaround_ :: ()
canvasSizeOptions :: Maybe GridLayoutCanvasSizeOptionsProperty
elements :: [GridLayoutElementProperty]
..}
= GridLayoutConfigurationProperty {elements :: [GridLayoutElementProperty]
elements = [GridLayoutElementProperty]
PropertyType "Elements" GridLayoutConfigurationProperty
newValue, Maybe GridLayoutCanvasSizeOptionsProperty
()
haddock_workaround_ :: ()
canvasSizeOptions :: Maybe GridLayoutCanvasSizeOptionsProperty
haddock_workaround_ :: ()
canvasSizeOptions :: Maybe GridLayoutCanvasSizeOptionsProperty
..}