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