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