Skip to main content

connectors

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

Overview

Nameconnectors
TypeResource
Idaws.kafkaconnect.connectors

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
capacityobjectInformation about the capacity of the connector, whether it is auto scaled or provisioned.
connector_arnstringThe Amazon Resource Name (ARN) of the connector.
connector_configurationobjectA map of keys to values that represent the configuration for the connector.
connector_descriptionstringA summary description of the connector.
connector_namestringThe name of the connector.
connector_statestringThe state of the connector. (RUNNING, CREATING, UPDATING, DELETING, FAILED)
creation_timestring (date-time)The time the connector was created.
current_versionstringThe current version of the connector.
kafka_clusterobjectThe Apache Kafka cluster that the connector is connected to.
kafka_cluster_client_authenticationobjectThe type of client authentication used to connect to the Apache Kafka cluster. The value is NONE when no client authentication is used.
kafka_cluster_encryption_in_transitobjectDetails of encryption in transit to the Apache Kafka cluster.
kafka_connect_versionstringThe version of Kafka Connect. It has to be compatible with both the Apache Kafka cluster's version and the plugins.
log_deliveryobjectDetails about delivering logs to Amazon CloudWatch Logs.
network_typestringThe network type of a connector. (IPV4, DUAL)
pluginsarraySpecifies which plugins were used for this connector.
service_execution_role_arnstringThe Amazon Resource Name (ARN) of the IAM role used by the connector to access Amazon Web Services resources.
state_descriptionobjectDetails about the state of a connector.
worker_configurationobjectSpecifies which worker configuration was used for the connector.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_connectorselectconnector_arn, regionReturns summary information about the connector.
list_connectorsselectregionconnectorNamePrefix, maxResults, nextTokenReturns a list of all the connectors in this account and Region. The list is limited to connectors whose name starts with the specified prefix. The response also includes a description of each of the listed connectors.
create_connectorinsertregion, capacity, connectorConfiguration, connectorName, kafkaCluster, kafkaClusterClientAuthentication, kafkaClusterEncryptionInTransit, kafkaConnectVersion, plugins, serviceExecutionRoleArnCreates a connector using the specified properties.
update_connectorupdateconnector_arn, currentVersion, regionUpdates the specified connector. For request body, specify only one parameter: either capacity or connectorConfiguration.
delete_connectordeleteconnector_arn, regioncurrentVersionDeletes the specified connector.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
connector_arnstringThe Amazon Resource Name (ARN) of the connector that you want to delete.
currentVersionstringThe current version of the connector that you want to update.
regionstringAWS region (default: us-east-1)
connectorNamePrefixstringThe name prefix that you want to use to search for and list connectors.
currentVersionstringThe current version of the connector that you want to delete.
maxResultsintegerThe maximum number of connectors to list in one response.
nextTokenstringIf the response of a ListConnectors operation is truncated, it will include a NextToken. Send this NextToken in a subsequent request to continue listing from where the previous operation left off.

SELECT examples

Returns summary information about the connector.

SELECT
capacity,
connector_arn,
connector_configuration,
connector_description,
connector_name,
connector_state,
creation_time,
current_version,
kafka_cluster,
kafka_cluster_client_authentication,
kafka_cluster_encryption_in_transit,
kafka_connect_version,
log_delivery,
network_type,
plugins,
service_execution_role_arn,
state_description,
worker_configuration
FROM aws.kafkaconnect.connectors
WHERE connector_arn = '{{ connector_arn }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a connector using the specified properties.

INSERT INTO aws.kafkaconnect.connectors (
capacity,
connectorConfiguration,
connectorDescription,
connectorName,
kafkaCluster,
kafkaClusterClientAuthentication,
kafkaClusterEncryptionInTransit,
kafkaConnectVersion,
logDelivery,
networkType,
plugins,
serviceExecutionRoleArn,
workerConfiguration,
tags,
region
)
SELECT
'{{ capacity }}' /* required */,
'{{ connectorConfiguration }}' /* required */,
'{{ connectorDescription }}',
'{{ connectorName }}' /* required */,
'{{ kafkaCluster }}' /* required */,
'{{ kafkaClusterClientAuthentication }}' /* required */,
'{{ kafkaClusterEncryptionInTransit }}' /* required */,
'{{ kafkaConnectVersion }}' /* required */,
'{{ logDelivery }}',
'{{ networkType }}',
'{{ plugins }}' /* required */,
'{{ serviceExecutionRoleArn }}' /* required */,
'{{ workerConfiguration }}',
'{{ tags }}',
'{{ region }}'
RETURNING
connector_arn,
connector_name,
connector_state
;

UPDATE examples

Updates the specified connector. For request body, specify only one parameter: either capacity or connectorConfiguration.

UPDATE aws.kafkaconnect.connectors
SET
capacity = '{{ capacity }}',
connectorConfiguration = '{{ connectorConfiguration }}'
WHERE
connector_arn = '{{ connector_arn }}' --required
AND currentVersion = '{{ currentVersion }}' --required
AND region = '{{ region }}' --required
RETURNING
connector_arn,
connector_operation_arn,
connector_state;

DELETE examples

Deletes the specified connector.

DELETE FROM aws.kafkaconnect.connectors
WHERE connector_arn = '{{ connector_arn }}' --required
AND region = '{{ region }}' --required
AND currentVersion = '{{ currentVersion }}'
;