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