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