module Stratosphere.QuickSight.Analysis.CustomFilterListConfigurationProperty (
CustomFilterListConfigurationProperty(..),
mkCustomFilterListConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CustomFilterListConfigurationProperty
=
CustomFilterListConfigurationProperty {CustomFilterListConfigurationProperty -> ()
haddock_workaround_ :: (),
CustomFilterListConfigurationProperty -> Maybe (ValueList Text)
categoryValues :: (Prelude.Maybe (ValueList Prelude.Text)),
CustomFilterListConfigurationProperty -> Value Text
matchOperator :: (Value Prelude.Text),
CustomFilterListConfigurationProperty -> Value Text
nullOption :: (Value Prelude.Text),
CustomFilterListConfigurationProperty -> Maybe (Value Text)
selectAllOptions :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (CustomFilterListConfigurationProperty
-> CustomFilterListConfigurationProperty -> Bool
(CustomFilterListConfigurationProperty
-> CustomFilterListConfigurationProperty -> Bool)
-> (CustomFilterListConfigurationProperty
-> CustomFilterListConfigurationProperty -> Bool)
-> Eq CustomFilterListConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CustomFilterListConfigurationProperty
-> CustomFilterListConfigurationProperty -> Bool
== :: CustomFilterListConfigurationProperty
-> CustomFilterListConfigurationProperty -> Bool
$c/= :: CustomFilterListConfigurationProperty
-> CustomFilterListConfigurationProperty -> Bool
/= :: CustomFilterListConfigurationProperty
-> CustomFilterListConfigurationProperty -> Bool
Prelude.Eq, Int -> CustomFilterListConfigurationProperty -> ShowS
[CustomFilterListConfigurationProperty] -> ShowS
CustomFilterListConfigurationProperty -> String
(Int -> CustomFilterListConfigurationProperty -> ShowS)
-> (CustomFilterListConfigurationProperty -> String)
-> ([CustomFilterListConfigurationProperty] -> ShowS)
-> Show CustomFilterListConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CustomFilterListConfigurationProperty -> ShowS
showsPrec :: Int -> CustomFilterListConfigurationProperty -> ShowS
$cshow :: CustomFilterListConfigurationProperty -> String
show :: CustomFilterListConfigurationProperty -> String
$cshowList :: [CustomFilterListConfigurationProperty] -> ShowS
showList :: [CustomFilterListConfigurationProperty] -> ShowS
Prelude.Show)
mkCustomFilterListConfigurationProperty ::
Value Prelude.Text
-> Value Prelude.Text -> CustomFilterListConfigurationProperty
mkCustomFilterListConfigurationProperty :: Value Text -> Value Text -> CustomFilterListConfigurationProperty
mkCustomFilterListConfigurationProperty Value Text
matchOperator Value Text
nullOption
= CustomFilterListConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), matchOperator :: Value Text
matchOperator = Value Text
matchOperator,
nullOption :: Value Text
nullOption = Value Text
nullOption, categoryValues :: Maybe (ValueList Text)
categoryValues = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
selectAllOptions :: Maybe (Value Text)
selectAllOptions = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CustomFilterListConfigurationProperty where
toResourceProperties :: CustomFilterListConfigurationProperty -> ResourceProperties
toResourceProperties CustomFilterListConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CustomFilterListConfigurationProperty -> ()
categoryValues :: CustomFilterListConfigurationProperty -> Maybe (ValueList Text)
matchOperator :: CustomFilterListConfigurationProperty -> Value Text
nullOption :: CustomFilterListConfigurationProperty -> Value Text
selectAllOptions :: CustomFilterListConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
categoryValues :: Maybe (ValueList Text)
matchOperator :: Value Text
nullOption :: Value Text
selectAllOptions :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Analysis.CustomFilterListConfiguration",
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,
Key
"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..= Value Text
nullOption]
([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
"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 CustomFilterListConfigurationProperty where
toJSON :: CustomFilterListConfigurationProperty -> Value
toJSON CustomFilterListConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CustomFilterListConfigurationProperty -> ()
categoryValues :: CustomFilterListConfigurationProperty -> Maybe (ValueList Text)
matchOperator :: CustomFilterListConfigurationProperty -> Value Text
nullOption :: CustomFilterListConfigurationProperty -> Value Text
selectAllOptions :: CustomFilterListConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
categoryValues :: Maybe (ValueList Text)
matchOperator :: Value Text
nullOption :: 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,
Key
"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..= Value Text
nullOption]
([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
"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" CustomFilterListConfigurationProperty where
type PropertyType "CategoryValues" CustomFilterListConfigurationProperty = ValueList Prelude.Text
set :: PropertyType "CategoryValues" CustomFilterListConfigurationProperty
-> CustomFilterListConfigurationProperty
-> CustomFilterListConfigurationProperty
set PropertyType "CategoryValues" CustomFilterListConfigurationProperty
newValue CustomFilterListConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CustomFilterListConfigurationProperty -> ()
categoryValues :: CustomFilterListConfigurationProperty -> Maybe (ValueList Text)
matchOperator :: CustomFilterListConfigurationProperty -> Value Text
nullOption :: CustomFilterListConfigurationProperty -> Value Text
selectAllOptions :: CustomFilterListConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
categoryValues :: Maybe (ValueList Text)
matchOperator :: Value Text
nullOption :: Value Text
selectAllOptions :: Maybe (Value Text)
..}
= CustomFilterListConfigurationProperty
{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" CustomFilterListConfigurationProperty
ValueList Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
matchOperator :: Value Text
nullOption :: Value Text
selectAllOptions :: Maybe (Value Text)
haddock_workaround_ :: ()
matchOperator :: Value Text
nullOption :: Value Text
selectAllOptions :: Maybe (Value Text)
..}
instance Property "MatchOperator" CustomFilterListConfigurationProperty where
type PropertyType "MatchOperator" CustomFilterListConfigurationProperty = Value Prelude.Text
set :: PropertyType "MatchOperator" CustomFilterListConfigurationProperty
-> CustomFilterListConfigurationProperty
-> CustomFilterListConfigurationProperty
set PropertyType "MatchOperator" CustomFilterListConfigurationProperty
newValue CustomFilterListConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CustomFilterListConfigurationProperty -> ()
categoryValues :: CustomFilterListConfigurationProperty -> Maybe (ValueList Text)
matchOperator :: CustomFilterListConfigurationProperty -> Value Text
nullOption :: CustomFilterListConfigurationProperty -> Value Text
selectAllOptions :: CustomFilterListConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
categoryValues :: Maybe (ValueList Text)
matchOperator :: Value Text
nullOption :: Value Text
selectAllOptions :: Maybe (Value Text)
..}
= CustomFilterListConfigurationProperty
{matchOperator :: Value Text
matchOperator = PropertyType "MatchOperator" CustomFilterListConfigurationProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
categoryValues :: Maybe (ValueList Text)
nullOption :: Value Text
selectAllOptions :: Maybe (Value Text)
haddock_workaround_ :: ()
categoryValues :: Maybe (ValueList Text)
nullOption :: Value Text
selectAllOptions :: Maybe (Value Text)
..}
instance Property "NullOption" CustomFilterListConfigurationProperty where
type PropertyType "NullOption" CustomFilterListConfigurationProperty = Value Prelude.Text
set :: PropertyType "NullOption" CustomFilterListConfigurationProperty
-> CustomFilterListConfigurationProperty
-> CustomFilterListConfigurationProperty
set PropertyType "NullOption" CustomFilterListConfigurationProperty
newValue CustomFilterListConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CustomFilterListConfigurationProperty -> ()
categoryValues :: CustomFilterListConfigurationProperty -> Maybe (ValueList Text)
matchOperator :: CustomFilterListConfigurationProperty -> Value Text
nullOption :: CustomFilterListConfigurationProperty -> Value Text
selectAllOptions :: CustomFilterListConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
categoryValues :: Maybe (ValueList Text)
matchOperator :: Value Text
nullOption :: Value Text
selectAllOptions :: Maybe (Value Text)
..}
= CustomFilterListConfigurationProperty {nullOption :: Value Text
nullOption = PropertyType "NullOption" CustomFilterListConfigurationProperty
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" CustomFilterListConfigurationProperty where
type PropertyType "SelectAllOptions" CustomFilterListConfigurationProperty = Value Prelude.Text
set :: PropertyType
"SelectAllOptions" CustomFilterListConfigurationProperty
-> CustomFilterListConfigurationProperty
-> CustomFilterListConfigurationProperty
set PropertyType
"SelectAllOptions" CustomFilterListConfigurationProperty
newValue CustomFilterListConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CustomFilterListConfigurationProperty -> ()
categoryValues :: CustomFilterListConfigurationProperty -> Maybe (ValueList Text)
matchOperator :: CustomFilterListConfigurationProperty -> Value Text
nullOption :: CustomFilterListConfigurationProperty -> Value Text
selectAllOptions :: CustomFilterListConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
categoryValues :: Maybe (ValueList Text)
matchOperator :: Value Text
nullOption :: Value Text
selectAllOptions :: Maybe (Value Text)
..}
= CustomFilterListConfigurationProperty
{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" CustomFilterListConfigurationProperty
Value Text
newValue, Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: ()
categoryValues :: Maybe (ValueList Text)
matchOperator :: Value Text
nullOption :: Value Text
haddock_workaround_ :: ()
categoryValues :: Maybe (ValueList Text)
matchOperator :: Value Text
nullOption :: Value Text
..}