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