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