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