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