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