{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Glue.Types.JDBCConnectorSource
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Glue.Types.JDBCConnectorSource where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.Glue.Types.GlueSchema
import Amazonka.Glue.Types.JDBCConnectorOptions
import qualified Amazonka.Prelude as Prelude

-- | Specifies a connector to a JDBC data source.
--
-- /See:/ 'newJDBCConnectorSource' smart constructor.
data JDBCConnectorSource = JDBCConnectorSource'
  { -- | Additional connection options for the connector.
    JDBCConnectorSource -> Maybe JDBCConnectorOptions
additionalOptions :: Prelude.Maybe JDBCConnectorOptions,
    -- | The name of the table in the data source.
    JDBCConnectorSource -> Maybe Text
connectionTable :: Prelude.Maybe Prelude.Text,
    -- | Specifies the data schema for the custom JDBC source.
    JDBCConnectorSource -> Maybe [GlueSchema]
outputSchemas :: Prelude.Maybe [GlueSchema],
    -- | The table or SQL query to get the data from. You can specify either
    -- @ConnectionTable@ or @query@, but not both.
    JDBCConnectorSource -> Maybe Text
query :: Prelude.Maybe Prelude.Text,
    -- | The name of the data source.
    JDBCConnectorSource -> Text
name :: Prelude.Text,
    -- | The name of the connection that is associated with the connector.
    JDBCConnectorSource -> Text
connectionName :: Prelude.Text,
    -- | The name of a connector that assists with accessing the data store in
    -- Glue Studio.
    JDBCConnectorSource -> Text
connectorName :: Prelude.Text,
    -- | The type of connection, such as marketplace.jdbc or custom.jdbc,
    -- designating a connection to a JDBC data store.
    JDBCConnectorSource -> Text
connectionType :: Prelude.Text
  }
  deriving (JDBCConnectorSource -> JDBCConnectorSource -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: JDBCConnectorSource -> JDBCConnectorSource -> Bool
$c/= :: JDBCConnectorSource -> JDBCConnectorSource -> Bool
== :: JDBCConnectorSource -> JDBCConnectorSource -> Bool
$c== :: JDBCConnectorSource -> JDBCConnectorSource -> Bool
Prelude.Eq, ReadPrec [JDBCConnectorSource]
ReadPrec JDBCConnectorSource
Int -> ReadS JDBCConnectorSource
ReadS [JDBCConnectorSource]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [JDBCConnectorSource]
$creadListPrec :: ReadPrec [JDBCConnectorSource]
readPrec :: ReadPrec JDBCConnectorSource
$creadPrec :: ReadPrec JDBCConnectorSource
readList :: ReadS [JDBCConnectorSource]
$creadList :: ReadS [JDBCConnectorSource]
readsPrec :: Int -> ReadS JDBCConnectorSource
$creadsPrec :: Int -> ReadS JDBCConnectorSource
Prelude.Read, Int -> JDBCConnectorSource -> ShowS
[JDBCConnectorSource] -> ShowS
JDBCConnectorSource -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [JDBCConnectorSource] -> ShowS
$cshowList :: [JDBCConnectorSource] -> ShowS
show :: JDBCConnectorSource -> String
$cshow :: JDBCConnectorSource -> String
showsPrec :: Int -> JDBCConnectorSource -> ShowS
$cshowsPrec :: Int -> JDBCConnectorSource -> ShowS
Prelude.Show, forall x. Rep JDBCConnectorSource x -> JDBCConnectorSource
forall x. JDBCConnectorSource -> Rep JDBCConnectorSource x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep JDBCConnectorSource x -> JDBCConnectorSource
$cfrom :: forall x. JDBCConnectorSource -> Rep JDBCConnectorSource x
Prelude.Generic)

-- |
-- Create a value of 'JDBCConnectorSource' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'additionalOptions', 'jDBCConnectorSource_additionalOptions' - Additional connection options for the connector.
--
-- 'connectionTable', 'jDBCConnectorSource_connectionTable' - The name of the table in the data source.
--
-- 'outputSchemas', 'jDBCConnectorSource_outputSchemas' - Specifies the data schema for the custom JDBC source.
--
-- 'query', 'jDBCConnectorSource_query' - The table or SQL query to get the data from. You can specify either
-- @ConnectionTable@ or @query@, but not both.
--
-- 'name', 'jDBCConnectorSource_name' - The name of the data source.
--
-- 'connectionName', 'jDBCConnectorSource_connectionName' - The name of the connection that is associated with the connector.
--
-- 'connectorName', 'jDBCConnectorSource_connectorName' - The name of a connector that assists with accessing the data store in
-- Glue Studio.
--
-- 'connectionType', 'jDBCConnectorSource_connectionType' - The type of connection, such as marketplace.jdbc or custom.jdbc,
-- designating a connection to a JDBC data store.
newJDBCConnectorSource ::
  -- | 'name'
  Prelude.Text ->
  -- | 'connectionName'
  Prelude.Text ->
  -- | 'connectorName'
  Prelude.Text ->
  -- | 'connectionType'
  Prelude.Text ->
  JDBCConnectorSource
newJDBCConnectorSource :: Text -> Text -> Text -> Text -> JDBCConnectorSource
newJDBCConnectorSource
  Text
pName_
  Text
pConnectionName_
  Text
pConnectorName_
  Text
pConnectionType_ =
    JDBCConnectorSource'
      { $sel:additionalOptions:JDBCConnectorSource' :: Maybe JDBCConnectorOptions
additionalOptions =
          forall a. Maybe a
Prelude.Nothing,
        $sel:connectionTable:JDBCConnectorSource' :: Maybe Text
connectionTable = forall a. Maybe a
Prelude.Nothing,
        $sel:outputSchemas:JDBCConnectorSource' :: Maybe [GlueSchema]
outputSchemas = forall a. Maybe a
Prelude.Nothing,
        $sel:query:JDBCConnectorSource' :: Maybe Text
query = forall a. Maybe a
Prelude.Nothing,
        $sel:name:JDBCConnectorSource' :: Text
name = Text
pName_,
        $sel:connectionName:JDBCConnectorSource' :: Text
connectionName = Text
pConnectionName_,
        $sel:connectorName:JDBCConnectorSource' :: Text
connectorName = Text
pConnectorName_,
        $sel:connectionType:JDBCConnectorSource' :: Text
connectionType = Text
pConnectionType_
      }

-- | Additional connection options for the connector.
jDBCConnectorSource_additionalOptions :: Lens.Lens' JDBCConnectorSource (Prelude.Maybe JDBCConnectorOptions)
jDBCConnectorSource_additionalOptions :: Lens' JDBCConnectorSource (Maybe JDBCConnectorOptions)
jDBCConnectorSource_additionalOptions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JDBCConnectorSource' {Maybe JDBCConnectorOptions
additionalOptions :: Maybe JDBCConnectorOptions
$sel:additionalOptions:JDBCConnectorSource' :: JDBCConnectorSource -> Maybe JDBCConnectorOptions
additionalOptions} -> Maybe JDBCConnectorOptions
additionalOptions) (\s :: JDBCConnectorSource
s@JDBCConnectorSource' {} Maybe JDBCConnectorOptions
a -> JDBCConnectorSource
s {$sel:additionalOptions:JDBCConnectorSource' :: Maybe JDBCConnectorOptions
additionalOptions = Maybe JDBCConnectorOptions
a} :: JDBCConnectorSource)

-- | The name of the table in the data source.
jDBCConnectorSource_connectionTable :: Lens.Lens' JDBCConnectorSource (Prelude.Maybe Prelude.Text)
jDBCConnectorSource_connectionTable :: Lens' JDBCConnectorSource (Maybe Text)
jDBCConnectorSource_connectionTable = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JDBCConnectorSource' {Maybe Text
connectionTable :: Maybe Text
$sel:connectionTable:JDBCConnectorSource' :: JDBCConnectorSource -> Maybe Text
connectionTable} -> Maybe Text
connectionTable) (\s :: JDBCConnectorSource
s@JDBCConnectorSource' {} Maybe Text
a -> JDBCConnectorSource
s {$sel:connectionTable:JDBCConnectorSource' :: Maybe Text
connectionTable = Maybe Text
a} :: JDBCConnectorSource)

-- | Specifies the data schema for the custom JDBC source.
jDBCConnectorSource_outputSchemas :: Lens.Lens' JDBCConnectorSource (Prelude.Maybe [GlueSchema])
jDBCConnectorSource_outputSchemas :: Lens' JDBCConnectorSource (Maybe [GlueSchema])
jDBCConnectorSource_outputSchemas = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JDBCConnectorSource' {Maybe [GlueSchema]
outputSchemas :: Maybe [GlueSchema]
$sel:outputSchemas:JDBCConnectorSource' :: JDBCConnectorSource -> Maybe [GlueSchema]
outputSchemas} -> Maybe [GlueSchema]
outputSchemas) (\s :: JDBCConnectorSource
s@JDBCConnectorSource' {} Maybe [GlueSchema]
a -> JDBCConnectorSource
s {$sel:outputSchemas:JDBCConnectorSource' :: Maybe [GlueSchema]
outputSchemas = Maybe [GlueSchema]
a} :: JDBCConnectorSource) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The table or SQL query to get the data from. You can specify either
-- @ConnectionTable@ or @query@, but not both.
jDBCConnectorSource_query :: Lens.Lens' JDBCConnectorSource (Prelude.Maybe Prelude.Text)
jDBCConnectorSource_query :: Lens' JDBCConnectorSource (Maybe Text)
jDBCConnectorSource_query = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JDBCConnectorSource' {Maybe Text
query :: Maybe Text
$sel:query:JDBCConnectorSource' :: JDBCConnectorSource -> Maybe Text
query} -> Maybe Text
query) (\s :: JDBCConnectorSource
s@JDBCConnectorSource' {} Maybe Text
a -> JDBCConnectorSource
s {$sel:query:JDBCConnectorSource' :: Maybe Text
query = Maybe Text
a} :: JDBCConnectorSource)

-- | The name of the data source.
jDBCConnectorSource_name :: Lens.Lens' JDBCConnectorSource Prelude.Text
jDBCConnectorSource_name :: Lens' JDBCConnectorSource Text
jDBCConnectorSource_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JDBCConnectorSource' {Text
name :: Text
$sel:name:JDBCConnectorSource' :: JDBCConnectorSource -> Text
name} -> Text
name) (\s :: JDBCConnectorSource
s@JDBCConnectorSource' {} Text
a -> JDBCConnectorSource
s {$sel:name:JDBCConnectorSource' :: Text
name = Text
a} :: JDBCConnectorSource)

-- | The name of the connection that is associated with the connector.
jDBCConnectorSource_connectionName :: Lens.Lens' JDBCConnectorSource Prelude.Text
jDBCConnectorSource_connectionName :: Lens' JDBCConnectorSource Text
jDBCConnectorSource_connectionName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JDBCConnectorSource' {Text
connectionName :: Text
$sel:connectionName:JDBCConnectorSource' :: JDBCConnectorSource -> Text
connectionName} -> Text
connectionName) (\s :: JDBCConnectorSource
s@JDBCConnectorSource' {} Text
a -> JDBCConnectorSource
s {$sel:connectionName:JDBCConnectorSource' :: Text
connectionName = Text
a} :: JDBCConnectorSource)

-- | The name of a connector that assists with accessing the data store in
-- Glue Studio.
jDBCConnectorSource_connectorName :: Lens.Lens' JDBCConnectorSource Prelude.Text
jDBCConnectorSource_connectorName :: Lens' JDBCConnectorSource Text
jDBCConnectorSource_connectorName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JDBCConnectorSource' {Text
connectorName :: Text
$sel:connectorName:JDBCConnectorSource' :: JDBCConnectorSource -> Text
connectorName} -> Text
connectorName) (\s :: JDBCConnectorSource
s@JDBCConnectorSource' {} Text
a -> JDBCConnectorSource
s {$sel:connectorName:JDBCConnectorSource' :: Text
connectorName = Text
a} :: JDBCConnectorSource)

-- | The type of connection, such as marketplace.jdbc or custom.jdbc,
-- designating a connection to a JDBC data store.
jDBCConnectorSource_connectionType :: Lens.Lens' JDBCConnectorSource Prelude.Text
jDBCConnectorSource_connectionType :: Lens' JDBCConnectorSource Text
jDBCConnectorSource_connectionType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JDBCConnectorSource' {Text
connectionType :: Text
$sel:connectionType:JDBCConnectorSource' :: JDBCConnectorSource -> Text
connectionType} -> Text
connectionType) (\s :: JDBCConnectorSource
s@JDBCConnectorSource' {} Text
a -> JDBCConnectorSource
s {$sel:connectionType:JDBCConnectorSource' :: Text
connectionType = Text
a} :: JDBCConnectorSource)

instance Data.FromJSON JDBCConnectorSource where
  parseJSON :: Value -> Parser JDBCConnectorSource
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"JDBCConnectorSource"
      ( \Object
x ->
          Maybe JDBCConnectorOptions
-> Maybe Text
-> Maybe [GlueSchema]
-> Maybe Text
-> Text
-> Text
-> Text
-> Text
-> JDBCConnectorSource
JDBCConnectorSource'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"AdditionalOptions")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ConnectionTable")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"OutputSchemas" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Query")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"Name")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"ConnectionName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"ConnectorName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"ConnectionType")
      )

instance Prelude.Hashable JDBCConnectorSource where
  hashWithSalt :: Int -> JDBCConnectorSource -> Int
hashWithSalt Int
_salt JDBCConnectorSource' {Maybe [GlueSchema]
Maybe Text
Maybe JDBCConnectorOptions
Text
connectionType :: Text
connectorName :: Text
connectionName :: Text
name :: Text
query :: Maybe Text
outputSchemas :: Maybe [GlueSchema]
connectionTable :: Maybe Text
additionalOptions :: Maybe JDBCConnectorOptions
$sel:connectionType:JDBCConnectorSource' :: JDBCConnectorSource -> Text
$sel:connectorName:JDBCConnectorSource' :: JDBCConnectorSource -> Text
$sel:connectionName:JDBCConnectorSource' :: JDBCConnectorSource -> Text
$sel:name:JDBCConnectorSource' :: JDBCConnectorSource -> Text
$sel:query:JDBCConnectorSource' :: JDBCConnectorSource -> Maybe Text
$sel:outputSchemas:JDBCConnectorSource' :: JDBCConnectorSource -> Maybe [GlueSchema]
$sel:connectionTable:JDBCConnectorSource' :: JDBCConnectorSource -> Maybe Text
$sel:additionalOptions:JDBCConnectorSource' :: JDBCConnectorSource -> Maybe JDBCConnectorOptions
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe JDBCConnectorOptions
additionalOptions
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
connectionTable
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [GlueSchema]
outputSchemas
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
query
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
name
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
connectionName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
connectorName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
connectionType

instance Prelude.NFData JDBCConnectorSource where
  rnf :: JDBCConnectorSource -> ()
rnf JDBCConnectorSource' {Maybe [GlueSchema]
Maybe Text
Maybe JDBCConnectorOptions
Text
connectionType :: Text
connectorName :: Text
connectionName :: Text
name :: Text
query :: Maybe Text
outputSchemas :: Maybe [GlueSchema]
connectionTable :: Maybe Text
additionalOptions :: Maybe JDBCConnectorOptions
$sel:connectionType:JDBCConnectorSource' :: JDBCConnectorSource -> Text
$sel:connectorName:JDBCConnectorSource' :: JDBCConnectorSource -> Text
$sel:connectionName:JDBCConnectorSource' :: JDBCConnectorSource -> Text
$sel:name:JDBCConnectorSource' :: JDBCConnectorSource -> Text
$sel:query:JDBCConnectorSource' :: JDBCConnectorSource -> Maybe Text
$sel:outputSchemas:JDBCConnectorSource' :: JDBCConnectorSource -> Maybe [GlueSchema]
$sel:connectionTable:JDBCConnectorSource' :: JDBCConnectorSource -> Maybe Text
$sel:additionalOptions:JDBCConnectorSource' :: JDBCConnectorSource -> Maybe JDBCConnectorOptions
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe JDBCConnectorOptions
additionalOptions
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
connectionTable
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [GlueSchema]
outputSchemas
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
query
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
name
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
connectionName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
connectorName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
connectionType

instance Data.ToJSON JDBCConnectorSource where
  toJSON :: JDBCConnectorSource -> Value
toJSON JDBCConnectorSource' {Maybe [GlueSchema]
Maybe Text
Maybe JDBCConnectorOptions
Text
connectionType :: Text
connectorName :: Text
connectionName :: Text
name :: Text
query :: Maybe Text
outputSchemas :: Maybe [GlueSchema]
connectionTable :: Maybe Text
additionalOptions :: Maybe JDBCConnectorOptions
$sel:connectionType:JDBCConnectorSource' :: JDBCConnectorSource -> Text
$sel:connectorName:JDBCConnectorSource' :: JDBCConnectorSource -> Text
$sel:connectionName:JDBCConnectorSource' :: JDBCConnectorSource -> Text
$sel:name:JDBCConnectorSource' :: JDBCConnectorSource -> Text
$sel:query:JDBCConnectorSource' :: JDBCConnectorSource -> Maybe Text
$sel:outputSchemas:JDBCConnectorSource' :: JDBCConnectorSource -> Maybe [GlueSchema]
$sel:connectionTable:JDBCConnectorSource' :: JDBCConnectorSource -> Maybe Text
$sel:additionalOptions:JDBCConnectorSource' :: JDBCConnectorSource -> Maybe JDBCConnectorOptions
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"AdditionalOptions" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe JDBCConnectorOptions
additionalOptions,
            (Key
"ConnectionTable" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
connectionTable,
            (Key
"OutputSchemas" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [GlueSchema]
outputSchemas,
            (Key
"Query" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
query,
            forall a. a -> Maybe a
Prelude.Just (Key
"Name" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
name),
            forall a. a -> Maybe a
Prelude.Just
              (Key
"ConnectionName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
connectionName),
            forall a. a -> Maybe a
Prelude.Just (Key
"ConnectorName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
connectorName),
            forall a. a -> Maybe a
Prelude.Just
              (Key
"ConnectionType" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
connectionType)
          ]
      )