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