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