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