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