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