module Stratosphere.QuickSight.Template.CustomFilterConfigurationProperty (
CustomFilterConfigurationProperty(..),
mkCustomFilterConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CustomFilterConfigurationProperty
=
CustomFilterConfigurationProperty {CustomFilterConfigurationProperty -> ()
haddock_workaround_ :: (),
CustomFilterConfigurationProperty -> Maybe (Value Text)
categoryValue :: (Prelude.Maybe (Value Prelude.Text)),
CustomFilterConfigurationProperty -> Value Text
matchOperator :: (Value Prelude.Text),
CustomFilterConfigurationProperty -> Value Text
nullOption :: (Value Prelude.Text),
CustomFilterConfigurationProperty -> Maybe (Value Text)
parameterName :: (Prelude.Maybe (Value Prelude.Text)),
CustomFilterConfigurationProperty -> Maybe (Value Text)
selectAllOptions :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (CustomFilterConfigurationProperty
-> CustomFilterConfigurationProperty -> Bool
(CustomFilterConfigurationProperty
-> CustomFilterConfigurationProperty -> Bool)
-> (CustomFilterConfigurationProperty
-> CustomFilterConfigurationProperty -> Bool)
-> Eq CustomFilterConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CustomFilterConfigurationProperty
-> CustomFilterConfigurationProperty -> Bool
== :: CustomFilterConfigurationProperty
-> CustomFilterConfigurationProperty -> Bool
$c/= :: CustomFilterConfigurationProperty
-> CustomFilterConfigurationProperty -> Bool
/= :: CustomFilterConfigurationProperty
-> CustomFilterConfigurationProperty -> Bool
Prelude.Eq, Int -> CustomFilterConfigurationProperty -> ShowS
[CustomFilterConfigurationProperty] -> ShowS
CustomFilterConfigurationProperty -> String
(Int -> CustomFilterConfigurationProperty -> ShowS)
-> (CustomFilterConfigurationProperty -> String)
-> ([CustomFilterConfigurationProperty] -> ShowS)
-> Show CustomFilterConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CustomFilterConfigurationProperty -> ShowS
showsPrec :: Int -> CustomFilterConfigurationProperty -> ShowS
$cshow :: CustomFilterConfigurationProperty -> String
show :: CustomFilterConfigurationProperty -> String
$cshowList :: [CustomFilterConfigurationProperty] -> ShowS
showList :: [CustomFilterConfigurationProperty] -> ShowS
Prelude.Show)
mkCustomFilterConfigurationProperty ::
Value Prelude.Text
-> Value Prelude.Text -> CustomFilterConfigurationProperty
mkCustomFilterConfigurationProperty :: Value Text -> Value Text -> CustomFilterConfigurationProperty
mkCustomFilterConfigurationProperty Value Text
matchOperator Value Text
nullOption
= CustomFilterConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), matchOperator :: Value Text
matchOperator = Value Text
matchOperator,
nullOption :: Value Text
nullOption = Value Text
nullOption, categoryValue :: Maybe (Value Text)
categoryValue = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
parameterName :: Maybe (Value Text)
parameterName = 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 CustomFilterConfigurationProperty where
toResourceProperties :: CustomFilterConfigurationProperty -> ResourceProperties
toResourceProperties CustomFilterConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CustomFilterConfigurationProperty -> ()
categoryValue :: CustomFilterConfigurationProperty -> Maybe (Value Text)
matchOperator :: CustomFilterConfigurationProperty -> Value Text
nullOption :: CustomFilterConfigurationProperty -> Value Text
parameterName :: CustomFilterConfigurationProperty -> Maybe (Value Text)
selectAllOptions :: CustomFilterConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
categoryValue :: Maybe (Value Text)
matchOperator :: Value Text
nullOption :: Value Text
parameterName :: Maybe (Value Text)
selectAllOptions :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Template.CustomFilterConfiguration",
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 -> 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
"CategoryValue" (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)
categoryValue,
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
"ParameterName" (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)
parameterName,
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 CustomFilterConfigurationProperty where
toJSON :: CustomFilterConfigurationProperty -> Value
toJSON CustomFilterConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CustomFilterConfigurationProperty -> ()
categoryValue :: CustomFilterConfigurationProperty -> Maybe (Value Text)
matchOperator :: CustomFilterConfigurationProperty -> Value Text
nullOption :: CustomFilterConfigurationProperty -> Value Text
parameterName :: CustomFilterConfigurationProperty -> Maybe (Value Text)
selectAllOptions :: CustomFilterConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
categoryValue :: Maybe (Value Text)
matchOperator :: Value Text
nullOption :: Value Text
parameterName :: 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,
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 -> 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
"CategoryValue" (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)
categoryValue,
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
"ParameterName" (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)
parameterName,
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 "CategoryValue" CustomFilterConfigurationProperty where
type PropertyType "CategoryValue" CustomFilterConfigurationProperty = Value Prelude.Text
set :: PropertyType "CategoryValue" CustomFilterConfigurationProperty
-> CustomFilterConfigurationProperty
-> CustomFilterConfigurationProperty
set PropertyType "CategoryValue" CustomFilterConfigurationProperty
newValue CustomFilterConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CustomFilterConfigurationProperty -> ()
categoryValue :: CustomFilterConfigurationProperty -> Maybe (Value Text)
matchOperator :: CustomFilterConfigurationProperty -> Value Text
nullOption :: CustomFilterConfigurationProperty -> Value Text
parameterName :: CustomFilterConfigurationProperty -> Maybe (Value Text)
selectAllOptions :: CustomFilterConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
categoryValue :: Maybe (Value Text)
matchOperator :: Value Text
nullOption :: Value Text
parameterName :: Maybe (Value Text)
selectAllOptions :: Maybe (Value Text)
..}
= CustomFilterConfigurationProperty
{categoryValue :: Maybe (Value Text)
categoryValue = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CategoryValue" CustomFilterConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
matchOperator :: Value Text
nullOption :: Value Text
parameterName :: Maybe (Value Text)
selectAllOptions :: Maybe (Value Text)
haddock_workaround_ :: ()
matchOperator :: Value Text
nullOption :: Value Text
parameterName :: Maybe (Value Text)
selectAllOptions :: Maybe (Value Text)
..}
instance Property "MatchOperator" CustomFilterConfigurationProperty where
type PropertyType "MatchOperator" CustomFilterConfigurationProperty = Value Prelude.Text
set :: PropertyType "MatchOperator" CustomFilterConfigurationProperty
-> CustomFilterConfigurationProperty
-> CustomFilterConfigurationProperty
set PropertyType "MatchOperator" CustomFilterConfigurationProperty
newValue CustomFilterConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CustomFilterConfigurationProperty -> ()
categoryValue :: CustomFilterConfigurationProperty -> Maybe (Value Text)
matchOperator :: CustomFilterConfigurationProperty -> Value Text
nullOption :: CustomFilterConfigurationProperty -> Value Text
parameterName :: CustomFilterConfigurationProperty -> Maybe (Value Text)
selectAllOptions :: CustomFilterConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
categoryValue :: Maybe (Value Text)
matchOperator :: Value Text
nullOption :: Value Text
parameterName :: Maybe (Value Text)
selectAllOptions :: Maybe (Value Text)
..}
= CustomFilterConfigurationProperty {matchOperator :: Value Text
matchOperator = PropertyType "MatchOperator" CustomFilterConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
categoryValue :: Maybe (Value Text)
nullOption :: Value Text
parameterName :: Maybe (Value Text)
selectAllOptions :: Maybe (Value Text)
haddock_workaround_ :: ()
categoryValue :: Maybe (Value Text)
nullOption :: Value Text
parameterName :: Maybe (Value Text)
selectAllOptions :: Maybe (Value Text)
..}
instance Property "NullOption" CustomFilterConfigurationProperty where
type PropertyType "NullOption" CustomFilterConfigurationProperty = Value Prelude.Text
set :: PropertyType "NullOption" CustomFilterConfigurationProperty
-> CustomFilterConfigurationProperty
-> CustomFilterConfigurationProperty
set PropertyType "NullOption" CustomFilterConfigurationProperty
newValue CustomFilterConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CustomFilterConfigurationProperty -> ()
categoryValue :: CustomFilterConfigurationProperty -> Maybe (Value Text)
matchOperator :: CustomFilterConfigurationProperty -> Value Text
nullOption :: CustomFilterConfigurationProperty -> Value Text
parameterName :: CustomFilterConfigurationProperty -> Maybe (Value Text)
selectAllOptions :: CustomFilterConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
categoryValue :: Maybe (Value Text)
matchOperator :: Value Text
nullOption :: Value Text
parameterName :: Maybe (Value Text)
selectAllOptions :: Maybe (Value Text)
..}
= CustomFilterConfigurationProperty {nullOption :: Value Text
nullOption = PropertyType "NullOption" CustomFilterConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
categoryValue :: Maybe (Value Text)
matchOperator :: Value Text
parameterName :: Maybe (Value Text)
selectAllOptions :: Maybe (Value Text)
haddock_workaround_ :: ()
categoryValue :: Maybe (Value Text)
matchOperator :: Value Text
parameterName :: Maybe (Value Text)
selectAllOptions :: Maybe (Value Text)
..}
instance Property "ParameterName" CustomFilterConfigurationProperty where
type PropertyType "ParameterName" CustomFilterConfigurationProperty = Value Prelude.Text
set :: PropertyType "ParameterName" CustomFilterConfigurationProperty
-> CustomFilterConfigurationProperty
-> CustomFilterConfigurationProperty
set PropertyType "ParameterName" CustomFilterConfigurationProperty
newValue CustomFilterConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CustomFilterConfigurationProperty -> ()
categoryValue :: CustomFilterConfigurationProperty -> Maybe (Value Text)
matchOperator :: CustomFilterConfigurationProperty -> Value Text
nullOption :: CustomFilterConfigurationProperty -> Value Text
parameterName :: CustomFilterConfigurationProperty -> Maybe (Value Text)
selectAllOptions :: CustomFilterConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
categoryValue :: Maybe (Value Text)
matchOperator :: Value Text
nullOption :: Value Text
parameterName :: Maybe (Value Text)
selectAllOptions :: Maybe (Value Text)
..}
= CustomFilterConfigurationProperty
{parameterName :: Maybe (Value Text)
parameterName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ParameterName" CustomFilterConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
categoryValue :: Maybe (Value Text)
matchOperator :: Value Text
nullOption :: Value Text
selectAllOptions :: Maybe (Value Text)
haddock_workaround_ :: ()
categoryValue :: Maybe (Value Text)
matchOperator :: Value Text
nullOption :: Value Text
selectAllOptions :: Maybe (Value Text)
..}
instance Property "SelectAllOptions" CustomFilterConfigurationProperty where
type PropertyType "SelectAllOptions" CustomFilterConfigurationProperty = Value Prelude.Text
set :: PropertyType "SelectAllOptions" CustomFilterConfigurationProperty
-> CustomFilterConfigurationProperty
-> CustomFilterConfigurationProperty
set PropertyType "SelectAllOptions" CustomFilterConfigurationProperty
newValue CustomFilterConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CustomFilterConfigurationProperty -> ()
categoryValue :: CustomFilterConfigurationProperty -> Maybe (Value Text)
matchOperator :: CustomFilterConfigurationProperty -> Value Text
nullOption :: CustomFilterConfigurationProperty -> Value Text
parameterName :: CustomFilterConfigurationProperty -> Maybe (Value Text)
selectAllOptions :: CustomFilterConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
categoryValue :: Maybe (Value Text)
matchOperator :: Value Text
nullOption :: Value Text
parameterName :: Maybe (Value Text)
selectAllOptions :: Maybe (Value Text)
..}
= CustomFilterConfigurationProperty
{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" CustomFilterConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
categoryValue :: Maybe (Value Text)
matchOperator :: Value Text
nullOption :: Value Text
parameterName :: Maybe (Value Text)
haddock_workaround_ :: ()
categoryValue :: Maybe (Value Text)
matchOperator :: Value Text
nullOption :: Value Text
parameterName :: Maybe (Value Text)
..}