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