module Stratosphere.QuickSight.Topic.TopicSingularFilterConstantProperty (
        TopicSingularFilterConstantProperty(..),
        mkTopicSingularFilterConstantProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TopicSingularFilterConstantProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-topic-topicsingularfilterconstant.html>
    TopicSingularFilterConstantProperty {TopicSingularFilterConstantProperty -> ()
haddock_workaround_ :: (),
                                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-topic-topicsingularfilterconstant.html#cfn-quicksight-topic-topicsingularfilterconstant-constanttype>
                                         TopicSingularFilterConstantProperty -> Maybe (Value Text)
constantType :: (Prelude.Maybe (Value Prelude.Text)),
                                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-topic-topicsingularfilterconstant.html#cfn-quicksight-topic-topicsingularfilterconstant-singularconstant>
                                         TopicSingularFilterConstantProperty -> Maybe (Value Text)
singularConstant :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (TopicSingularFilterConstantProperty
-> TopicSingularFilterConstantProperty -> Bool
(TopicSingularFilterConstantProperty
 -> TopicSingularFilterConstantProperty -> Bool)
-> (TopicSingularFilterConstantProperty
    -> TopicSingularFilterConstantProperty -> Bool)
-> Eq TopicSingularFilterConstantProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TopicSingularFilterConstantProperty
-> TopicSingularFilterConstantProperty -> Bool
== :: TopicSingularFilterConstantProperty
-> TopicSingularFilterConstantProperty -> Bool
$c/= :: TopicSingularFilterConstantProperty
-> TopicSingularFilterConstantProperty -> Bool
/= :: TopicSingularFilterConstantProperty
-> TopicSingularFilterConstantProperty -> Bool
Prelude.Eq, Int -> TopicSingularFilterConstantProperty -> ShowS
[TopicSingularFilterConstantProperty] -> ShowS
TopicSingularFilterConstantProperty -> String
(Int -> TopicSingularFilterConstantProperty -> ShowS)
-> (TopicSingularFilterConstantProperty -> String)
-> ([TopicSingularFilterConstantProperty] -> ShowS)
-> Show TopicSingularFilterConstantProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TopicSingularFilterConstantProperty -> ShowS
showsPrec :: Int -> TopicSingularFilterConstantProperty -> ShowS
$cshow :: TopicSingularFilterConstantProperty -> String
show :: TopicSingularFilterConstantProperty -> String
$cshowList :: [TopicSingularFilterConstantProperty] -> ShowS
showList :: [TopicSingularFilterConstantProperty] -> ShowS
Prelude.Show)
mkTopicSingularFilterConstantProperty ::
  TopicSingularFilterConstantProperty
mkTopicSingularFilterConstantProperty :: TopicSingularFilterConstantProperty
mkTopicSingularFilterConstantProperty
  = TopicSingularFilterConstantProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), constantType :: Maybe (Value Text)
constantType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       singularConstant :: Maybe (Value Text)
singularConstant = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TopicSingularFilterConstantProperty where
  toResourceProperties :: TopicSingularFilterConstantProperty -> ResourceProperties
toResourceProperties TopicSingularFilterConstantProperty {Maybe (Value Text)
()
haddock_workaround_ :: TopicSingularFilterConstantProperty -> ()
constantType :: TopicSingularFilterConstantProperty -> Maybe (Value Text)
singularConstant :: TopicSingularFilterConstantProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
constantType :: Maybe (Value Text)
singularConstant :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::Topic.TopicSingularFilterConstant",
         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
"ConstantType" (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)
constantType,
                            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
"SingularConstant" (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)
singularConstant])}
instance JSON.ToJSON TopicSingularFilterConstantProperty where
  toJSON :: TopicSingularFilterConstantProperty -> Value
toJSON TopicSingularFilterConstantProperty {Maybe (Value Text)
()
haddock_workaround_ :: TopicSingularFilterConstantProperty -> ()
constantType :: TopicSingularFilterConstantProperty -> Maybe (Value Text)
singularConstant :: TopicSingularFilterConstantProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
constantType :: Maybe (Value Text)
singularConstant :: 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
"ConstantType" (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)
constantType,
               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
"SingularConstant" (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)
singularConstant]))
instance Property "ConstantType" TopicSingularFilterConstantProperty where
  type PropertyType "ConstantType" TopicSingularFilterConstantProperty = Value Prelude.Text
  set :: PropertyType "ConstantType" TopicSingularFilterConstantProperty
-> TopicSingularFilterConstantProperty
-> TopicSingularFilterConstantProperty
set PropertyType "ConstantType" TopicSingularFilterConstantProperty
newValue TopicSingularFilterConstantProperty {Maybe (Value Text)
()
haddock_workaround_ :: TopicSingularFilterConstantProperty -> ()
constantType :: TopicSingularFilterConstantProperty -> Maybe (Value Text)
singularConstant :: TopicSingularFilterConstantProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
constantType :: Maybe (Value Text)
singularConstant :: Maybe (Value Text)
..}
    = TopicSingularFilterConstantProperty
        {constantType :: Maybe (Value Text)
constantType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ConstantType" TopicSingularFilterConstantProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
singularConstant :: Maybe (Value Text)
haddock_workaround_ :: ()
singularConstant :: Maybe (Value Text)
..}
instance Property "SingularConstant" TopicSingularFilterConstantProperty where
  type PropertyType "SingularConstant" TopicSingularFilterConstantProperty = Value Prelude.Text
  set :: PropertyType "SingularConstant" TopicSingularFilterConstantProperty
-> TopicSingularFilterConstantProperty
-> TopicSingularFilterConstantProperty
set PropertyType "SingularConstant" TopicSingularFilterConstantProperty
newValue TopicSingularFilterConstantProperty {Maybe (Value Text)
()
haddock_workaround_ :: TopicSingularFilterConstantProperty -> ()
constantType :: TopicSingularFilterConstantProperty -> Maybe (Value Text)
singularConstant :: TopicSingularFilterConstantProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
constantType :: Maybe (Value Text)
singularConstant :: Maybe (Value Text)
..}
    = TopicSingularFilterConstantProperty
        {singularConstant :: Maybe (Value Text)
singularConstant = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SingularConstant" TopicSingularFilterConstantProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
constantType :: Maybe (Value Text)
haddock_workaround_ :: ()
constantType :: Maybe (Value Text)
..}