module Stratosphere.CleanRoomsML.TrainingDataset.GlueDataSourceProperty (
GlueDataSourceProperty(..), mkGlueDataSourceProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data GlueDataSourceProperty
=
GlueDataSourceProperty {GlueDataSourceProperty -> ()
haddock_workaround_ :: (),
GlueDataSourceProperty -> Maybe (Value Text)
catalogId :: (Prelude.Maybe (Value Prelude.Text)),
GlueDataSourceProperty -> Value Text
databaseName :: (Value Prelude.Text),
GlueDataSourceProperty -> Value Text
tableName :: (Value Prelude.Text)}
deriving stock (GlueDataSourceProperty -> GlueDataSourceProperty -> Bool
(GlueDataSourceProperty -> GlueDataSourceProperty -> Bool)
-> (GlueDataSourceProperty -> GlueDataSourceProperty -> Bool)
-> Eq GlueDataSourceProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GlueDataSourceProperty -> GlueDataSourceProperty -> Bool
== :: GlueDataSourceProperty -> GlueDataSourceProperty -> Bool
$c/= :: GlueDataSourceProperty -> GlueDataSourceProperty -> Bool
/= :: GlueDataSourceProperty -> GlueDataSourceProperty -> Bool
Prelude.Eq, Int -> GlueDataSourceProperty -> ShowS
[GlueDataSourceProperty] -> ShowS
GlueDataSourceProperty -> String
(Int -> GlueDataSourceProperty -> ShowS)
-> (GlueDataSourceProperty -> String)
-> ([GlueDataSourceProperty] -> ShowS)
-> Show GlueDataSourceProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GlueDataSourceProperty -> ShowS
showsPrec :: Int -> GlueDataSourceProperty -> ShowS
$cshow :: GlueDataSourceProperty -> String
show :: GlueDataSourceProperty -> String
$cshowList :: [GlueDataSourceProperty] -> ShowS
showList :: [GlueDataSourceProperty] -> ShowS
Prelude.Show)
mkGlueDataSourceProperty ::
Value Prelude.Text -> Value Prelude.Text -> GlueDataSourceProperty
mkGlueDataSourceProperty :: Value Text -> Value Text -> GlueDataSourceProperty
mkGlueDataSourceProperty Value Text
databaseName Value Text
tableName
= GlueDataSourceProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), databaseName :: Value Text
databaseName = Value Text
databaseName,
tableName :: Value Text
tableName = Value Text
tableName, catalogId :: Maybe (Value Text)
catalogId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties GlueDataSourceProperty where
toResourceProperties :: GlueDataSourceProperty -> ResourceProperties
toResourceProperties GlueDataSourceProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: GlueDataSourceProperty -> ()
catalogId :: GlueDataSourceProperty -> Maybe (Value Text)
databaseName :: GlueDataSourceProperty -> Value Text
tableName :: GlueDataSourceProperty -> Value Text
haddock_workaround_ :: ()
catalogId :: Maybe (Value Text)
databaseName :: Value Text
tableName :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CleanRoomsML::TrainingDataset.GlueDataSource",
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
"DatabaseName" 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
databaseName,
Key
"TableName" 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
tableName]
([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
"CatalogId" (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)
catalogId]))}
instance JSON.ToJSON GlueDataSourceProperty where
toJSON :: GlueDataSourceProperty -> Value
toJSON GlueDataSourceProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: GlueDataSourceProperty -> ()
catalogId :: GlueDataSourceProperty -> Maybe (Value Text)
databaseName :: GlueDataSourceProperty -> Value Text
tableName :: GlueDataSourceProperty -> Value Text
haddock_workaround_ :: ()
catalogId :: Maybe (Value Text)
databaseName :: Value Text
tableName :: 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
"DatabaseName" 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
databaseName,
Key
"TableName" 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
tableName]
([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
"CatalogId" (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)
catalogId])))
instance Property "CatalogId" GlueDataSourceProperty where
type PropertyType "CatalogId" GlueDataSourceProperty = Value Prelude.Text
set :: PropertyType "CatalogId" GlueDataSourceProperty
-> GlueDataSourceProperty -> GlueDataSourceProperty
set PropertyType "CatalogId" GlueDataSourceProperty
newValue GlueDataSourceProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: GlueDataSourceProperty -> ()
catalogId :: GlueDataSourceProperty -> Maybe (Value Text)
databaseName :: GlueDataSourceProperty -> Value Text
tableName :: GlueDataSourceProperty -> Value Text
haddock_workaround_ :: ()
catalogId :: Maybe (Value Text)
databaseName :: Value Text
tableName :: Value Text
..}
= GlueDataSourceProperty {catalogId :: Maybe (Value Text)
catalogId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CatalogId" GlueDataSourceProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
databaseName :: Value Text
tableName :: Value Text
haddock_workaround_ :: ()
databaseName :: Value Text
tableName :: Value Text
..}
instance Property "DatabaseName" GlueDataSourceProperty where
type PropertyType "DatabaseName" GlueDataSourceProperty = Value Prelude.Text
set :: PropertyType "DatabaseName" GlueDataSourceProperty
-> GlueDataSourceProperty -> GlueDataSourceProperty
set PropertyType "DatabaseName" GlueDataSourceProperty
newValue GlueDataSourceProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: GlueDataSourceProperty -> ()
catalogId :: GlueDataSourceProperty -> Maybe (Value Text)
databaseName :: GlueDataSourceProperty -> Value Text
tableName :: GlueDataSourceProperty -> Value Text
haddock_workaround_ :: ()
catalogId :: Maybe (Value Text)
databaseName :: Value Text
tableName :: Value Text
..}
= GlueDataSourceProperty {databaseName :: Value Text
databaseName = PropertyType "DatabaseName" GlueDataSourceProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
catalogId :: Maybe (Value Text)
tableName :: Value Text
haddock_workaround_ :: ()
catalogId :: Maybe (Value Text)
tableName :: Value Text
..}
instance Property "TableName" GlueDataSourceProperty where
type PropertyType "TableName" GlueDataSourceProperty = Value Prelude.Text
set :: PropertyType "TableName" GlueDataSourceProperty
-> GlueDataSourceProperty -> GlueDataSourceProperty
set PropertyType "TableName" GlueDataSourceProperty
newValue GlueDataSourceProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: GlueDataSourceProperty -> ()
catalogId :: GlueDataSourceProperty -> Maybe (Value Text)
databaseName :: GlueDataSourceProperty -> Value Text
tableName :: GlueDataSourceProperty -> Value Text
haddock_workaround_ :: ()
catalogId :: Maybe (Value Text)
databaseName :: Value Text
tableName :: Value Text
..}
= GlueDataSourceProperty {tableName :: Value Text
tableName = PropertyType "TableName" GlueDataSourceProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
catalogId :: Maybe (Value Text)
databaseName :: Value Text
haddock_workaround_ :: ()
catalogId :: Maybe (Value Text)
databaseName :: Value Text
..}