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