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