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