Skip to main content

connector_config

Creates, updates, deletes, gets or lists a connector_config resource.

Overview

Nameconnector_config
TypeResource
Idconfluent.connect.connector_config

Fields

NameDatatypeDescription
namestringName or alias of the class (plugin) for this connector. For Custom Connector, it must be the same as connector_name.
cloud.environmentstringThe cloud environment type.
cloud.providerstringThe cloud service provider, e.g. aws, azure, etc.
connector.classstringThe connector class name. E.g. BigQuerySink, GcsSink, etc.
kafka.api.keystringThe kafka cluster api key.
kafka.api.secretstringThe kafka cluster api secret key.
kafka.endpointstringThe kafka cluster endpoint.
kafka.regionstringThe kafka cluster region.

Methods

NameAccessible byRequired ParamsDescription
get_connectv1connector_configSELECTconnector_name, environment_id, kafka_cluster_idGeneral Availability Get the configuration for the connector.
create_or_update_connectv1connector_configINSERTconnector_name, environment_id, kafka_cluster_id, data__connector.class, data__kafka.api.key, data__kafka.api.secret, data__nameCreate a new connector using the given configuration, or update the configuration for an existing connector. Returns information about the connector after the change has been made.

SELECT examples

General Availability Get the configuration for the connector.

SELECT
name,
cloud.environment,
cloud.provider,
connector.class,
kafka.api.key,
kafka.api.secret,
kafka.endpoint,
kafka.region
FROM confluent.connect.connector_config
WHERE connector_name = '{{ connector_name }}'
AND environment_id = '{{ environment_id }}'
AND kafka_cluster_id = '{{ kafka_cluster_id }}';

INSERT example

Use the following StackQL query and manifest file to create a new connector_config resource.

/*+ create */
INSERT INTO confluent.connect.connector_config (
data__connector.class,
data__name,
data__kafka.api.key,
data__kafka.api.secret,
data__confluent.connector.type,
data__confluent.custom.plugin.id,
data__confluent.custom.connection.endpoints,
data__confluent.custom.schema.registry.auto,
connector_name,
environment_id,
kafka_cluster_id
)
SELECT
'{{ connector.class }}',
'{{ name }}',
'{{ kafka.api.key }}',
'{{ kafka.api.secret }}',
'{{ confluent.connector.type }}',
'{{ confluent.custom.plugin.id }}',
'{{ confluent.custom.connection.endpoints }}',
'{{ confluent.custom.schema.registry.auto }}',
'{{ connector_name }}',
'{{ environment_id }}',
'{{ kafka_cluster_id }}'
;