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