Skip to main content

connectors

Creates, updates, deletes or gets a connector resource or lists connectors in a region

Overview

Nameconnectors
TypeResource
DescriptionResource Type definition for AWS::KafkaConnect::Connector
Idaws.kafkaconnect.connectors

Fields

NameDatatypeDescription
capacityobjectInformation about the capacity allocated to the connector.
connector_arnstringAmazon Resource Name for the created Connector.
connector_configurationobjectThe configuration for the connector.
connector_descriptionstringA summary description of the connector.
connector_namestringThe name of the connector.
kafka_clusterobjectDetails of how to connect to the Kafka cluster.
kafka_cluster_client_authenticationobjectDetails of the client authentication used by the Kafka cluster.
kafka_cluster_encryption_in_transitobjectDetails of encryption in transit to the Kafka cluster.
kafka_connect_versionstringThe version of Kafka Connect. It has to be compatible with both the Kafka cluster's version and the plugins.
log_deliveryobjectDetails of what logs are delivered and where they are delivered.
pluginsarrayList of plugins to use with the connector.
service_execution_role_arnstringThe Amazon Resource Name (ARN) of the IAM role used by the connector to access Amazon S3 objects and other external resources.
tagsarrayA collection of tags associated with a resource
worker_configurationobjectThe configuration of the workers, which are the processes that run the connector logic.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTCapacity, ConnectorConfiguration, ConnectorName, KafkaConnectVersion, KafkaCluster, KafkaClusterClientAuthentication, KafkaClusterEncryptionInTransit, Plugins, ServiceExecutionRoleArn, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all connectors in a region.

SELECT
region,
capacity,
connector_arn,
connector_configuration,
connector_description,
connector_name,
kafka_cluster,
kafka_cluster_client_authentication,
kafka_cluster_encryption_in_transit,
kafka_connect_version,
log_delivery,
plugins,
service_execution_role_arn,
tags,
worker_configuration
FROM aws.kafkaconnect.connectors
WHERE region = 'us-east-1';

Gets all properties from an individual connector.

SELECT
region,
capacity,
connector_arn,
connector_configuration,
connector_description,
connector_name,
kafka_cluster,
kafka_cluster_client_authentication,
kafka_cluster_encryption_in_transit,
kafka_connect_version,
log_delivery,
plugins,
service_execution_role_arn,
tags,
worker_configuration
FROM aws.kafkaconnect.connectors
WHERE region = 'us-east-1' AND data__Identifier = '<ConnectorArn>';

INSERT example

Use the following StackQL query and manifest file to create a new connector resource, using stack-deploy.

/*+ create */
INSERT INTO aws.kafkaconnect.connectors (
Capacity,
ConnectorConfiguration,
ConnectorName,
KafkaCluster,
KafkaClusterClientAuthentication,
KafkaClusterEncryptionInTransit,
KafkaConnectVersion,
Plugins,
ServiceExecutionRoleArn,
region
)
SELECT
'{{ Capacity }}',
'{{ ConnectorConfiguration }}',
'{{ ConnectorName }}',
'{{ KafkaCluster }}',
'{{ KafkaClusterClientAuthentication }}',
'{{ KafkaClusterEncryptionInTransit }}',
'{{ KafkaConnectVersion }}',
'{{ Plugins }}',
'{{ ServiceExecutionRoleArn }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.kafkaconnect.connectors
WHERE data__Identifier = '<ConnectorArn>'
AND region = 'us-east-1';

Permissions

To operate on the connectors resource, the following permissions are required:

Create

kafkaconnect:CreateConnector,
kafkaconnect:DescribeConnector,
kafkaconnect:TagResource,
kafkaconnect:ListTagsForResource,
iam:CreateServiceLinkedRole,
iam:PassRole,
ec2:CreateNetworkInterface,
ec2:DescribeSecurityGroups,
ec2:DescribeSubnets,
ec2:DescribeVpcs,
logs:CreateLogDelivery,
logs:GetLogDelivery,
logs:ListLogDeliveries,
logs:PutResourcePolicy,
logs:DescribeResourcePolicies,
logs:DescribeLogGroups,
s3:GetBucketPolicy,
s3:PutBucketPolicy,
firehose:TagDeliveryStream

Read

kafkaconnect:DescribeConnector,
kafkaconnect:ListTagsForResource

Delete

kafkaconnect:DeleteConnector,
kafkaconnect:DescribeConnector,
logs:DeleteLogDelivery,
logs:GetLogDelivery,
logs:ListLogDeliveries

Update

kafkaconnect:UpdateConnector,
kafkaconnect:DescribeConnector,
kafkaconnect:TagResource,
kafkaconnect:ListTagsForResource,
kafkaconnect:UntagResource,
iam:CreateServiceLinkedRole,
logs:UpdateLogDelivery,
logs:GetLogDelivery,
logs:ListLogDeliveries,
logs:PutResourcePolicy,
logs:DescribeResourcePolicies,
logs:DescribeLogGroups,
s3:GetBucketPolicy,
s3:PutBucketPolicy,
firehose:TagDeliveryStream

List

kafkaconnect:ListConnectors