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