module Stratosphere.QuickSight.Analysis.FilterListConfigurationProperty (
FilterListConfigurationProperty(..),
mkFilterListConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FilterListConfigurationProperty
=
FilterListConfigurationProperty {FilterListConfigurationProperty -> ()
haddock_workaround_ :: (),
FilterListConfigurationProperty -> Maybe (ValueList Text)
categoryValues :: (Prelude.Maybe (ValueList Prelude.Text)),
FilterListConfigurationProperty -> Value Text
matchOperator :: (Value Prelude.Text),
FilterListConfigurationProperty -> Maybe (Value Text)
nullOption :: (Prelude.Maybe (Value Prelude.Text)),
FilterListConfigurationProperty -> Maybe (Value Text)
selectAllOptions :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (FilterListConfigurationProperty
-> FilterListConfigurationProperty -> Bool
(FilterListConfigurationProperty
-> FilterListConfigurationProperty -> Bool)
-> (FilterListConfigurationProperty
-> FilterListConfigurationProperty -> Bool)
-> Eq FilterListConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FilterListConfigurationProperty
-> FilterListConfigurationProperty -> Bool
== :: FilterListConfigurationProperty
-> FilterListConfigurationProperty -> Bool
$c/= :: FilterListConfigurationProperty
-> FilterListConfigurationProperty -> Bool
/= :: FilterListConfigurationProperty
-> FilterListConfigurationProperty -> Bool
Prelude.Eq, Int -> FilterListConfigurationProperty -> ShowS
[FilterListConfigurationProperty] -> ShowS
FilterListConfigurationProperty -> String
(Int -> FilterListConfigurationProperty -> ShowS)
-> (FilterListConfigurationProperty -> String)
-> ([FilterListConfigurationProperty] -> ShowS)
-> Show FilterListConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FilterListConfigurationProperty -> ShowS
showsPrec :: Int -> FilterListConfigurationProperty -> ShowS
$cshow :: FilterListConfigurationProperty -> String
show :: FilterListConfigurationProperty -> String
$cshowList :: [FilterListConfigurationProperty] -> ShowS
showList :: [FilterListConfigurationProperty] -> ShowS
Prelude.Show)
mkFilterListConfigurationProperty ::
Value Prelude.Text -> FilterListConfigurationProperty
mkFilterListConfigurationProperty :: Value Text -> FilterListConfigurationProperty
mkFilterListConfigurationProperty Value Text
matchOperator
= FilterListConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), matchOperator :: Value Text
matchOperator = Value Text
matchOperator,
categoryValues :: Maybe (ValueList Text)
categoryValues = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing, nullOption :: Maybe (Value Text)
nullOption = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
selectAllOptions :: Maybe (Value Text)
selectAllOptions = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FilterListConfigurationProperty where
toResourceProperties :: FilterListConfigurationProperty -> ResourceProperties
toResourceProperties FilterListConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: FilterListConfigurationProperty -> ()
categoryValues :: FilterListConfigurationProperty -> Maybe (ValueList Text)
matchOperator :: FilterListConfigurationProperty -> Value Text
nullOption :: FilterListConfigurationProperty -> Maybe (Value Text)
selectAllOptions :: FilterListConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
categoryValues :: Maybe (ValueList Text)
matchOperator :: Value Text
nullOption :: Maybe (Value Text)
selectAllOptions :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Analysis.FilterListConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"MatchOperator" 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..= Value Text
matchOperator]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ValueList 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
"CategoryValues" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
categoryValues,
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
"NullOption" (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)
nullOption,
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
"SelectAllOptions" (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)
selectAllOptions]))}
instance JSON.ToJSON FilterListConfigurationProperty where
toJSON :: FilterListConfigurationProperty -> Value
toJSON FilterListConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: FilterListConfigurationProperty -> ()
categoryValues :: FilterListConfigurationProperty -> Maybe (ValueList Text)
matchOperator :: FilterListConfigurationProperty -> Value Text
nullOption :: FilterListConfigurationProperty -> Maybe (Value Text)
selectAllOptions :: FilterListConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
categoryValues :: Maybe (ValueList Text)
matchOperator :: Value Text
nullOption :: Maybe (Value Text)
selectAllOptions :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"MatchOperator" 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..= Value Text
matchOperator]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ValueList 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
"CategoryValues" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
categoryValues,
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
"NullOption" (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)
nullOption,
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
"SelectAllOptions" (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)
selectAllOptions])))
instance Property "CategoryValues" FilterListConfigurationProperty where
type PropertyType "CategoryValues" FilterListConfigurationProperty = ValueList Prelude.Text
set :: PropertyType "CategoryValues" FilterListConfigurationProperty
-> FilterListConfigurationProperty
-> FilterListConfigurationProperty
set PropertyType "CategoryValues" FilterListConfigurationProperty
newValue FilterListConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: FilterListConfigurationProperty -> ()
categoryValues :: FilterListConfigurationProperty -> Maybe (ValueList Text)
matchOperator :: FilterListConfigurationProperty -> Value Text
nullOption :: FilterListConfigurationProperty -> Maybe (Value Text)
selectAllOptions :: FilterListConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
categoryValues :: Maybe (ValueList Text)
matchOperator :: Value Text
nullOption :: Maybe (Value Text)
selectAllOptions :: Maybe (Value Text)
..}
= FilterListConfigurationProperty
{categoryValues :: Maybe (ValueList Text)
categoryValues = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CategoryValues" FilterListConfigurationProperty
ValueList Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
matchOperator :: Value Text
nullOption :: Maybe (Value Text)
selectAllOptions :: Maybe (Value Text)
haddock_workaround_ :: ()
matchOperator :: Value Text
nullOption :: Maybe (Value Text)
selectAllOptions :: Maybe (Value Text)
..}
instance Property "MatchOperator" FilterListConfigurationProperty where
type PropertyType "MatchOperator" FilterListConfigurationProperty = Value Prelude.Text
set :: PropertyType "MatchOperator" FilterListConfigurationProperty
-> FilterListConfigurationProperty
-> FilterListConfigurationProperty
set PropertyType "MatchOperator" FilterListConfigurationProperty
newValue FilterListConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: FilterListConfigurationProperty -> ()
categoryValues :: FilterListConfigurationProperty -> Maybe (ValueList Text)
matchOperator :: FilterListConfigurationProperty -> Value Text
nullOption :: FilterListConfigurationProperty -> Maybe (Value Text)
selectAllOptions :: FilterListConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
categoryValues :: Maybe (ValueList Text)
matchOperator :: Value Text
nullOption :: Maybe (Value Text)
selectAllOptions :: Maybe (Value Text)
..}
= FilterListConfigurationProperty {matchOperator :: Value Text
matchOperator = PropertyType "MatchOperator" FilterListConfigurationProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
categoryValues :: Maybe (ValueList Text)
nullOption :: Maybe (Value Text)
selectAllOptions :: Maybe (Value Text)
haddock_workaround_ :: ()
categoryValues :: Maybe (ValueList Text)
nullOption :: Maybe (Value Text)
selectAllOptions :: Maybe (Value Text)
..}
instance Property "NullOption" FilterListConfigurationProperty where
type PropertyType "NullOption" FilterListConfigurationProperty = Value Prelude.Text
set :: PropertyType "NullOption" FilterListConfigurationProperty
-> FilterListConfigurationProperty
-> FilterListConfigurationProperty
set PropertyType "NullOption" FilterListConfigurationProperty
newValue FilterListConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: FilterListConfigurationProperty -> ()
categoryValues :: FilterListConfigurationProperty -> Maybe (ValueList Text)
matchOperator :: FilterListConfigurationProperty -> Value Text
nullOption :: FilterListConfigurationProperty -> Maybe (Value Text)
selectAllOptions :: FilterListConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
categoryValues :: Maybe (ValueList Text)
matchOperator :: Value Text
nullOption :: Maybe (Value Text)
selectAllOptions :: Maybe (Value Text)
..}
= FilterListConfigurationProperty
{nullOption :: Maybe (Value Text)
nullOption = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "NullOption" FilterListConfigurationProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
categoryValues :: Maybe (ValueList Text)
matchOperator :: Value Text
selectAllOptions :: Maybe (Value Text)
haddock_workaround_ :: ()
categoryValues :: Maybe (ValueList Text)
matchOperator :: Value Text
selectAllOptions :: Maybe (Value Text)
..}
instance Property "SelectAllOptions" FilterListConfigurationProperty where
type PropertyType "SelectAllOptions" FilterListConfigurationProperty = Value Prelude.Text
set :: PropertyType "SelectAllOptions" FilterListConfigurationProperty
-> FilterListConfigurationProperty
-> FilterListConfigurationProperty
set PropertyType "SelectAllOptions" FilterListConfigurationProperty
newValue FilterListConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: FilterListConfigurationProperty -> ()
categoryValues :: FilterListConfigurationProperty -> Maybe (ValueList Text)
matchOperator :: FilterListConfigurationProperty -> Value Text
nullOption :: FilterListConfigurationProperty -> Maybe (Value Text)
selectAllOptions :: FilterListConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
categoryValues :: Maybe (ValueList Text)
matchOperator :: Value Text
nullOption :: Maybe (Value Text)
selectAllOptions :: Maybe (Value Text)
..}
= FilterListConfigurationProperty
{selectAllOptions :: Maybe (Value Text)
selectAllOptions = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SelectAllOptions" FilterListConfigurationProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
categoryValues :: Maybe (ValueList Text)
matchOperator :: Value Text
nullOption :: Maybe (Value Text)
haddock_workaround_ :: ()
categoryValues :: Maybe (ValueList Text)
matchOperator :: Value Text
nullOption :: Maybe (Value Text)
..}