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