module Stratosphere.DataBrew.Dataset.DatabaseInputDefinitionProperty (
module Exports, DatabaseInputDefinitionProperty(..),
mkDatabaseInputDefinitionProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.DataBrew.Dataset.S3LocationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DatabaseInputDefinitionProperty
=
DatabaseInputDefinitionProperty {DatabaseInputDefinitionProperty -> ()
haddock_workaround_ :: (),
DatabaseInputDefinitionProperty -> Maybe (Value Text)
databaseTableName :: (Prelude.Maybe (Value Prelude.Text)),
DatabaseInputDefinitionProperty -> Value Text
glueConnectionName :: (Value Prelude.Text),
DatabaseInputDefinitionProperty -> Maybe (Value Text)
queryString :: (Prelude.Maybe (Value Prelude.Text)),
DatabaseInputDefinitionProperty -> Maybe S3LocationProperty
tempDirectory :: (Prelude.Maybe S3LocationProperty)}
deriving stock (DatabaseInputDefinitionProperty
-> DatabaseInputDefinitionProperty -> Bool
(DatabaseInputDefinitionProperty
-> DatabaseInputDefinitionProperty -> Bool)
-> (DatabaseInputDefinitionProperty
-> DatabaseInputDefinitionProperty -> Bool)
-> Eq DatabaseInputDefinitionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DatabaseInputDefinitionProperty
-> DatabaseInputDefinitionProperty -> Bool
== :: DatabaseInputDefinitionProperty
-> DatabaseInputDefinitionProperty -> Bool
$c/= :: DatabaseInputDefinitionProperty
-> DatabaseInputDefinitionProperty -> Bool
/= :: DatabaseInputDefinitionProperty
-> DatabaseInputDefinitionProperty -> Bool
Prelude.Eq, Int -> DatabaseInputDefinitionProperty -> ShowS
[DatabaseInputDefinitionProperty] -> ShowS
DatabaseInputDefinitionProperty -> String
(Int -> DatabaseInputDefinitionProperty -> ShowS)
-> (DatabaseInputDefinitionProperty -> String)
-> ([DatabaseInputDefinitionProperty] -> ShowS)
-> Show DatabaseInputDefinitionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DatabaseInputDefinitionProperty -> ShowS
showsPrec :: Int -> DatabaseInputDefinitionProperty -> ShowS
$cshow :: DatabaseInputDefinitionProperty -> String
show :: DatabaseInputDefinitionProperty -> String
$cshowList :: [DatabaseInputDefinitionProperty] -> ShowS
showList :: [DatabaseInputDefinitionProperty] -> ShowS
Prelude.Show)
mkDatabaseInputDefinitionProperty ::
Value Prelude.Text -> DatabaseInputDefinitionProperty
mkDatabaseInputDefinitionProperty :: Value Text -> DatabaseInputDefinitionProperty
mkDatabaseInputDefinitionProperty Value Text
glueConnectionName
= DatabaseInputDefinitionProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), glueConnectionName :: Value Text
glueConnectionName = Value Text
glueConnectionName,
databaseTableName :: Maybe (Value Text)
databaseTableName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, queryString :: Maybe (Value Text)
queryString = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
tempDirectory :: Maybe S3LocationProperty
tempDirectory = Maybe S3LocationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DatabaseInputDefinitionProperty where
toResourceProperties :: DatabaseInputDefinitionProperty -> ResourceProperties
toResourceProperties DatabaseInputDefinitionProperty {Maybe (Value Text)
Maybe S3LocationProperty
()
Value Text
haddock_workaround_ :: DatabaseInputDefinitionProperty -> ()
databaseTableName :: DatabaseInputDefinitionProperty -> Maybe (Value Text)
glueConnectionName :: DatabaseInputDefinitionProperty -> Value Text
queryString :: DatabaseInputDefinitionProperty -> Maybe (Value Text)
tempDirectory :: DatabaseInputDefinitionProperty -> Maybe S3LocationProperty
haddock_workaround_ :: ()
databaseTableName :: Maybe (Value Text)
glueConnectionName :: Value Text
queryString :: Maybe (Value Text)
tempDirectory :: Maybe S3LocationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::DataBrew::Dataset.DatabaseInputDefinition",
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
"GlueConnectionName" 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
glueConnectionName]
([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
"DatabaseTableName" (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)
databaseTableName,
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
"QueryString" (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)
queryString,
Key -> S3LocationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TempDirectory" (S3LocationProperty -> (Key, Value))
-> Maybe S3LocationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3LocationProperty
tempDirectory]))}
instance JSON.ToJSON DatabaseInputDefinitionProperty where
toJSON :: DatabaseInputDefinitionProperty -> Value
toJSON DatabaseInputDefinitionProperty {Maybe (Value Text)
Maybe S3LocationProperty
()
Value Text
haddock_workaround_ :: DatabaseInputDefinitionProperty -> ()
databaseTableName :: DatabaseInputDefinitionProperty -> Maybe (Value Text)
glueConnectionName :: DatabaseInputDefinitionProperty -> Value Text
queryString :: DatabaseInputDefinitionProperty -> Maybe (Value Text)
tempDirectory :: DatabaseInputDefinitionProperty -> Maybe S3LocationProperty
haddock_workaround_ :: ()
databaseTableName :: Maybe (Value Text)
glueConnectionName :: Value Text
queryString :: Maybe (Value Text)
tempDirectory :: Maybe S3LocationProperty
..}
= [(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
"GlueConnectionName" 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
glueConnectionName]
([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
"DatabaseTableName" (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)
databaseTableName,
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
"QueryString" (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)
queryString,
Key -> S3LocationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TempDirectory" (S3LocationProperty -> (Key, Value))
-> Maybe S3LocationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3LocationProperty
tempDirectory])))
instance Property "DatabaseTableName" DatabaseInputDefinitionProperty where
type PropertyType "DatabaseTableName" DatabaseInputDefinitionProperty = Value Prelude.Text
set :: PropertyType "DatabaseTableName" DatabaseInputDefinitionProperty
-> DatabaseInputDefinitionProperty
-> DatabaseInputDefinitionProperty
set PropertyType "DatabaseTableName" DatabaseInputDefinitionProperty
newValue DatabaseInputDefinitionProperty {Maybe (Value Text)
Maybe S3LocationProperty
()
Value Text
haddock_workaround_ :: DatabaseInputDefinitionProperty -> ()
databaseTableName :: DatabaseInputDefinitionProperty -> Maybe (Value Text)
glueConnectionName :: DatabaseInputDefinitionProperty -> Value Text
queryString :: DatabaseInputDefinitionProperty -> Maybe (Value Text)
tempDirectory :: DatabaseInputDefinitionProperty -> Maybe S3LocationProperty
haddock_workaround_ :: ()
databaseTableName :: Maybe (Value Text)
glueConnectionName :: Value Text
queryString :: Maybe (Value Text)
tempDirectory :: Maybe S3LocationProperty
..}
= DatabaseInputDefinitionProperty
{databaseTableName :: Maybe (Value Text)
databaseTableName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DatabaseTableName" DatabaseInputDefinitionProperty
Value Text
newValue, Maybe (Value Text)
Maybe S3LocationProperty
()
Value Text
haddock_workaround_ :: ()
glueConnectionName :: Value Text
queryString :: Maybe (Value Text)
tempDirectory :: Maybe S3LocationProperty
haddock_workaround_ :: ()
glueConnectionName :: Value Text
queryString :: Maybe (Value Text)
tempDirectory :: Maybe S3LocationProperty
..}
instance Property "GlueConnectionName" DatabaseInputDefinitionProperty where
type PropertyType "GlueConnectionName" DatabaseInputDefinitionProperty = Value Prelude.Text
set :: PropertyType "GlueConnectionName" DatabaseInputDefinitionProperty
-> DatabaseInputDefinitionProperty
-> DatabaseInputDefinitionProperty
set PropertyType "GlueConnectionName" DatabaseInputDefinitionProperty
newValue DatabaseInputDefinitionProperty {Maybe (Value Text)
Maybe S3LocationProperty
()
Value Text
haddock_workaround_ :: DatabaseInputDefinitionProperty -> ()
databaseTableName :: DatabaseInputDefinitionProperty -> Maybe (Value Text)
glueConnectionName :: DatabaseInputDefinitionProperty -> Value Text
queryString :: DatabaseInputDefinitionProperty -> Maybe (Value Text)
tempDirectory :: DatabaseInputDefinitionProperty -> Maybe S3LocationProperty
haddock_workaround_ :: ()
databaseTableName :: Maybe (Value Text)
glueConnectionName :: Value Text
queryString :: Maybe (Value Text)
tempDirectory :: Maybe S3LocationProperty
..}
= DatabaseInputDefinitionProperty
{glueConnectionName :: Value Text
glueConnectionName = PropertyType "GlueConnectionName" DatabaseInputDefinitionProperty
Value Text
newValue, Maybe (Value Text)
Maybe S3LocationProperty
()
haddock_workaround_ :: ()
databaseTableName :: Maybe (Value Text)
queryString :: Maybe (Value Text)
tempDirectory :: Maybe S3LocationProperty
haddock_workaround_ :: ()
databaseTableName :: Maybe (Value Text)
queryString :: Maybe (Value Text)
tempDirectory :: Maybe S3LocationProperty
..}
instance Property "QueryString" DatabaseInputDefinitionProperty where
type PropertyType "QueryString" DatabaseInputDefinitionProperty = Value Prelude.Text
set :: PropertyType "QueryString" DatabaseInputDefinitionProperty
-> DatabaseInputDefinitionProperty
-> DatabaseInputDefinitionProperty
set PropertyType "QueryString" DatabaseInputDefinitionProperty
newValue DatabaseInputDefinitionProperty {Maybe (Value Text)
Maybe S3LocationProperty
()
Value Text
haddock_workaround_ :: DatabaseInputDefinitionProperty -> ()
databaseTableName :: DatabaseInputDefinitionProperty -> Maybe (Value Text)
glueConnectionName :: DatabaseInputDefinitionProperty -> Value Text
queryString :: DatabaseInputDefinitionProperty -> Maybe (Value Text)
tempDirectory :: DatabaseInputDefinitionProperty -> Maybe S3LocationProperty
haddock_workaround_ :: ()
databaseTableName :: Maybe (Value Text)
glueConnectionName :: Value Text
queryString :: Maybe (Value Text)
tempDirectory :: Maybe S3LocationProperty
..}
= DatabaseInputDefinitionProperty
{queryString :: Maybe (Value Text)
queryString = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "QueryString" DatabaseInputDefinitionProperty
Value Text
newValue, Maybe (Value Text)
Maybe S3LocationProperty
()
Value Text
haddock_workaround_ :: ()
databaseTableName :: Maybe (Value Text)
glueConnectionName :: Value Text
tempDirectory :: Maybe S3LocationProperty
haddock_workaround_ :: ()
databaseTableName :: Maybe (Value Text)
glueConnectionName :: Value Text
tempDirectory :: Maybe S3LocationProperty
..}
instance Property "TempDirectory" DatabaseInputDefinitionProperty where
type PropertyType "TempDirectory" DatabaseInputDefinitionProperty = S3LocationProperty
set :: PropertyType "TempDirectory" DatabaseInputDefinitionProperty
-> DatabaseInputDefinitionProperty
-> DatabaseInputDefinitionProperty
set PropertyType "TempDirectory" DatabaseInputDefinitionProperty
newValue DatabaseInputDefinitionProperty {Maybe (Value Text)
Maybe S3LocationProperty
()
Value Text
haddock_workaround_ :: DatabaseInputDefinitionProperty -> ()
databaseTableName :: DatabaseInputDefinitionProperty -> Maybe (Value Text)
glueConnectionName :: DatabaseInputDefinitionProperty -> Value Text
queryString :: DatabaseInputDefinitionProperty -> Maybe (Value Text)
tempDirectory :: DatabaseInputDefinitionProperty -> Maybe S3LocationProperty
haddock_workaround_ :: ()
databaseTableName :: Maybe (Value Text)
glueConnectionName :: Value Text
queryString :: Maybe (Value Text)
tempDirectory :: Maybe S3LocationProperty
..}
= DatabaseInputDefinitionProperty
{tempDirectory :: Maybe S3LocationProperty
tempDirectory = S3LocationProperty -> Maybe S3LocationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TempDirectory" DatabaseInputDefinitionProperty
S3LocationProperty
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
databaseTableName :: Maybe (Value Text)
glueConnectionName :: Value Text
queryString :: Maybe (Value Text)
haddock_workaround_ :: ()
databaseTableName :: Maybe (Value Text)
glueConnectionName :: Value Text
queryString :: Maybe (Value Text)
..}