module Stratosphere.QuickSight.Dashboard.PluginVisualPropertyProperty (
PluginVisualPropertyProperty(..), mkPluginVisualPropertyProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PluginVisualPropertyProperty
=
PluginVisualPropertyProperty {PluginVisualPropertyProperty -> ()
haddock_workaround_ :: (),
PluginVisualPropertyProperty -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
PluginVisualPropertyProperty -> Maybe (Value Text)
value :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (PluginVisualPropertyProperty
-> PluginVisualPropertyProperty -> Bool
(PluginVisualPropertyProperty
-> PluginVisualPropertyProperty -> Bool)
-> (PluginVisualPropertyProperty
-> PluginVisualPropertyProperty -> Bool)
-> Eq PluginVisualPropertyProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PluginVisualPropertyProperty
-> PluginVisualPropertyProperty -> Bool
== :: PluginVisualPropertyProperty
-> PluginVisualPropertyProperty -> Bool
$c/= :: PluginVisualPropertyProperty
-> PluginVisualPropertyProperty -> Bool
/= :: PluginVisualPropertyProperty
-> PluginVisualPropertyProperty -> Bool
Prelude.Eq, Int -> PluginVisualPropertyProperty -> ShowS
[PluginVisualPropertyProperty] -> ShowS
PluginVisualPropertyProperty -> String
(Int -> PluginVisualPropertyProperty -> ShowS)
-> (PluginVisualPropertyProperty -> String)
-> ([PluginVisualPropertyProperty] -> ShowS)
-> Show PluginVisualPropertyProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PluginVisualPropertyProperty -> ShowS
showsPrec :: Int -> PluginVisualPropertyProperty -> ShowS
$cshow :: PluginVisualPropertyProperty -> String
show :: PluginVisualPropertyProperty -> String
$cshowList :: [PluginVisualPropertyProperty] -> ShowS
showList :: [PluginVisualPropertyProperty] -> ShowS
Prelude.Show)
mkPluginVisualPropertyProperty :: PluginVisualPropertyProperty
mkPluginVisualPropertyProperty :: PluginVisualPropertyProperty
mkPluginVisualPropertyProperty
= PluginVisualPropertyProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
value :: Maybe (Value Text)
value = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties PluginVisualPropertyProperty where
toResourceProperties :: PluginVisualPropertyProperty -> ResourceProperties
toResourceProperties PluginVisualPropertyProperty {Maybe (Value Text)
()
haddock_workaround_ :: PluginVisualPropertyProperty -> ()
name :: PluginVisualPropertyProperty -> Maybe (Value Text)
value :: PluginVisualPropertyProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Dashboard.PluginVisualProperty",
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 -> 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
"Name" (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)
name,
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
"Value" (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)
value])}
instance JSON.ToJSON PluginVisualPropertyProperty where
toJSON :: PluginVisualPropertyProperty -> Value
toJSON PluginVisualPropertyProperty {Maybe (Value Text)
()
haddock_workaround_ :: PluginVisualPropertyProperty -> ()
name :: PluginVisualPropertyProperty -> Maybe (Value Text)
value :: PluginVisualPropertyProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
= [(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 -> 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
"Name" (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)
name,
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
"Value" (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)
value]))
instance Property "Name" PluginVisualPropertyProperty where
type PropertyType "Name" PluginVisualPropertyProperty = Value Prelude.Text
set :: PropertyType "Name" PluginVisualPropertyProperty
-> PluginVisualPropertyProperty -> PluginVisualPropertyProperty
set PropertyType "Name" PluginVisualPropertyProperty
newValue PluginVisualPropertyProperty {Maybe (Value Text)
()
haddock_workaround_ :: PluginVisualPropertyProperty -> ()
name :: PluginVisualPropertyProperty -> Maybe (Value Text)
value :: PluginVisualPropertyProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
= PluginVisualPropertyProperty {name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" PluginVisualPropertyProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
value :: Maybe (Value Text)
haddock_workaround_ :: ()
value :: Maybe (Value Text)
..}
instance Property "Value" PluginVisualPropertyProperty where
type PropertyType "Value" PluginVisualPropertyProperty = Value Prelude.Text
set :: PropertyType "Value" PluginVisualPropertyProperty
-> PluginVisualPropertyProperty -> PluginVisualPropertyProperty
set PropertyType "Value" PluginVisualPropertyProperty
newValue PluginVisualPropertyProperty {Maybe (Value Text)
()
haddock_workaround_ :: PluginVisualPropertyProperty -> ()
name :: PluginVisualPropertyProperty -> Maybe (Value Text)
value :: PluginVisualPropertyProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
= PluginVisualPropertyProperty {value :: Maybe (Value Text)
value = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Value" PluginVisualPropertyProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
name :: Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
..}