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